3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { if ($a) foo(); else bar(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vqBg1
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 4
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vqBg1
function name:  a
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > JMPZ                                                     !0, ->4
    5     1    >   INIT_FCALL_BY_NAME                                       'foo'
          2        DO_FCALL                                      0          
          3      > JMP                                                      ->6
    7     4    >   INIT_FCALL_BY_NAME                                       'bar'
          5        DO_FCALL                                      0          
    8     6    > > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.83 ms | 1393 KiB | 13 Q