3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chi=0; function asy($val){ echo $val+1; $chi+=1; } $x=array(); $x[0]=asy; echo $chi; echo $x[0](6); echo $x[0](12); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HbKIW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $chi, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    7     1        ASSIGN                                                   !1, <array>
    8     2        FETCH_CONSTANT                                   ~5      'asy'
          3        ASSIGN_DIM                                               !1, 0
          4        OP_DATA                                                  ~5
    9     5        ECHO                                                     !0
   10     6        FETCH_DIM_R                                      ~6      !1, 0
          7        INIT_DYNAMIC_CALL                                        ~6
          8        SEND_VAL_EX                                              6
          9        DO_FCALL                                      0  $7      
         10        ECHO                                                     $7
   11    11        FETCH_DIM_R                                      ~8      !1, 0
         12        INIT_DYNAMIC_CALL                                        ~8
         13        SEND_VAL_EX                                              12
         14        DO_FCALL                                      0  $9      
         15        ECHO                                                     $9
   13    16      > RETURN                                                   1

Function asy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HbKIW
function name:  asy
number of ops:  5
compiled vars:  !0 = $val, !1 = $chi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ADD                                              ~2      !0, 1
          2        ECHO                                                     ~2
    5     3        ASSIGN_OP                                     1          !1, 1
    6     4      > RETURN                                                   null

End of function asy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.37 ms | 1394 KiB | 13 Q