3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.1 ms | 1399 KiB | 17 Q