3v4l.org

run code in 300+ PHP versions simultaneously
<?php function blop ($a = null, &$b = null) { $b = 3; } $b = null; blop(null, $b); var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ks503
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, null
    7     1        INIT_FCALL                                               'blop'
          2        SEND_VAL                                                 null
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0          
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function blop

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.91 ms | 1397 KiB | 16 Q