3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pages=array( 'article, image url here', 'article, image url here', 'article, image url here', 'article, image url here', 'news, url here', 'link, url here' ); Foreach($pages as $page){ $p = explode (", ", $page); // If everything is outputted the same use: Echo '<div class="'. $p[0] . '"><img src="' . $p[1] . '"></div>'; // If not outputted the same use: If($p[0] == "article"){ Echo '<div class="'. $p[0] . '"><img src="' . $p[1] . '"></div>'; }Else if($p[0] == "news"){ Echo 'some other way'; }Else if($p[0] == "link"){ Echo 'some third way'; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.1.60.1170.00733.07
7.1.50.1400.01032.86
7.1.40.1600.01332.44
7.1.30.2430.00732.39
7.1.20.2230.01032.56
7.1.10.1930.01014.25
7.1.00.1970.01314.56
7.0.200.2230.00714.66
7.0.190.1770.01014.58
7.0.180.1130.01714.27
7.0.170.3070.00714.14
7.0.160.2200.00014.13
7.0.150.1570.01014.36
7.0.140.1900.01014.34
7.0.130.2600.01014.48
7.0.120.2200.01714.35
7.0.110.2530.00714.05
7.0.100.1870.01014.34
7.0.90.1930.01014.38
7.0.80.3070.01314.29
7.0.70.3000.01014.43
7.0.60.2030.01014.20
7.0.50.2030.01314.12
7.0.40.2000.01014.40
7.0.30.3070.00714.24
7.0.20.3070.01714.30
7.0.10.3070.01314.35
7.0.00.2600.01714.55

preferences:
140.24 ms | 1394 KiB | 7 Q