3v4l.org

run code in 300+ PHP versions simultaneously
<?php function v(){ $x = 5; return function (){ echo $x; }; } $func = v();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rK6uX
function name:  (null)
number of ops:  4
compiled vars:  !0 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'v'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Function v:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rK6uX
function name:  v
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 5
    6     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FrK6uX%3A6%240'
    8     2      > RETURN                                                   ~2
    9     3*     > RETURN                                                   null

End of function v

Function %00%7Bclosure%7D%2Fin%2FrK6uX%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rK6uX
function name:  {closure}
number of ops:  2
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     !0
    8     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FrK6uX%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1397 KiB | 14 Q