3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = '/foo/bar/'; if (strpos($url,'/foo/bar/') !== false) { echo "True" }; ?>
Output for 5.3.0 - 5.3.18, 5.4.0 - 5.4.8
Parse error: syntax error, unexpected '}', expecting ',' or ';' in nSS9L on line 5
Process exited with code 255.

preferences:
189.19 ms | 1395 KiB | 35 Q