3v4l.org

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

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

End of function increment

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.99 ms | 1397 KiB | 15 Q