3v4l.org

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

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EgUPh
function name:  foo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'foo'
    4     1      > RETURN                                                   <false>
    5     2*     > 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/EgUPh
function name:  bar
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'bar'
    9     1      > RETURN                                                   <true>
   10     2*     > RETURN                                                   null

End of function bar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1398 KiB | 17 Q