3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $drift = 'DRIFT TAXI BIERFEST 10:00 - 10:30'; $race = 'Race TAXI BIERFEST 09:00 - 09:30'; echo substr($drift, -13).PHP_EOL; echo trim(substr($drift, 0, 10)).PHP_EOL; echo trim(substr($race, 0, 10)).PHP_EOL;
based on OU4dP
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
10:00 - 10:30 DRIFT TAXI Race TAXI
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8Yirb on line 7 10:00 - 10:30PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8Yirb on line 8 DRIFT TAXIPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/8Yirb on line 9 Race TAXIPHP_EOL