3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=1; print $a; function schimbare($a) { $a++; print $a; } schimbare($a); print $a; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mm30A
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
   11     2        INIT_FCALL                                               'schimbare'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   12     5        ECHO                                                     !0
   15     6      > RETURN                                                   1

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

End of function schimbare

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.35 ms | 1397 KiB | 14 Q