- Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
- it's wrong (string)`1 hi all!` !== (int)`1` int(1) it's wrong (string)`1 hi all!` !== (int)`1` int(1)
<?php
declare(strict_types=1);
echo "\nit's wrong (string)`1 hi all!` !== (int)`1`\n";
$a = base64_encode('1 hi all!');
var_dump((int)base64_decode($a));
echo "\nit's wrong (string)`1 hi all!` !== (int)`1`\n";
var_dump((int) '1 hi all!');