3v4l.org

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

Function schimbare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ekdg5
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:
148.95 ms | 1396 KiB | 14 Q