3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x=400; $y=0.75; $z=1.5; echo $test = ($x + 2*$y - ($x/2 + 2*$z))/2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Taovq
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $y, !2 = $z, !3 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 400
          1        ASSIGN                                                       !1, 0.75
          2        ASSIGN                                                       !2, 1.5
    5     3        MUL                                                  ~7      !1, 2
          4        ADD                                                  ~8      !0, ~7
          5        DIV                                                  ~9      !0, 2
          6        MUL                                                  ~10     !2, 2
          7        ADD                                                  ~11     ~9, ~10
          8        SUB                                                  ~12     ~8, ~11
          9        DIV                                                  ~13     ~12, 2
         10        ASSIGN                                               ~14     !3, ~13
         11        ECHO                                                         ~14
    6    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.27 ms | 1836 KiB | 13 Q