3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wer($x) { print_r($x); $x[] = 'ttt'; } $e = 'ert'; call_user_func('wer', [&$e]); print_r($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YB6Ea
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'ert'
    7     1        INIT_FCALL                                               'wer'
          2        INIT_ARRAY                                       ~3      !0
          3        SEND_USER                                                ~3
          4        DO_FCALL                                      0          
    8     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function wer:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YB6Ea
function name:  wer
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  'ttt'
    5     6      > RETURN                                                   null

End of function wer

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.71 ms | 1397 KiB | 16 Q