3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.53 ms | 1392 KiB | 13 Q