3v4l.org

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

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

End of function increase

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.17 ms | 1388 KiB | 14 Q