3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = $a + $a++; echo $b.PHP_EOL; $a = 1; @ $b = $a + $a++; echo $b.PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rv0tY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
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        CONCAT                                           ~6      !1, '%0A'
          5        ECHO                                                     ~6
    5     6        ASSIGN                                                   !0, 1
    6     7        BEGIN_SILENCE                                    ~8      
          8        POST_INC                                         ~9      !0
          9        ADD                                              ~10     !0, ~9
         10        ASSIGN                                                   !1, ~10
         11        END_SILENCE                                              ~8
    7    12        CONCAT                                           ~12     !1, '%0A'
         13        ECHO                                                     ~12
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.28 ms | 1397 KiB | 13 Q