3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr('foobar', 3, l);
based on Cscok
Output for 7.2.0
Warning: Use of undefined constant l - assumed 'l' (this will throw an Error in a future version of PHP) in /in/NHOK3 on line 3 Warning: substr() expects parameter 3 to be integer, string given in /in/NHOK3 on line 3
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant l - assumed 'l' in /in/NHOK3 on line 3 Warning: substr() expects parameter 3 to be integer, string given in /in/NHOK3 on line 3
Output for 5.3.22 - 5.6.28
Notice: Use of undefined constant l - assumed 'l' in /in/NHOK3 on line 3 Warning: substr() expects parameter 3 to be long, string given in /in/NHOK3 on line 3