3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variable1 = fopen("https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&format=json&piprop=original&titles=Tomoyasu_Hotei", "r"); $variable2 = stream_get_contents($variable1); fclose($variable1); $variable3 = json_decode($variable2, true); $variable4 = $variable3["query"]["pages"]; echo "<pre>"; var_dump($variable4); echo "</pre>";

preferences:
69.2 ms | 402 KiB | 5 Q