3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $idfred = '123.Fred'; $fred = substr($idfred, ++strpos($idfred, '.')); echo $fred, "<br>"; $fred = preg_replace('/^([^.]*)./', '', $idfred); echo $fred, "<br>";
Output for 5.4.18
Fatal error: Can't use function return value in write context in /in/3RbSq on line 4
Process exited with code 255.
Output for 5.3.0 - 5.4.17
Fatal error: Can't use function return value in write context in /in/6aSnT on line 4
Process exited with code 255.