3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.74 ms | 1384 KiB | 13 Q