3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $c = $a + $a++; var_dump($c); // int(3) var_dump($a); // 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/sA6WF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        POST_INC                                         ~3      !0
          2        ADD                                              ~4      !0, ~3
          3        ASSIGN                                                   !1, ~4
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    7    10        ASSIGN                                                   !0, 1
    8    11        ADD                                              ~9      !0, !0
         12        POST_INC                                         ~10     !0
         13        ADD                                              ~11     ~9, ~10
         14        ASSIGN                                                   !1, ~11
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.44 ms | 1386 KiB | 15 Q