3v4l.org

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

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

End of function increment

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.63 ms | 1397 KiB | 16 Q