3v4l.org

run code in 200+ php & hhvm versions
<?php for($limit=10,$str=str_repeat(" ",$limit);$limit>=0;--$limit){ $arr=explode(" ",$str,$limit); if(($count=count($arr)) > $limit){ throw new \LogicException("explode() returned more elements than the limit! someone send a bugreport! limit: {$limit} elements: {$count}"); } }
Output for 7.1.25 - 7.4.0beta4
Fatal error: Uncaught LogicException: explode() returned more elements than the limit! someone send a bugreport! limit: 0 elements: 1 in /in/AEZ36:6 Stack trace: #0 {main} thrown in /in/AEZ36 on line 6
Process exited with code 255.