3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.89 ms | 1393 KiB | 13 Q