3v4l.org

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

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rtsU
function name:  b
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2        BIND_GLOBAL                                              !0, 'a'
          3        BIND_GLOBAL                                              !1, 'b'
   13     4        ASSIGN_OP                                     1          !0, 7
   15     5        PRE_INC                                                  !0
   17     6        ASSIGN_OP                                     1          !1, !0
   19     7      > RETURN                                                   <true>
   21     8*     > RETURN                                                   null

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.68 ms | 1393 KiB | 13 Q