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 = x($y)+y($y); echo $y;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e7ud4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 4
   15     1        INIT_FCALL                                               'x'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        INIT_FCALL_BY_NAME                                       'y'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $3      
          7        ADD                                              ~4      $2, $3
          8        ASSIGN                                                   !0, ~4
   16     9        ECHO                                                     !0
         10      > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e7ud4
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%2Fe7ud4%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e7ud4
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%2Fe7ud4%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.33 ms | 1398 KiB | 14 Q