3v4l.org

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

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.7 ms | 1438 KiB | 15 Q