3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( '/' => array('module'=>'default', 'controller'=>'index', 'action'=>'index', 'home'=>true, 'method'=>'GET'), '/home' => array('module'=>'default', 'controller'=>'index', 'home'=>true, 'method'=>'GET'), '/[:action]/archive/[i:month]/[i:year]' => array('module'=>'default'), ); foreach(test as $key=>$value){ return true; }
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant test - assumed 'test' in /in/q0ZHq on line 8 Warning: Invalid argument supplied for foreach() in /in/q0ZHq on line 8
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant test - assumed 'test' in /in/q0ZHq on line 8 Warning: Invalid argument supplied for foreach() in /in/q0ZHq on line 10
Output for 4.3.11
Notice: Use of undefined constant test - assumed 'test' in /in/q0ZHq on line 8