3v4l.org

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

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1397 KiB | 15 Q