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 = 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/S702D
function name:  (null)
number of ops:  14
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL_BY_NAME                                       'y'
          1        SEND_VAL_EX                                              4
          2        DO_FCALL                                      0          
   14     3        ASSIGN                                                   !0, 4
   15     4        INIT_FCALL                                               'x'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0  $3      
          7        INIT_FCALL_BY_NAME                                       'y'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $4      
         10        MUL                                              ~5      $3, $4
         11        ASSIGN                                                   !0, ~5
   16    12        ECHO                                                     !0
         13      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.22 ms | 1398 KiB | 14 Q