3v4l.org

run code in 300+ PHP versions simultaneously
<?php function runCode(){ echo "runCode is called"; } function runOtherCode(){ echo "runOtherCode is called"; } function someFunction() { return 0; } if (someFunction() == 0) runCode(); elseif (someFunction() == '0') runOtherCode();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/tsDPj
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'somefunction'
          1        DO_FCALL                                      0  $0      
          2        IS_EQUAL                                                 $0, 0
          3      > JMPZ                                                     ~1, ->7
   13     4    >   INIT_FCALL                                               'runcode'
          5        DO_FCALL                                      0          
          6      > JMP                                                      ->13
   14     7    >   INIT_FCALL                                               'somefunction'
          8        DO_FCALL                                      0  $3      
          9        IS_EQUAL                                                 $3, '0'
         10      > JMPZ                                                     ~4, ->13
   15    11    >   INIT_FCALL                                               'runothercode'
         12        DO_FCALL                                      0          
         13    > > RETURN                                                   1

Function runcode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tsDPj
function name:  runCode
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'runCode+is+called'
    5     1      > RETURN                                                   null

End of function runcode

Function runothercode:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tsDPj
function name:  runOtherCode
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'runOtherCode+is+called'
    8     1      > RETURN                                                   null

End of function runothercode

Function somefunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tsDPj
function name:  someFunction
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   0
   11     1*     > RETURN                                                   null

End of function somefunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.03 ms | 1399 KiB | 17 Q