3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { const BAR = - (1 + 1); function foo($a = 1 + 1, $b = 2 << 3, $c = self::BAR) { } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bJpY
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   1

Class Bar:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bJpY
function name:  foo
number of ops:  4
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      2
          1        RECV_INIT                                        !1      16
          2        RECV_INIT                                        !2      <const ast>
    5     3      > RETURN                                                   null

End of function foo

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1392 KiB | 13 Q