3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 );
based on q6o8t
Output for 7.2.0
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 5.3.19 - 7.1.10
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