3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.96 ms | 1385 KiB | 15 Q