3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n="19.99"; print intval($n*100); // prints 1998 print intval(strval($n*100)); // prints 1999
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FJmu5
function name:  (null)
number of ops:  9
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '19.99'
    4     1        MUL                                              ~2      !0, 100
          2        CAST                                          4  ~3      ~2
          3        ECHO                                                     ~3
    5     4        MUL                                              ~4      !0, 100
          5        CAST                                          6  ~5      ~4
          6        CAST                                          4  ~6      ~5
          7        ECHO                                                     ~6
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.88 ms | 1392 KiB | 13 Q