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) $a = 1; $c = $a + $a++ + $a; var_dump($c); // int(5) $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/M1OEi
function name:  (null)
number of ops:  32
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                                                 
    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                                                 
   11    15        ASSIGN                                                   !0, 1
   12    16        POST_INC                                         ~14     !0
         17        ADD                                              ~15     !0, ~14
         18        ADD                                              ~16     ~15, !0
         19        ASSIGN                                                   !1, ~16
   13    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   16    23        ASSIGN                                                   !0, 1
   17    24        POST_INC                                         ~20     !0
         25        ADD                                              ~21     ~20, !0
         26        ADD                                              ~22     ~21, !0
         27        ASSIGN                                                   !1, ~22
   18    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.64 ms | 1395 KiB | 15 Q