3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'abcdef'; $x = substr(, 0, strlen($a)-1);echo $x;echo "\n"; $y = substr($x, 0, strlen($x)-1);echo $y;
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected ',', expecting ')' in /in/0202S on line 3
Process exited with code 255.