3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $number = 654; $upper = 1000; $lower = 500; if ($number>=$lower && $number<=$upper) { echo 'Ok'; } else { echo 'Number must be between '.$lower.' and ''.$upper; } ?>
Output for 5.4.18
Parse error: syntax error, unexpected ''.$upper;' (T_ENCAPSED_AND_WHITESPACE), expecting ',' or ';' in /in/9T6Rt on line 12
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ''.$upper; ' (T_ENCAPSED_AND_WHITESPACE), expecting ',' or ';' in /in/IpWGV on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ',' or ';' in /in/IpWGV on line 12
Process exited with code 255.