3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = 10; echo (++$a + $b++ + --$a)."\n"; echo $a.", ".$b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZu9i
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 10
    6     2        PRE_INC                                          ~4      !0
          3        POST_INC                                         ~5      !1
          4        ADD                                              ~6      ~4, ~5
          5        PRE_DEC                                          ~7      !0
          6        ADD                                              ~8      ~6, ~7
          7        CONCAT                                           ~9      ~8, '%0A'
          8        ECHO                                                     ~9
    7     9        CONCAT                                           ~10     !0, '%2C+'
         10        CONCAT                                           ~11     ~10, !1
         11        ECHO                                                     ~11
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.09 ms | 1393 KiB | 13 Q