3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(strpos('httpfoo', '^http')); var_dump(strpos('foohttp', '^http')); var_dump(strpos('foobar', '^http')); var_dump(strpos('httpfoo', 'http')); var_dump(strpos('foohttp', 'http')); var_dump(strpos('foobar', 'http'));
based on TPKd7
Output for 4.3.0 - 7.1.7, 7.2.0
bool(false) bool(false) bool(false) int(0) int(3) bool(false)
Output for 7.1.10

Process exited with code 137.