3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Works fine $test = ( function_exists('apc_fetch') || ini_get('apc.enabled') ); // Fail with "Call to undefined function function_exists()" $test = ( false || function_exists('apc_fetch') ); // Works fine because true do lazy check in OR $test = ( true || function_exists('apc_fetch') ); // Fail with "Call to undefined function function_exists()" $test = ( false || function_exists('apc_fetch') ); apc_fetch();
based on Y85kh
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /in/D2a9N:15 Stack trace: #0 {main} thrown in /in/D2a9N on line 15
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Warning: apc_fetch() expects at least 1 parameter, 0 given in /in/D2a9N on line 15
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function apc_fetch() in /in/D2a9N on line 15
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: apc_fetch() in /in/D2a9N on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: apc_fetch() in /in/D2a9N on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: apc_fetch() in /in/D2a9N on line 15