3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); $input = array(); if ( empty( $input['foo'] ) ) { var_dump( "empty" ); } else { var_dump( "error" ); }
Output for 4.3.0, 5.4.38 - 7.2.0
string(5) "empty"
Output for 4.3.5 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/fgOtc on line 4 string(5) "empty"
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork,phpinfo() has been disabled for security reasons in /in/fgOtc on line 4 string(5) "empty"