3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nest($v, $prefix = 'in-') { function f($v, $prefix) { return $prefix . $v; }; echo f($v, $prefix); } nest('down'); echo f('global', 'f is ');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqT8M
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'nest'
          1        SEND_VAL                                                 'down'
          2        DO_FCALL                                      0          
   14     3        INIT_FCALL_BY_NAME                                       'f'
          4        SEND_VAL_EX                                              'global'
          5        SEND_VAL_EX                                              'f+is+'
          6        DO_FCALL                                      0  $1      
          7        ECHO                                                     $1
          8      > RETURN                                                   1

Function nest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqT8M
function name:  nest
number of ops:  9
compiled vars:  !0 = $v, !1 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'in-'
    5     2        DECLARE_FUNCTION                                         'f'
    9     3        INIT_FCALL_BY_NAME                                       'f'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $2      
          7        ECHO                                                     $2
   10     8      > RETURN                                                   null

End of function nest

Function %00f%2Fin%2FGqT8M%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqT8M
function name:  f
number of ops:  5
compiled vars:  !0 = $v, !1 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        CONCAT                                           ~2      !1, !0
          3      > RETURN                                                   ~2
    7     4*     > RETURN                                                   null

End of function %00f%2Fin%2FGqT8M%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.01 ms | 1399 KiB | 14 Q