3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[[{"u":"ali","user_date":"2011-01-19","up":"superthumb"},{"u":"Lucky","user_date":"2011-01-19","up":"superthumb"},{"u":"Lucky","user_date":"2011-01-19","up":"superthumb"},{"u":"aq","user_date":"2011-01-19","up":"cute_glassess_girl"},{"u":"aq","user_date":"2011-01-19","up":"cute_glassess_girl"},{"u":"aq","user_date":"2011-01-19","up":"cute_glassess_girl"},{"u":"aq","user_date":"2011-01-19","up":"cute_glassess_girl"}],[{"comment_id":"7","comment_text":"kHi there i am your great fan","commenter_id":"46","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"8","comment_text":"kHi there i am your great fan","commenter_id":"47","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"9","comment_text":"lucky0473649","commenter_id":"48","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"10","comment_text":"lucky0473649","commenter_id":"49","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"11","comment_text":"lucky0473649","commenter_id":"50","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"12","comment_text":"lucky0473649","commenter_id":"51","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"17","comment_text":"ali","commenter_id":"28","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"},{"comment_id":"18","comment_text":"ali","commenter_id":"28","commented_post_fk_id":"2","comment_date":"2011-01-19","deleted":"0"}]]'; $array = json_decode($json, true); // var_export($array); foreach ($array[1] as $comment) { echo $comment["comment_text"] , "\n"; }

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.4.120.0090.00722.30
8.4.110.0090.01218.83
8.4.100.0100.01017.80
8.4.90.0100.01022.34
8.4.80.0080.01119.60
8.4.70.0100.01117.86
8.4.60.0120.00818.97
8.4.50.0060.00320.59
8.4.40.0160.00322.01
8.4.30.0030.00622.56
8.4.20.0080.01220.41
8.4.10.0170.00317.61
8.3.250.0110.00818.72
8.3.240.0170.00316.28
8.3.230.0080.00316.35
8.3.220.0130.00517.15
8.3.210.0110.00616.65
8.3.200.0080.00116.55
8.3.190.0090.00518.88
8.3.180.0130.00616.70
8.3.170.0080.01117.14
8.3.160.0030.01518.22
8.3.150.0080.00816.44
8.3.140.0000.00817.41
8.3.130.0080.00018.37
8.3.120.0030.00619.16
8.3.110.0050.00320.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00616.75
8.3.70.0070.01118.43
8.3.60.0090.00618.43
8.3.50.0090.00917.43
8.3.40.0080.00818.65
8.3.30.0070.00718.76
8.3.20.0050.00221.85
8.3.10.0000.00923.71
8.3.00.0000.00820.87
8.2.290.0120.00720.78
8.2.280.0090.01118.23
8.2.270.0000.01617.44
8.2.260.0150.00318.50
8.2.250.0060.00316.97
8.2.240.0030.00617.27
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0090.00626.77
8.2.200.0040.00416.63
8.2.190.0090.00616.75
8.2.180.0110.01125.92
8.2.170.0070.00722.96
8.2.160.0100.00320.14
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.76
8.2.110.0090.00022.22
8.2.100.0000.01117.84
8.2.90.0030.00517.63
8.2.80.0000.00817.97
8.2.70.0030.00617.93
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0040.00419.41
8.2.30.0040.00419.33
8.2.20.0000.00818.19
8.2.10.0000.00719.35
8.2.00.0000.00719.27
8.1.330.0060.00521.95
8.1.320.0120.00816.16
8.1.310.0090.00918.48
8.1.300.0040.00418.41
8.1.290.0030.00730.84
8.1.280.0110.00725.92
8.1.270.0030.00520.60
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.85
8.1.230.0000.01119.00
8.1.220.0000.00817.77
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.25
8.1.180.0060.00318.10
8.1.170.0080.00018.46
8.1.160.0050.00218.96
8.1.150.0040.00418.92
8.1.140.0000.00720.78
8.1.130.0030.00320.28
8.1.120.0000.00717.46
8.1.110.0070.00017.32
8.1.100.0040.00417.46
8.1.90.0040.00417.38
8.1.80.0000.00717.34
8.1.70.0030.00617.33
8.1.60.0060.00317.49
8.1.50.0030.00617.49
8.1.40.0090.00017.44
8.1.30.0040.00417.64
8.1.20.0040.00417.70
8.1.10.0030.00617.46
8.1.00.0030.00517.49
8.0.300.0080.00021.47
8.0.290.0060.00316.63
8.0.280.0080.00018.50
8.0.270.0070.00017.18
8.0.260.0030.00718.47
8.0.250.0030.00316.87
8.0.240.0030.00316.89
8.0.230.0000.00716.96
8.0.220.0000.00816.90
8.0.210.0040.00416.82
8.0.200.0000.00616.91
8.0.190.0080.00016.98
8.0.180.0080.00016.93
8.0.170.0030.00616.95
8.0.160.0040.00716.98
8.0.150.0000.00716.86
8.0.140.0040.00416.89
8.0.130.0030.00313.34
8.0.120.0040.00416.77
8.0.110.0050.00216.92
8.0.100.0000.00716.77
8.0.90.0000.00716.76
8.0.80.0060.00916.95
8.0.70.0070.00016.86
8.0.60.0040.00416.98
8.0.50.0040.00416.82
8.0.30.0090.00917.24
8.0.20.0070.01117.03
8.0.10.0040.00416.93
8.0.00.0060.01316.89
7.4.330.0040.00315.55
7.4.320.0030.00316.61
7.4.300.0000.00716.52
7.4.290.0040.00416.66
7.4.280.0040.00416.53
7.4.270.0030.00516.51
7.4.260.0000.00716.52
7.4.250.0000.00816.59
7.4.240.0040.00416.52
7.4.230.0000.00716.68
7.4.220.0080.00016.48
7.4.210.0090.00716.55
7.4.200.0070.00016.61
7.4.160.0110.00616.49
7.4.140.0100.00917.86
7.4.130.0150.00916.58
7.4.120.0090.01316.61
7.4.110.0040.01316.41
7.4.100.0070.01016.47
7.4.90.0130.00316.50
7.4.80.0130.01119.39
7.4.70.0150.00616.41
7.4.60.0030.01316.52
7.4.50.0030.01316.60
7.4.40.0170.00016.36
7.4.00.0000.01715.00
7.3.330.0030.00313.08
7.3.320.0050.00013.04
7.3.310.0040.00416.44
7.3.300.0030.00316.32
7.3.290.0000.00716.17
7.3.280.0090.00816.28
7.3.260.0100.00716.33
7.3.240.0110.00916.38
7.3.230.0000.01616.29
7.3.210.0090.00916.39
7.3.200.0140.00716.32
7.3.190.0140.00916.47
7.3.180.0080.00816.44
7.3.170.0090.01316.39
7.3.160.0060.01316.26
7.3.10.0440.00714.54
7.3.00.0500.00014.82
7.2.330.0040.01716.70
7.2.320.0090.00916.45
7.2.310.0070.01016.45
7.2.300.0100.01016.78
7.2.290.0090.00916.57
7.2.130.0360.00415.03
7.2.120.0370.00315.07
7.2.110.0310.00315.06
7.2.100.0340.00914.96
7.2.90.0570.01015.36
7.2.80.0230.01015.20
7.2.70.0410.00315.27
7.2.60.0380.01015.29
7.2.50.0290.00315.13
7.2.40.0320.00315.07
7.2.30.0410.01015.31
7.2.20.0320.00914.89
7.2.10.0380.00015.04
7.2.00.0460.01115.15
7.1.250.0870.00313.78

preferences:
26.41 ms | 403 KiB | 5 Q