3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "01/2/21"; //$str1 = "01"; $str2 = 1; if($str1 == $str2) { echo "Ok !!!\n"; } else { echo "Not equal\n"; } //echo var_dump($str1); //echo "\n"; //echo var_dump($str2); //echo "\n";
Output for 8.0.0 - 8.0.22, 8.1.0 - 8.1.9
Not equal
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.30
Ok !!!

preferences:
66.57 ms | 410 KiB | 5 Q