3v4l.org

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

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IiNMo
function name:  x
number of ops:  5
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        DECLARE_FUNCTION                                         'y'
    9     2        ADD                                              ~1      !0, 3
          3      > RETURN                                                   ~1
   10     4*     > RETURN                                                   null

End of function x

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

End of function %00y%2Fin%2FIiNMo%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.91 ms | 1393 KiB | 13 Q