3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $results[1] = 'Controller'; $valid_segments = array( 'Attribute' => 'attributes', 'MenuItem' => 'menu_items', 'Authentication' => 'authentication', 'Block' => 'blocks', 'Theme' => 'themes', 'Controller' => 'controllers', 'Job' => 'jobs', 'Src' => 'src' ); if (!in_array($results[1], array_keys($valid_segments))) { die('FAILES'); } die('WORKS');
Output for 4.3.0 - 7.2.0
WORKS