3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1; print $a; function schimbare(&$a) { $a++; } print $a; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L08Uu
function name:  (null)
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ECHO                                                     !0
   10     2        ECHO                                                     !0
   13     3      > RETURN                                                   1

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

End of function schimbare

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1384 KiB | 13 Q