3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.79 ms | 1384 KiB | 13 Q