3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $GET=['prijs'=>'0,209', 'orderby'=>'price', ['order']=>'undefined', ['posts_per_page']=>'undefined']; var_dump($GET); array_walk($GET, function(&$n) { $n = explode(',', $n); }); var_dump($GET);
Output for 5.4.0 - 5.6.28
Warning: Illegal offset type in /in/QTIv6 on line 2 Warning: Illegal offset type in /in/QTIv6 on line 2 array(2) { ["prijs"]=> string(5) "0,209" ["orderby"]=> string(5) "price" } array(2) { ["prijs"]=> array(2) { [0]=> string(1) "0" [1]=> string(3) "209" } ["orderby"]=> array(1) { [0]=> string(5) "price" } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/QTIv6 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/QTIv6 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/QTIv6 on line 2
Process exited with code 255.