3v4l.org

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

Function array_hiss:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1vhPh
function name:  array_hiss
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <array>
    5     1*     > RETURN                                                   null

End of function array_hiss

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

End of function mutabledefault

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1401 KiB | 17 Q