3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ReflectionFunction::export('key'); /* Function [ <internal:standard> function key ] { - Parameters [1] { Parameter #0 [ <required> $arg ] } } */ echo ReflectionFunction::export('current'); /* Function [ <internal:standard> function current ] { - Parameters [1] { Parameter #0 [ <required> $arg ] } } */ echo ReflectionFunction::export('end'); /* Function [ <internal:standard> function end ] { - Parameters [1] { Parameter #0 [ <required> &$arg ] } } */
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Call to undefined method ReflectionFunction::export() in /in/YFE86:2 Stack trace: #0 {main} thrown in /in/YFE86 on line 2
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Function ReflectionFunction::export() is deprecated in /in/YFE86 on line 2 Function [ <internal:standard> function key ] { - Parameters [1] { Parameter #0 [ <required> $arg ] } } Deprecated: Function ReflectionFunction::export() is deprecated in /in/YFE86 on line 11 Function [ <internal:standard> function current ] { - Parameters [1] { Parameter #0 [ <required> $arg ] } } Deprecated: Function ReflectionFunction::export() is deprecated in /in/YFE86 on line 20 Function [ <internal:standard> function end ] { - Parameters [1] { Parameter #0 [ <required> &$arg ] } }
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Function [ <internal:standard> function key ] { - Parameters [1] { Parameter #0 [ <required> $arg ] } } Function [ <internal:standard> function current ] { - Parameters [1] { Parameter #0 [ <required> $arg ] } } Function [ <internal:standard> function end ] { - Parameters [1] { Parameter #0 [ <required> &$arg ] } }
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Function [ <internal:standard> function key ] { - Parameters [1] { Parameter #0 [ <required> &$arg ] } } Function [ <internal:standard> function current ] { - Parameters [1] { Parameter #0 [ <required> &$arg ] } } Function [ <internal:standard> function end ] { - Parameters [1] { Parameter #0 [ <required> &$arg ] } }

preferences:
249.31 ms | 402 KiB | 336 Q