3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr("Hello world",10); echo “\n”; echo substr("Hello world",2); echo “\n”; echo substr("Hello world",3); echo “\n”; echo substr("Hello world",7); ?>
based on nM3Of
Output for 7.0.0 - 7.2.0
d Fatal error: Uncaught Error: Undefined constant '“\n”' in /in/3OvCM:3 Stack trace: #0 {main} thrown in /in/3OvCM on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
d Fatal error: Undefined constant '“\n”' in /in/3OvCM on line 3
Process exited with code 255.