3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $c = $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/EOD78
function name:  (null)
number of ops:  18
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        ASSIGN                                                   !1, ~3
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        ASSIGN                                                   !0, 1
    8    10        ADD                                              ~8      !0, !0
         11        POST_INC                                         ~9      !0
         12        ADD                                              ~10     ~8, ~9
         13        ASSIGN                                                   !1, ~10
    9    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.14 ms | 1394 KiB | 15 Q