3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sAmount = (string)1999; $dAmount1 = 19.99 * 100; $dAmount2 = (double)(19.99 * 100); var_dump( $sAmount == $dAmount1, $sAmount == $dAmount2 );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K5Iou
function name:  (null)
number of ops:  12
compiled vars:  !0 = $sAmount, !1 = $dAmount1, !2 = $dAmount2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          6  ~3      1999
          1        ASSIGN                                                   !0, ~3
    4     2        ASSIGN                                                   !1, 1999
    5     3        CAST                                          5  ~6      1999
          4        ASSIGN                                                   !2, ~6
    7     5        INIT_FCALL                                               'var_dump'
    8     6        IS_EQUAL                                         ~8      !0, !1
          7        SEND_VAL                                                 ~8
    9     8        IS_EQUAL                                         ~9      !0, !2
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.23 ms | 1385 KiB | 15 Q