3v4l.org

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

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KHJTP
function name:  g
number of ops:  5
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      ''
    4     1        ECHO                                                     !0
    5     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKHJTP%3A5%240'
    7     3      > RETURN                                                   ~1
    8     4*     > RETURN                                                   null

End of function g

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

End of function %00%7Bclosure%7D%2Fin%2FKHJTP%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.99 ms | 1389 KiB | 14 Q