3v4l.org

run code in 500+ PHP versions simultaneously
<?php $number =5; if($number == true) echo "true"; if($number = true) echo "true"; if(true == $number) echo "true"; if(true = $number) echo "true";
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0
Parse error: syntax error, unexpected '=' in /in/suF9s on line 11
Process exited with code 255.
Output for 8.3.5
Parse error: syntax error, unexpected token "=" in /in/suF9s on line 11
Process exited with code 255.

preferences:
29.22 ms | 1139 KiB | 7 Q