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, );
Output for 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
bool(false) bool(false)
Output for 5.4.18 - 5.4.19, 7.2.29 - 7.2.33
Parse error: syntax error, unexpected ')' in /in/VCSJB on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ')' in /in/2JnoL on line 10
Process exited with code 255.

preferences:
164.51 ms | 402 KiB | 189 Q