3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 10; $a = -$a++; $b = 10; $b = ++$b; $c = 10; $c = -$c++; var_dump($a, $b, $c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XntWq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10
    4     1        POST_INC                                         ~4      !0
          2        MUL                                              ~5      ~4, -1
          3        ASSIGN                                                   !0, ~5
    6     4        ASSIGN                                                   !1, 10
    7     5        PRE_INC                                          ~8      !1
          6        ASSIGN                                                   !1, ~8
    9     7        ASSIGN                                                   !2, 10
   10     8        POST_INC                                         ~11     !2
          9        MUL                                              ~12     ~11, -1
         10        ASSIGN                                                   !2, ~12
   12    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.41 ms | 1394 KiB | 15 Q