3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { var_dump("foo"); return true; } function bar() { var_dump("bar"); return true; } function baz() { var_dump("baz"); return true; } var_dump(foo() || bar() && baz());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 11
filename:       /in/TY2Ia
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'foo'
          2        DO_FCALL                                      0  $0      
          3      > JMPNZ_EX                                         ~1      $0, ->11
          4    >   INIT_FCALL                                               'bar'
          5        DO_FCALL                                      0  $2      
          6      > JMPZ_EX                                          ~3      $2, ->10
          7    >   INIT_FCALL                                               'baz'
          8        DO_FCALL                                      0  $4      
          9        BOOL                                             ~3      $4
         10    >   BOOL                                             ~1      ~3
         11    >   SEND_VAL                                                 ~1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TY2Ia
function name:  foo
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                                 
          3      > RETURN                                                   <true>
          4*     > RETURN                                                   null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TY2Ia
function name:  bar
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'bar'
          2        DO_ICALL                                                 
          3      > RETURN                                                   <true>
          4*     > RETURN                                                   null

End of function bar

Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TY2Ia
function name:  baz
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'baz'
          2        DO_ICALL                                                 
          3      > RETURN                                                   <true>
          4*     > RETURN                                                   null

End of function baz

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.06 ms | 1403 KiB | 18 Q