3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = '12,747'; var_dump([ ($foo * 1000), (12.747 * 1000), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1DQmK
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12%2C747'
    5     1        INIT_FCALL                                               'var_dump'
    6     2        MUL                                              ~2      !0, 1000
          3        INIT_ARRAY                                       ~3      ~2
          4        ADD_ARRAY_ELEMENT                                ~3      12747
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    8     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.04 ms | 1394 KiB | 15 Q