3v4l.org

run code in 300+ PHP versions simultaneously
<?php function asy($val){ echo $val+1; } $x=array(); $x[0]=asy; 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/SS754
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        FETCH_CONSTANT                                   ~3      'asy'
          2        ASSIGN_DIM                                               !0, 0
          3        OP_DATA                                                  ~3
    8     4        FETCH_DIM_R                                      ~4      !0, 0
          5        INIT_DYNAMIC_CALL                                        ~4
          6        SEND_VAL_EX                                              6
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
    9     9        FETCH_DIM_R                                      ~6      !0, 0
         10        INIT_DYNAMIC_CALL                                        ~6
         11        SEND_VAL_EX                                              12
         12        DO_FCALL                                      0  $7      
         13        ECHO                                                     $7
   10    14      > RETURN                                                   1

Function asy:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SS754
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:
166.8 ms | 1397 KiB | 14 Q