3v4l.org

run code in 300+ PHP versions simultaneously
<?php function secupress_cache_data( $key ) { var_dump( func_get_args ); static $datas = array(); if ( $data !== 'trolilol' ) { $datas[ $key ] = $data; } return isset( $datas[ $key ] ) ? $datas[ $key ] : 'KO!!'; } secupress_cache_data( 'bar', null );
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: Undefined constant "func_get_args" in /in/iQaQl:4 Stack trace: #0 /in/iQaQl(13): secupress_cache_data('bar', NULL) #1 {main} thrown in /in/iQaQl on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Warning: Use of undefined constant func_get_args - assumed 'func_get_args' (this will throw an Error in a future version of PHP) in /in/iQaQl on line 4 string(13) "func_get_args" Notice: Undefined variable: data in /in/iQaQl on line 6 Notice: Undefined variable: data in /in/iQaQl on line 7
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant func_get_args - assumed 'func_get_args' (this will throw an Error in a future version of PHP) in /in/iQaQl on line 4 string(13) "func_get_args"
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Notice: Use of undefined constant func_get_args - assumed 'func_get_args' in /in/iQaQl on line 4 string(13) "func_get_args" Notice: Undefined variable: data in /in/iQaQl on line 6 Notice: Undefined variable: data in /in/iQaQl on line 7

preferences:
186.41 ms | 402 KiB | 225 Q