3v4l.org

run code in 300+ PHP versions simultaneously
<?php $quantity = 3.75; $price = (float)substr("£10.00", 2); echo (round($quantity,2) * $price);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DS2kT
function name:  (null)
number of ops:  14
compiled vars:  !0 = $quantity, !1 = $price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3.75
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAL                                                 '%C2%A310.00'
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $3      
          5        CAST                                          5  ~4      $3
          6        ASSIGN                                                   !1, ~4
    5     7        INIT_FCALL                                               'round'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 2
         10        DO_ICALL                                         $6      
         11        MUL                                              ~7      !1, $6
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 1394 KiB | 17 Q