3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; $y = '1'; if($i===1){ echo 'i is great<br />'; } if($i==true){ echo 'i is true<br />'; } if($i!===true){ echo 'i is not totaly true<br />'; } if($y===1){ echo 'y is great<br />'; }
Output for 5.3.26, 5.4.16
Parse error: syntax error, unexpected '=' in /in/1bICD on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '=' in KL7No on line 12
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected '=' in /in/KL7No on line 12
Process exited with code 255.

preferences:
189.73 ms | 1395 KiB | 51 Q