3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($a < $b) { function foo() { return $a; } } else { function foo() { return $b; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvtKB
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   IS_SMALLER                                               !0, !1
          1      > JMPZ                                                     ~2, ->4
    4     2    >   DECLARE_FUNCTION                                         'foo'
    6     3      > JMP                                                      ->5
    8     4    >   DECLARE_FUNCTION                                         'foo'
   11     5    > > RETURN                                                   1

Function %00foo%2Fin%2FdvtKB%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvtKB
function name:  foo
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   !0
    6     1*     > RETURN                                                   null

End of function %00foo%2Fin%2FdvtKB%3A4%240

Function %00foo%2Fin%2FdvtKB%3A8%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvtKB
function name:  foo
number of ops:  2
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   !0
   10     1*     > RETURN                                                   null

End of function %00foo%2Fin%2FdvtKB%3A8%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.88 ms | 1394 KiB | 13 Q