3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = '/purest/test/testing_route/abcd'; list($matches['prefix'], $matches['service'], $matches['route']) = explode('/', ltrim($url, '/'), 3); var_dump($matches);
Output for 7.0.0 - 7.1.0
array(3) { ["prefix"]=> string(6) "purest" ["service"]=> string(4) "test" ["route"]=> string(18) "testing_route/abcd" }
Output for 4.3.0 - 5.6.28
array(3) { ["route"]=> string(18) "testing_route/abcd" ["service"]=> string(4) "test" ["prefix"]=> string(6) "purest" }