3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{ "C1": [ "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">" ], "C10": [ "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">" ], "C11": [ "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">" ], "C12": [ "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">", "<img src=\"available.png\">" ] }'; $json = json_decode($str, true); foreach($json as $key=>$val){ echo $key." ".implode($val)."\n"; } // note: replace \n with <br/>
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.16, 8.3.0 - 8.3.3
C1 <img src="available.png"><img src="available.png"><img src="available.png"><img src="available.png"> C10 <img src="available.png"><img src="available.png"><img src="available.png"><img src="available.png"> C11 <img src="available.png"><img src="available.png"><img src="available.png"><img src="available.png"> C12 <img src="available.png"><img src="available.png"><img src="available.png"><img src="available.png">

preferences:
186.09 ms | 405 KiB | 324 Q