3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.85 ms | 1441 KiB | 13 Q