<?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();
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.