Type Juggler · Level 3 of 7

PHP 8 stopped guessing

An int compared with strings that are not quite numbers.

<?phpecho var_export(0 == "a", true) . PHP_EOL;echo var_export(0 == "0", true) . PHP_EOL;echo var_export(42 == "42abc", true) . PHP_EOL;

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…
  3. 3…