3v4l.org

run code in 300+ PHP versions simultaneously
<?php const X = 0 ?? 2; function($arg = null ?? 'foo') { return $arg; }; function() { static $var = null ?? 'foo'; return $var; };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LoPsg
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'X', 0
    5     1        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
          2        FREE                                                     ~0
    7     3        DECLARE_LAMBDA_FUNCTION                          ~1      [1]
          4        FREE                                                     ~1
          5      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LoPsg
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      'foo'
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LoPsg
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_STATIC                                              !0
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.48 ms | 1007 KiB | 13 Q