3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array( "0" => Array("CategoryID" => 3,"CategoryName" => "Test Category","Parent" => 0,"Thumb" => 0,"sort" => 8,"ArticleID" => 2,"ArticleCatgories" => "9,4,3","ArticleTitle" => "vxcvxcvx","ArticleBody" => "xcvxcvxcvxcv","InGroup" => 0,"GroupID" => 0,"Published" => 1,"PublishTime" => null,"TermID" => 11,"TermSlug" => "xcvxcvxcv","RelatedID" => 2,"TermType" => "article"), "1" => Array("CategoryID" => 4,"CategoryName" => "Test Image","Parent" => 0,"Thumb" => 0,"sort" => 4,"ArticleID" => 3,"ArticleCatgories" => "9,4,3","ArticleTitle" => "vxcvxcvx","ArticleBody" => "xcvxcvxcvxcv","InGroup" => 0,"GroupID" => 0,"Published" => 1,"PublishTime" => null,"TermID" => 11,"TermSlug" => "xcvxcvxcv","RelatedID" => 2,"TermType" => "article"), "2" => Array("CategoryID" => 9,"CategoryName" => "Test Images","Parent" => 0,"Thumb" => 7,"sort" => 2,"ArticleID" => 2,"ArticleCatgories" => "9,4,3","ArticleTitle" => "vxcvxcvx","ArticleBody" => "xcvxcvxcvxcv","InGroup" => 0,"GroupID" => 0,"Published" => 1,"PublishTime" => null,"TermID" => 11,"TermSlug" => "xcvxcvxcv","RelatedID" => 2,"TermType" => "article"), "3" => Array("CategoryID" => 4,"CategoryName" => "Test A","Parent" => 0,"Thumb" => 0,"sort" => 4,"ArticleID" => 3,"ArticleCatgories" => "9,4,3","ArticleTitle" => "vxcvxcvx","ArticleBody" => "xcvxcvxcvxcv","InGroup" => 0,"GroupID" => 0,"Published" => 1,"PublishTime" => null,"TermID" => 11,"TermSlug" => "xcvxcvxcv","RelatedID" => 2,"TermType" => "article"), "4" => Array("CategoryID" => 9,"CategoryName" => "Test B","Parent" => 0,"Thumb" => 7,"sort" => 2,"ArticleID" => 2,"ArticleCatgories" => "9,4,3","ArticleTitle" => "vxcvxcvx","ArticleBody" => "xcvxcvxcvxcv","InGroup" => 0,"GroupID" => 0,"Published" => 1,"PublishTime" => null,"TermID" => 11,"TermSlug" => "xcvxcvxcv","RelatedID" => 2,"TermType" => "article") ); $array = array_reduce( $array, function ($a, $b) { if (!isset($a[$b['ArticleID']])) { $a[$b['ArticleID']] = $b ; $a[$b['ArticleID']]['CategoryName'] = array($b['CategoryName']); } else { $a[$b['ArticleID']]['CategoryName'][] = $b['CategoryName']; } return $a; } ); var_dump($array);

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.5.10.0120.00816.89
8.5.00.0130.00919.68
8.4.160.0090.00823.87
8.4.150.0030.00014.05
8.4.140.0240.01017.54
8.4.130.0120.00918.70
8.4.120.0130.00717.57
8.4.110.0110.01017.85
8.4.100.0130.00917.67
8.4.90.0110.01120.76
8.4.80.0050.00419.16
8.4.70.0120.00619.07
8.4.60.0050.00920.53
8.4.50.0030.00618.70
8.4.40.0100.01019.42
8.4.30.0100.01018.54
8.4.20.0160.00418.99
8.4.10.0030.00620.55
8.3.280.0140.00620.85
8.3.270.0110.01016.82
8.3.260.0140.00516.54
8.3.250.0130.00616.50
8.3.240.0110.00819.10
8.3.230.0110.00916.76
8.3.220.0130.00718.89
8.3.210.0110.00816.81
8.3.200.0120.00816.62
8.3.190.0100.01016.93
8.3.180.0110.00918.75
8.3.170.0120.00617.00
8.3.160.0000.01816.57
8.3.150.0090.00617.38
8.3.140.0040.00416.52
8.3.130.0080.00018.57
8.3.120.0000.00918.91
8.3.110.0090.00016.78
8.3.100.0040.00416.66
8.3.90.0080.00026.77
8.3.80.0100.00019.36
8.3.70.0120.00618.20
8.3.60.0110.00818.53
8.3.50.0120.00316.47
8.3.40.0140.00718.86
8.3.30.0080.00818.58
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.290.0140.00616.84
8.2.280.0140.00818.44
8.2.270.0090.00916.45
8.2.260.0070.01118.78
8.2.250.0130.00716.79
8.2.240.0090.00917.48
8.2.230.0090.00020.94
8.2.220.0080.00024.06
8.2.210.0100.01026.77
8.2.200.0100.00018.88
8.2.190.0120.00316.58
8.2.180.0070.01025.92
8.2.170.0060.01018.79
8.2.160.0100.00722.96
8.2.150.0050.00325.66
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0080.00026.35
8.2.110.0040.00722.17
8.2.100.0080.00417.91
8.2.90.0090.00419.14
8.2.80.0070.00317.97
8.2.70.0000.00817.46
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0040.00419.88
8.2.30.0000.00818.01
8.2.20.0050.00318.02
8.2.10.0000.00820.97
8.2.00.0040.00419.32
8.1.330.0110.00816.02
8.1.320.0110.01015.98
8.1.310.0110.00718.44
8.1.300.0070.01016.00
8.1.290.0030.00630.84
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00020.87
8.1.230.0060.00619.00
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0060.00617.25
8.1.180.0050.00318.10
8.1.170.0040.00418.83
8.1.160.0070.00018.94
8.1.150.0080.00018.77
8.1.140.0050.00318.90
8.1.130.0000.00820.19
8.1.120.0000.00817.41
8.1.110.0050.00317.46
8.1.100.0040.00417.53
8.1.90.0070.00017.35
8.1.80.0040.00417.45
8.1.70.0000.00817.53
8.1.60.0000.00817.59
8.1.50.0060.00317.54
8.1.40.0000.00817.45
8.1.30.0040.00417.67
8.1.20.0040.00417.70
8.1.10.0050.00317.65
8.1.00.0050.00317.52
8.0.300.0000.00918.77
8.0.290.0080.00016.75
8.0.280.0030.00318.45
8.0.270.0000.00817.86
8.0.260.0000.00718.39
8.0.250.0000.00716.86
8.0.240.0030.00317.00
8.0.230.0030.00316.93
8.0.220.0000.00716.89
8.0.210.0000.00716.79
8.0.200.0030.00316.88
8.0.190.0030.00516.86
8.0.180.0040.00416.88
8.0.170.0060.00316.81
8.0.160.0080.00016.91
8.0.150.0000.00716.72
8.0.140.0030.00516.75
8.0.130.0060.00013.37
8.0.120.0080.00316.91
8.0.110.0040.00416.92
8.0.100.0040.00416.71
8.0.90.0070.00016.93
8.0.80.0130.00516.90
8.0.70.0050.00316.84
8.0.60.0040.00416.91
8.0.50.0040.00416.86
8.0.30.0210.01116.88
8.0.20.0150.00516.91
8.0.10.0000.02417.01
8.0.00.0130.01217.03
7.4.330.0030.00315.55
7.4.320.0070.00016.66
7.4.300.0000.00616.59
7.4.290.0000.00716.45
7.4.280.0040.00416.59
7.4.270.0040.00416.44
7.4.260.0030.00313.18
7.4.250.0070.00016.47
7.4.240.0050.00216.54
7.4.230.0000.00816.60
7.4.220.0030.00316.63
7.4.210.0080.01116.60
7.4.200.0040.00416.36
7.4.160.0100.00816.68
7.4.150.0170.00316.70
7.4.140.0140.00716.64
7.4.130.0120.01216.57
7.4.120.0110.00516.46
7.4.110.0140.01016.30
7.4.100.0200.00916.58
7.4.90.0080.01116.46
7.4.80.0090.01216.41
7.4.70.0070.01016.63
7.4.60.0100.00716.48
7.4.50.0070.01716.42
7.4.40.0110.01116.36
7.4.30.0130.01216.33
7.4.20.0130.00916.36
7.4.10.0100.01016.57
7.4.00.0110.00516.61
7.3.330.0000.00716.36
7.3.320.0000.00513.33
7.3.310.0060.00316.39
7.3.300.0030.00616.38
7.3.290.0060.01516.35
7.3.270.0110.00816.44
7.3.260.0150.00716.32
7.3.250.0170.01316.31
7.3.240.0050.01516.35
7.3.230.0000.01616.38
7.3.220.0050.01416.34
7.3.210.0100.01016.22
7.3.200.0110.00716.28
7.3.190.0100.00816.35
7.3.180.0120.00716.35
7.3.170.0080.01216.27
7.3.160.0090.01616.38
7.3.150.0110.00716.32
7.3.140.0140.01016.21
7.3.130.0120.01216.33
7.3.120.0100.01016.28
7.3.110.0120.00616.23
7.3.100.0110.00816.21
7.3.90.0190.00016.54
7.3.80.0190.00216.28
7.3.70.0060.01116.42
7.3.60.0060.01016.49
7.3.50.0080.00816.46
7.3.40.0100.01016.46
7.3.30.0090.00716.40
7.3.20.0080.00916.49
7.3.10.0110.00616.33
7.3.00.0100.01016.43

preferences:
27.03 ms | 403 KiB | 5 Q