3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $c = $a++ + $a ; var_dump($c, $a); $a = 1; $c = $a + $a + $a++; var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYU7U
function name:  (null)
number of ops:  17
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      ~3, !0
         3        ASSIGN                                                   !1, ~4
   4     4        INIT_FCALL                                               'var_dump'
         5        SEND_VAR                                                 !1
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                                 
   5     8        ASSIGN                                                   !0, 1
   6     9        ADD                                              ~8      !0, !0
        10        POST_INC                                         ~9      !0
        11        ADD                                              ~10     ~8, ~9
        12        ASSIGN                                                   !1, ~10
   7    13        INIT_FCALL                                               'var_dump'
        14        SEND_VAR                                                 !1
        15        DO_ICALL                                                 
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0