3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regions = [ 'int' => 1, 'nl' => 2, 'be' => 4, 'us' => 8, 'as' => 16, 'za' => 32, ]; for ($i = 0; $i < 1 << count($regions); $i++) array_walk(array_filter($regions, function($x) use ($i) { return $x & $number; }), function($x, $region) use ($list) { isset($list[$region]) && $list[$region] .= ","; $list[$region] .= $x; };
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected ';' in /in/5bTo7 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/5bTo7 on line 3
Process exited with code 255.