3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price = floatval(10); $our_price = $price - floatval(.10); echo number_format($our_price, 2, '.', ''); ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vUvpo
function name:  (null)
number of ops:  13
compiled vars:  !0 = $price, !1 = $our_price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          5  ~2      10
          1        ASSIGN                                                   !0, ~2
    3     2        CAST                                          5  ~4      0.1
          3        SUB                                              ~5      !0, ~4
          4        ASSIGN                                                   !1, ~5
    5     5        INIT_FCALL                                               'number_format'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 '.'
          9        SEND_VAL                                                 ''
         10        DO_ICALL                                         $7      
         11        ECHO                                                     $7
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.72 ms | 1394 KiB | 15 Q