3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x() { $asdf = 123; if ($foo) { return $asdf; } bar(); return $asdf; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jHKP5
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 x:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jHKP5
function name:  x
number of ops:  7
compiled vars:  !0 = $asdf, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 123
    5     1      > JMPZ                                                     !1, ->3
          2    > > RETURN                                                   !0
    6     3    >   INIT_FCALL_BY_NAME                                       'bar'
          4        DO_FCALL                                      0          
    7     5      > RETURN                                                   !0
    8     6*     > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1393 KiB | 13 Q