3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 10; -$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/EOZjM
function name:  (null)
number of ops:  19
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        FREE                                                     ~5
    6     4        ASSIGN                                                   !1, 10
    7     5        PRE_INC                                          ~7      !1
          6        ASSIGN                                           ~8      !1, ~7
          7        MUL                                              ~9      ~8, -1
          8        FREE                                                     ~9
    9     9        ASSIGN                                                   !2, 10
   10    10        POST_INC                                         ~11     !2
         11        MUL                                              ~12     ~11, -1
         12        ASSIGN                                                   !2, ~12
   12    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1394 KiB | 15 Q