Thanks for the helpful new site! Some examples need tweaking.
according to tinker:
Psy Shell v0.12.15 (PHP 8.4.12 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.1). Update with doc --update-manual
2 < 3.0
= true
2 < '3.0'
= true
Your examples indicate otherwise:
2 < 3; // true
2 < '3'; // false
2 < 3.0; // false
The examples for greater than are not useful:
3 > 2; // true
2 > '2'; // false
2 > 2.0; // false
that should probably be:
3 > '2'; // true
3 > 2.0; // true