<?php
$truths = [
'0 === 0',
'0 === 0.0',
'0 == 0',
'0 === 0.0',
];
foreach ($truths as $truth) {
echo $truth . ': ' . eval("return $truth");
}
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- Parse error: syntax error, unexpected end of file, expecting ";" in /in/NZ5A9(11) : eval()'d code on line 1
Process exited with code 255. - Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
- Parse error: syntax error, unexpected end of file, expecting ';' in /in/NZ5A9(11) : eval()'d code on line 1
Process exited with code 255.
preferences:
132.51 ms | 402 KiB | 199 Q