3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.88 ms | 1394 KiB | 15 Q