3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Works fine $test = ( function_exists('apc_fetch') || ini_get('apc.enabled') ); // Fail with "Call to undefined function function_exists()" $test = ( true || 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') );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/Y2UKW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'apc_fetch'
          2        DO_ICALL                                         $1      
          3      > JMPNZ_EX                                         ~2      $1, ->8
          4    >   INIT_FCALL                                               'ini_get'
          5        SEND_VAL                                                 'apc.enabled'
          6        DO_ICALL                                         $3      
          7        BOOL                                             ~2      $3
          8    >   ASSIGN                                                   !0, ~2
    7     9        ASSIGN                                                   !0, <true>
   10    10        ASSIGN                                                   !0, <true>
   13    11        INIT_FCALL                                               'function_exists'
         12        SEND_VAL                                                 'apc_fetch'
         13        DO_ICALL                                         $7      
         14        BOOL                                             ~8      $7
         15        ASSIGN                                                   !0, ~8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.59 ms | 1386 KiB | 17 Q