3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = 10; $n = &$m; $n++; var_dump($n,$m); echo "\n"; function foo(&$x){ $x = null; } $a = 8; foo($a); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n3QCK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $m, !1 = $n, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        ASSIGN_REF                                               !1, !0
    4     2        PRE_INC                                                  !1
    5     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        ECHO                                                     '%0A'
   11     8        ASSIGN                                                   !2, 8
   12     9        INIT_FCALL                                               'foo'
         10        SEND_REF                                                 !2
         11        DO_FCALL                                      0          
   13    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n3QCK
function name:  foo
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ASSIGN                                                   !0, null
   10     2      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.34 ms | 1401 KiB | 16 Q