3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo trim(".-*123-'.", "...-");
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.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 hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: charlist: Invalid '..'-range, missing left of '..' in /in/9OuKK on line 3 Warning: Invalid argument: charlist: '..'-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-'