3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo trim(".-*123-'.", "...-");
Output for 5.2.5 - 7.2.0
Warning: trim(): Invalid '..'-range, no character to the left of '..' in /in/9OuKK on line 3 Warning: trim(): Invalid '..'-range, '..'-range needs to be incrementing in /in/9OuKK on line 3 *123-'
Output for 4.3.2 - 5.2.4
Warning: trim(): Invalid '..'-range, no character to the left of '..'. in /in/9OuKK on line 3 Warning: trim(): Invalid '..'-range, '..'-range needs to be incrementing. in /in/9OuKK on line 3 *123-'
Output for 4.3.0 - 4.3.1
Warning: trim() [http://www.php.net/function.trim]: Invalid '..'-range, no character to the left of '..'. in /in/9OuKK on line 3 Warning: trim() [http://www.php.net/function.trim]: Invalid '..'-range, '..'-range needs to be incrementing. in /in/9OuKK on line 3 *123-'