3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "http://192.168.1.19/archive/2015-11-30/20151130-105559_9897323703-all.mp3"; $test2 = substr(strpos("archive"), $test); echo $test2;
Output for 7.0.0 - 7.2.0
Warning: strpos() expects at least 2 parameters, 1 given in /in/diXtf on line 5 Warning: substr() expects parameter 2 to be integer, string given in /in/diXtf on line 5
Output for 5.3.20 - 5.6.28
Warning: strpos() expects at least 2 parameters, 1 given in /in/diXtf on line 5 Warning: substr() expects parameter 2 to be long, string given in /in/diXtf on line 5