3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = new ReflectionFunction( 'idn_to_utf8' ); 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 idn_to_utf8() does not exist in /in/HigvC:3 Stack trace: #0 /in/HigvC(3): ReflectionFunction->__construct('idn_to_utf8') #1 {main} thrown in /in/HigvC on line 3
Process exited with code 255.
Output for 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, 8.5.0
array(4) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(6) "domain" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(5) "flags" } [2]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(7) "variant" } [3]=> object(ReflectionParameter)#5 (1) { ["name"]=> string(9) "idna_info" } }
Output for 7.3.0 - 7.3.31, 7.3.33, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
array(4) { [0]=> object(ReflectionParameter)#2 (1) { ["name"]=> string(6) "domain" } [1]=> object(ReflectionParameter)#3 (1) { ["name"]=> string(6) "option" } [2]=> object(ReflectionParameter)#4 (1) { ["name"]=> string(7) "variant" } [3]=> object(ReflectionParameter)#5 (1) { ["name"]=> string(8) "idn_info" } }

preferences:
98.49 ms | 1428 KiB | 4 Q