3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "8,29"; $value = str_replace(",", ".", $value); $foo = intval(floatval($value) * 100); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MZNRY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $value, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '8%2C29'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAL                                                 '.'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    5     7        CAST                                          5  ~5      !0
          8        MUL                                              ~6      ~5, 100
          9        CAST                                          4  ~7      ~6
         10        ASSIGN                                                   !1, ~7
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.55 ms | 1394 KiB | 17 Q