3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "8,29"; $value = str_replace(",", ".", $value); var_dump($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/DLEM8
function name:  (null)
number of ops:  18
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
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    6    10        CAST                                          5  ~6      !0
         11        MUL                                              ~7      ~6, 100
         12        CAST                                          4  ~8      ~7
         13        ASSIGN                                                   !1, ~8
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1394 KiB | 17 Q