3v4l.org

run code in 300+ PHP versions simultaneously
<?php $width = 2500 / 1000; $height = 1500 / 1000; $price = "£10.00"; $price_var = substr($price, 2); $quantity = (round($width,2)) * (round($height,2)); echo (round($quantity,2) * $price_var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PpmK1
function name:  (null)
number of ops:  25
compiled vars:  !0 = $width, !1 = $height, !2 = $price, !3 = $price_var, !4 = $quantity
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2.5
    4     1        ASSIGN                                                   !1, 1.5
    5     2        ASSIGN                                                   !2, '%C2%A310.00'
    6     3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !2
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !3, $8
    7     8        INIT_FCALL                                               'round'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $10     
         12        INIT_FCALL                                               'round'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $11     
         16        MUL                                              ~12     $10, $11
         17        ASSIGN                                                   !4, ~12
    8    18        INIT_FCALL                                               'round'
         19        SEND_VAR                                                 !4
         20        SEND_VAL                                                 2
         21        DO_ICALL                                         $14     
         22        MUL                                              ~15     !3, $14
         23        ECHO                                                     ~15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1386 KiB | 17 Q