3v4l.org

run code in 500+ PHP versions simultaneously
<?php $func = new ReflectionFunction( 'grapheme_strpos' ); var_dump($func->getParameters());
Output for 7.3.32, 7.4.26, 7.4.33, 8.0.13, 8.5.1 - 8.5.3
Fatal error: Uncaught ReflectionException: Function grapheme_strpos() does not exist in /in/bUIFV:3 Stack trace: #0 /in/bUIFV(3): ReflectionFunction->__construct('grapheme_strpos') #1 {main} thrown in /in/bUIFV on line 3
Process exited with code 255.
Output for 8.5.0
array(4) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(8) "haystack" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(6) "needle" } [2]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(6) "offset" } [3]=> object(ReflectionParameter)#5 (1) { ["name"]=> string(6) "locale" } }
Output for 7.3.0 - 7.3.31, 7.3.33, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18
array(3) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(8) "haystack" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(6) "needle" } [2]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(6) "offset" } }

preferences:
100.32 ms | 1401 KiB | 4 Q