3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $source = "asdsadsadas"; if (strpos(source, 'http') === 0 or strpos(source, 'https') === 0) { echo "Dupa"; } else { echo "Sraka"; } ?>
based on oPtIl
Output for 7.2.0
Warning: Use of undefined constant source - assumed 'source' (this will throw an Error in a future version of PHP) in /in/vo93t on line 5 Warning: Use of undefined constant source - assumed 'source' (this will throw an Error in a future version of PHP) in /in/vo93t on line 5 Sraka
Output for 5.3.21 - 7.1.10
Notice: Use of undefined constant source - assumed 'source' in /in/vo93t on line 5 Notice: Use of undefined constant source - assumed 'source' in /in/vo93t on line 5 Sraka