3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo1(&$bar = 1) {} function foo2(&$bar = true) {} function foo3(&$bar = []) {} function foo4(&$bar = null) {} foo1($bar1); foo2($bar2); foo3($bar3); foo4($bar4); var_dump($bar1, $bar2, $bar3, $bar4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eCi24
function name:  (null)
number of ops:  19
compiled vars:  !0 = $bar1, !1 = $bar2, !2 = $bar3, !3 = $bar4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'foo1'
          1        SEND_REF                                                 !0
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'foo2'
          4        SEND_REF                                                 !1
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'foo3'
          7        SEND_REF                                                 !2
          8        DO_FCALL                                      0          
   11     9        INIT_FCALL                                               'foo4'
         10        SEND_REF                                                 !3
         11        DO_FCALL                                      0          
   13    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function foo1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eCi24
function name:  foo1
number of ops:  2
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      1
          1      > RETURN                                                   null

End of function foo1

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

End of function foo2

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

End of function foo3

Function foo4:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eCi24
function name:  foo4
number of ops:  2
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      null
          1      > RETURN                                                   null

End of function foo4

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.4 ms | 1402 KiB | 19 Q