3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.51 ms | 1397 KiB | 13 Q