3v4l.org

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

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

End of function asy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.77 ms | 1397 KiB | 14 Q