3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = []; function f(&$array) { $array['foo'] = 'bar'; } f($my_aray); // intentional typo // no errors!
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uhNOS
function name:  (null)
number of ops:  5
compiled vars:  !0 = $my_array, !1 = $my_aray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'f'
          2        SEND_REF                                                 !1
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.13 ms | 1396 KiB | 14 Q