3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // AnyKeyArray - https://gist.github.com/vrana/5581788 $article_tags = new AnyKeyArray(); // Tohle šlo už dřív. $article_tags[array("article_id" => $article_id, "tag_id" => $tag_id)] = $article_tag; echo $article_tags[array("article_id" => $article_id, "tag_id" => $tag_id)]; // Tohle funguje až v PHP 5.5. foreach ($article_tags as $key => $val) { print_r($key); } ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'AnyKeyArray' not found in /in/o36fo:4 Stack trace: #0 {main} thrown in /in/o36fo on line 4
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Class 'AnyKeyArray' not found in /in/o36fo on line 4
Process exited with code 255.