3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $no_params = preg_replace('%/\{[^}]*}%', '', $this->path); $no_dash = implode(array_map('ucfirst', explode('-', $no_params))); $paths = array_slice(explode('/', trim($no_dash, '/')), 0, -1); array_map('ucfirst', $paths);
based on 1cOhm
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Using $this when not in object context in /in/oG1WV:2 Stack trace: #0 {main} thrown in /in/oG1WV on line 2
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Using $this when not in object context in /in/oG1WV on line 2
Process exited with code 255.