3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1394 KiB | 15 Q