3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "categories":{ "sermons":[ { "title":"We Have Overcome the World" , "url":"http://test.solidrockchristianfellowship.com/sermons/we-have-overcome-the-world/" , "content":"" , "date":"May 22, 2014", "datetime":"2014-05-22T13:41:49", } ], "events":[ { "title":"SRCF Night of Prayer" , "url":"http://test.solidrockchristianfellowship.com/events/srcf-night-of-prayer/" , "content":"<p>Apr 4th at 7:30 pm SRCF Night of Prayer, Praise and the Word; Guest Speaker is Pastor Shirley Reid; Shekinah Glory Ministry; N. Charleston, SC</p>" , "date":"April 04, 2014", "datetime":"2014-04-04T00:00:00", }, { "title":"Mighty Warrior" , "url":"http://test.solidrockchristianfellowship.com/events/mighty-warrior/" , "content":"" , "date":"April 19, 2014", "datetime":"2014-04-19T00:00:00", }, { "title":"Solid Rock Spring Revival" , "url":"http://test.solidrockchristianfellowship.com/events/solid-rock-spring-revival/" , "content":"<p>SRCF Spring Revival; Guest Speaker is Apostle W. Lenard King; Pastor of New Covenant Evangelistic Center; Charleston, SC</p>" , "date":"April 23, 2014", "datetime":"2014-04-23T00:00:00", } ] }, "pages":{ "About Us": { "title":"About Us" , "url":"http://test.solidrockchristianfellowship.com/about-us/" }, "Bible Study with Pastor Faden": { "title":"Bible Study with Pastor Faden" , "url":"http://test.solidrockchristianfellowship.com/bible-study-with-pastor-faden/" }, "Live Stream": { "title":"Live Stream" , "url":"http://test.solidrockchristianfellowship.com/live-stream/" }, "Our Ministries": { "title":"Our Ministries" , "url":"http://test.solidrockchristianfellowship.com/our-ministries/" }, "Our Mission": { "title":"Our Mission" , "url":"http://test.solidrockchristianfellowship.com/our-mission/" }, "Our Pastor": { "title":"Our Pastor" , "url":"http://test.solidrockchristianfellowship.com/our-pastor/" }, "Our Vision": { "title":"Our Vision" , "url":"http://test.solidrockchristianfellowship.com/our-vision/" }, "Prayer Request": { "title":"Prayer Request" , "url":"http://test.solidrockchristianfellowship.com/prayer-request/" }, "Service Times": { "title":"Service Times" , "url":"http://test.solidrockchristianfellowship.com/service-times/" }, "Subscribe": { "title":"Subscribe" , "url":"http://test.solidrockchristianfellowship.com/subscribe/" }, "Videos": { "title":"Videos" , "url":"http://test.solidrockchristianfellowship.com/videos/" }, "What we Believe": { "title":"What we Believe" , "url":"http://test.solidrockchristianfellowship.com/what-we-believe/" } } } '; function test($jsondata){ // decode the json data for parsing $json = json_decode($jsondata, true); $todaysDate = date("Y-m-d"); $data = $json['categories']['events'] ; foreach($data as $event) { echo '<li>'; echo $event['title']; echo $event['date']; echo $event['datetime']; echo '</li>'; } } ?> <pre><?php var_dump(test($json));?></pre>

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)
8.3.60.0140.00316.75
8.3.50.0100.00821.99
8.3.40.0040.01119.03
8.3.30.0140.00019.20
8.3.20.0000.00820.04
8.3.10.0030.00523.65
8.3.00.0080.00019.50
8.2.180.0090.00618.29
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0030.00626.16
8.2.120.0060.00322.13
8.2.110.0040.00422.13
8.2.100.0090.00317.97
8.2.90.0000.00819.40
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0050.00617.80
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0000.00718.27
8.2.20.0060.00317.71
8.2.10.0040.00418.27
8.2.00.0070.00317.82
8.1.280.0140.00425.92
8.1.270.0030.00523.96
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00024.01
8.1.230.0080.00319.07
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.38
8.1.190.0080.00017.63
8.1.180.0060.00618.10
8.1.170.0000.00818.63
8.1.160.0000.00722.04
8.1.150.0020.00518.82
8.1.140.0000.00717.65
8.1.130.0030.00317.98
8.1.120.0050.00517.64
8.1.110.0070.00017.49
8.1.100.0000.00717.51
8.1.90.0040.00417.59
8.1.80.0070.00017.49
8.1.70.0030.00617.48
8.1.60.0040.00417.55
8.1.50.0040.00417.55
8.1.40.0040.00417.64
8.1.30.0050.00317.65
8.1.20.0000.00817.73
8.1.10.0000.00817.61
8.1.00.0080.00017.72
8.0.300.0040.00420.68
8.0.290.0000.00717.05
8.0.280.0030.00318.47
8.0.270.0030.00317.29
8.0.260.0000.00617.45
8.0.250.0070.00017.20
8.0.240.0070.00017.16
8.0.230.0030.00517.15
8.0.220.0000.00717.02
8.0.210.0000.00716.97
8.0.200.0000.00817.15
8.0.190.0000.00717.05
8.0.180.0070.00017.04
8.0.170.0060.00317.00
8.0.160.0000.00716.99
8.0.150.0040.00417.05
8.0.140.0050.00316.95
8.0.130.0030.00313.38
8.0.120.0070.00016.89
8.0.110.0000.00816.94
8.0.100.0000.00716.91
8.0.90.0050.00217.10
8.0.80.0150.00417.09
8.0.70.0070.00016.87
8.0.60.0040.00416.95
8.0.50.0000.00717.10
8.0.30.0110.00717.16
8.0.20.0160.00717.40
8.0.10.0070.00017.25
8.0.00.0110.00717.01
7.4.330.0000.00515.16
7.4.320.0000.00616.50
7.4.300.0070.00016.45
7.4.290.0040.00416.50
7.4.280.0030.00516.57
7.4.270.0040.00416.54
7.4.260.0000.00716.60
7.4.250.0070.00016.71
7.4.240.0050.00216.61
7.4.230.0020.00516.57
7.4.220.0060.00916.80
7.4.210.0090.00716.68
7.4.200.0070.00016.67
7.4.190.0030.00316.76
7.4.160.0040.01116.57
7.4.150.0100.00717.40
7.4.140.0070.00917.86
7.4.130.0070.01016.66
7.4.120.0070.01016.69
7.4.110.0150.00816.58
7.4.100.0080.00816.69
7.4.90.0110.00616.56
7.4.80.0060.01519.39
7.4.70.0130.00316.70
7.4.60.0130.00916.84
7.4.50.0040.00416.72
7.4.40.0080.00322.77
7.4.30.0090.00916.72
7.4.00.0060.01015.04
7.3.330.0000.00513.53
7.3.320.0040.00413.50
7.3.310.0040.00416.42
7.3.300.0030.00316.48
7.3.290.0070.00716.59
7.3.280.0100.00816.49
7.3.270.0140.00317.40
7.3.260.0110.00616.60
7.3.250.0090.00816.57
7.3.240.0080.00916.59
7.3.230.0070.01016.47
7.3.210.0090.00916.48
7.3.200.0130.01019.39
7.3.190.0110.01116.60
7.3.180.0060.01016.62
7.3.170.0100.00616.48
7.3.160.0180.00016.46
7.3.120.0090.00815.04
7.3.110.0080.00914.84
7.3.100.0110.00515.08
7.3.90.0070.00915.04
7.3.80.0050.01014.97
7.3.70.0060.00814.94
7.3.60.0050.00714.86
7.3.50.0080.00714.89
7.3.40.0040.00815.00
7.3.30.0080.00314.96
7.3.20.0090.00516.77
7.3.10.0040.00816.80
7.3.00.0020.01116.67
7.2.330.0130.00317.05
7.2.320.0140.00416.53
7.2.310.0070.01016.90
7.2.300.0100.00716.97
7.2.290.0170.00016.85
7.2.250.0060.00815.01
7.2.240.0070.01215.24
7.2.230.0080.00815.04
7.2.220.0060.00815.06
7.2.210.0040.00915.23
7.2.200.0050.00915.18
7.2.190.0080.00715.21
7.2.180.0070.00715.23
7.2.170.0080.00514.95
7.2.160.0070.00714.95
7.2.150.0040.01117.02
7.2.140.0000.01616.84
7.2.130.0000.01616.84
7.2.120.0000.01016.88
7.2.110.0050.00516.89
7.2.100.0030.01316.85
7.2.90.0040.01217.14
7.2.80.0090.00616.94
7.2.70.0090.00316.78
7.2.60.0090.00617.02
7.2.50.0090.00616.83
7.2.40.0040.01117.14
7.2.30.0040.01217.16
7.2.20.0090.00316.80
7.2.10.0040.00717.13
7.2.00.0050.01018.20
7.1.330.0060.01016.01
7.1.320.0060.00715.86
7.1.310.0030.01015.89
7.1.300.0050.00815.88
7.1.290.0080.00715.93
7.1.280.0060.00415.82
7.1.270.0050.00915.94
7.1.260.0070.00415.79
7.1.250.0030.00815.96
7.1.200.0070.00715.87
7.1.100.0060.00618.50
7.1.70.0030.01217.23
7.1.60.0040.01819.46
7.1.50.0170.02134.99
7.1.00.0030.07322.28
7.0.200.0760.00315.16
7.0.140.0070.07321.99
7.0.80.0230.05019.96
7.0.70.0030.05019.96
7.0.60.0030.03720.05
7.0.50.0030.04020.32
7.0.40.0130.03020.04
7.0.30.0100.03720.02
7.0.20.0100.03720.00
7.0.10.0030.04020.00
7.0.00.0070.03320.02
5.6.280.0070.07021.11
5.6.230.0030.04720.58
5.6.220.0000.05320.74
5.6.210.0070.03720.47
5.6.200.0100.03721.09
5.6.190.0030.03720.94
5.6.180.0030.04020.99
5.6.170.0030.04321.11
5.6.160.0030.04320.95
5.6.150.0130.03320.96
5.6.140.0000.04021.06
5.6.130.0030.04321.08
5.6.120.0130.03721.11
5.6.110.0130.07721.10
5.6.100.0170.07321.10
5.6.90.0070.08020.93
5.6.80.0070.04320.45
5.6.70.0070.05720.44
5.6.60.0000.06720.41
5.6.50.0130.07320.46
5.6.40.0100.08320.54
5.6.30.0130.06320.39
5.6.20.0070.05020.44
5.6.10.0030.04320.38
5.6.00.0100.04020.36
5.5.370.0030.04020.44
5.5.360.0100.03720.36
5.5.350.0000.04320.42
5.5.340.0130.02720.88
5.5.330.0000.04320.88
5.5.320.0000.05320.64
5.5.310.0100.03720.78
5.5.300.0100.05720.91
5.5.290.0030.04020.93
5.5.280.0200.06320.80
5.5.270.0000.07720.73
5.5.260.0100.07720.77
5.5.250.0070.08320.69
5.5.240.0070.08020.25
5.5.230.0070.08020.29
5.5.220.0170.07020.18
5.5.210.0170.05720.27
5.5.200.0070.04020.23
5.5.190.0070.06320.28
5.5.180.0130.06320.24
5.5.160.0070.04320.08
5.5.150.0030.04720.14
5.5.140.0030.04020.13
5.5.130.0030.08320.18
5.5.120.0070.04720.17
5.5.110.0170.06720.18
5.5.100.0070.07320.08
5.5.90.0070.07020.11
5.5.80.0100.07320.02
5.5.70.0070.08020.04
5.5.60.0100.07319.94
5.5.50.0100.07320.12
5.5.40.0070.07720.04
5.5.30.0030.05320.12
5.5.20.0130.05019.92
5.5.10.0100.07320.05
5.5.00.0030.05320.06
5.4.450.0000.03719.36
5.4.440.0070.05019.45
5.4.430.0100.07319.46
5.4.420.0070.04019.50
5.4.410.0130.06019.16
5.4.400.0100.07719.13
5.4.390.0130.05019.03
5.4.380.0100.08019.04
5.4.370.0030.08019.20
5.4.360.0000.04718.88
5.4.350.0200.06318.85
5.4.340.0030.08319.12
5.4.320.0170.07319.13
5.4.310.0130.03019.23
5.4.300.0030.05319.13
5.4.290.0100.07019.20
5.4.280.0070.07719.09
5.4.270.0030.04719.20
5.4.260.0100.06018.86
5.4.250.0170.06718.94
5.4.240.0070.07318.84
5.4.230.0030.07719.13
5.4.220.0130.07019.15
5.4.210.0100.07319.17
5.4.200.0130.07019.18
5.4.190.0100.07718.86
5.4.180.0170.06319.22
5.4.170.0030.07719.20
5.4.160.0200.06019.10
5.4.150.0100.07719.11
5.4.140.0070.07716.42
5.4.130.0100.06716.41
5.4.120.0100.07716.34
5.4.110.0000.06016.51
5.4.100.0030.06716.39
5.4.90.0000.08016.50
5.4.80.0030.04316.34
5.4.70.0030.04016.34
5.4.60.0100.03716.38
5.4.50.0030.04016.45
5.4.40.0070.07716.52
5.4.30.0070.05316.33
5.4.20.0030.07716.36
5.4.10.0070.07016.34
5.4.00.0100.06715.78
5.3.290.0070.04014.66
5.3.280.0100.07314.66
5.3.270.0070.07714.62
5.3.260.0130.07314.73
5.3.250.0030.07314.75
5.3.240.0200.04714.56
5.3.230.0100.06714.67
5.3.220.0100.07314.58
5.3.210.0100.05314.55
5.3.200.0200.06014.57
5.3.190.0070.07014.64
5.3.180.0070.07314.58
5.3.170.0100.07014.63
5.3.160.0130.03014.64
5.3.150.0100.07314.56
5.3.140.0100.06714.52
5.3.130.0030.07014.59
5.3.120.0030.08014.52
5.3.110.0130.09014.66
5.3.100.0030.05714.01
5.3.90.0100.04714.11
5.3.80.0000.04013.93
5.3.70.0170.06314.13
5.3.60.0100.04314.06
5.3.50.0070.04713.96
5.3.40.0270.05014.09
5.3.30.0000.04714.02
5.3.20.0130.06713.77
5.3.10.0070.07013.69
5.3.00.0100.05713.79
5.2.170.0000.07011.20
5.2.160.0030.06311.08
5.2.150.0030.04711.01
5.2.140.0030.06311.08
5.2.130.0000.06711.01
5.2.120.0070.06011.02
5.2.110.0030.06011.11
5.2.100.0000.04311.16
5.2.90.0030.06311.20
5.2.80.0070.05011.02
5.2.70.0000.06711.09
5.2.60.0000.05711.11
5.2.50.0000.05011.14
5.2.40.0030.04711.12
5.2.30.0070.04311.11
5.2.20.0030.04010.92
5.2.10.0000.06711.01
5.2.00.0030.06310.86
5.1.60.0000.05010.70
5.1.50.0100.05010.70
5.1.40.0070.05310.70
5.1.30.0030.05710.70
5.1.20.0070.05310.70
5.1.10.0100.04710.70
5.1.00.0070.05310.70
5.0.50.0070.04010.70
5.0.40.0070.03310.70
5.0.30.0030.04710.70
5.0.20.0030.04310.70
5.0.10.0070.03310.70
5.0.00.0000.04310.70
4.4.90.0000.03310.70
4.4.80.0000.03010.70
4.4.70.0000.03010.70
4.4.60.0000.02710.70
4.4.50.0000.03710.70
4.4.40.0000.04010.70
4.4.30.0000.03710.70
4.4.20.0000.03710.70
4.4.10.0000.02710.70
4.4.00.0000.06010.70
4.3.110.0030.02010.70
4.3.100.0070.03010.70
4.3.90.0030.02710.70
4.3.80.0030.02310.70
4.3.70.0030.03310.70
4.3.60.0030.03710.70
4.3.50.0030.03310.70
4.3.40.0070.04010.70
4.3.30.0070.02310.70
4.3.20.0030.03710.70
4.3.10.0030.03710.70
4.3.00.0030.02710.70

preferences:
45.05 ms | 400 KiB | 5 Q