3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mutabledefault(&$arg=array("foo")) { var_dump($arg); $arg["bar"] = "new"; } var_dump(array("hiss")); var_dump(array_hiss());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kF3Pl
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
    9     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL_BY_NAME                                       'array_hiss'
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function mutabledefault:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kF3Pl
function name:  mutabledefault
number of ops:  7
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      <array>
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4        ASSIGN_DIM                                               !0, 'bar'
          5        OP_DATA                                                  'new'
    6     6      > RETURN                                                   null

End of function mutabledefault

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.83 ms | 1395 KiB | 15 Q