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 = ( 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();
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/D2a9N
function name:  (null)
number of ops:  23
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        INIT_FCALL                                               'function_exists'
         10        SEND_VAL                                                 'apc_fetch'
         11        DO_ICALL                                         $5      
         12        BOOL                                             ~6      $5
         13        ASSIGN                                                   !0, ~6
   10    14        ASSIGN                                                   !0, <true>
   13    15        INIT_FCALL                                               'function_exists'
         16        SEND_VAL                                                 'apc_fetch'
         17        DO_ICALL                                         $9      
         18        BOOL                                             ~10     $9
         19        ASSIGN                                                   !0, ~10
   15    20        INIT_FCALL_BY_NAME                                       'apc_fetch'
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.15 ms | 1395 KiB | 17 Q