3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = [ ["uid" => 1, "title" => "Title A", "tstamp" => "1580296755",], ["uid" => 2, "title" => "Title B", "tstamp" => "1580296755",], ["uid" => 3, "title" => "Title B", "tstamp" => "1580296755",], ["uid" => 4, "title" => "Title C", "tstamp" => "1580296755",], ]; $tmp = []; $res = []; foreach($ar as $ind=>$set){ $tmp[$set['title']] = $ind; } foreach($tmp as $title=>$ind){ $res[] = $ar[$ind]; } print_r($res);

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.140.0120.00817.56
8.4.130.0140.00717.64
8.4.120.0130.00723.95
8.4.110.0060.00318.83
8.4.100.0140.00717.89
8.4.90.0080.01017.61
8.4.80.0080.00517.84
8.4.70.0120.00517.86
8.4.60.0130.00718.79
8.4.50.0120.00918.68
8.4.40.0040.00417.53
8.4.30.0130.00720.21
8.4.20.0100.01017.71
8.4.10.0000.00817.57
8.3.260.0110.00916.53
8.3.250.0110.00719.11
8.3.240.0090.01016.50
8.3.230.0140.00516.85
8.3.220.0110.00516.83
8.3.210.0040.00316.78
8.3.200.0060.00616.58
8.3.190.0090.00917.21
8.3.180.0110.00917.36
8.3.170.0090.00920.73
8.3.160.0090.00916.70
8.3.150.0140.00416.47
8.3.140.0120.00616.97
8.3.130.0030.00618.50
8.3.120.0000.00820.91
8.3.110.0040.00420.94
8.3.100.0090.00016.46
8.3.90.0110.00426.77
8.3.80.0060.00319.36
8.3.70.0120.00318.43
8.3.60.0110.00716.63
8.3.50.0130.00023.72
8.3.40.0220.00018.60
8.3.30.0070.00718.79
8.3.20.0070.00021.67
8.3.10.0050.00321.89
8.3.00.0040.00423.77
8.2.290.0070.00218.92
8.2.280.0130.00419.95
8.2.270.0130.00616.57
8.2.260.0110.00716.61
8.2.250.0110.00318.61
8.2.240.0050.00317.30
8.2.230.0090.00022.58
8.2.220.0040.00424.06
8.2.210.0090.00026.77
8.2.200.0060.00618.88
8.2.190.0030.01016.58
8.2.180.0100.01018.17
8.2.170.0110.00422.96
8.2.160.0110.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00320.54
8.2.100.0080.00417.91
8.2.90.0000.00817.75
8.2.80.0040.00418.73
8.2.70.0040.00417.93
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0040.00419.30
8.2.30.0050.00319.17
8.2.20.0000.00718.03
8.2.10.0060.00319.30
8.2.00.0000.00719.29
8.1.330.0080.01016.07
8.1.320.0100.01016.55
8.1.310.0150.00416.07
8.1.300.0080.00318.57
8.1.290.0100.00030.84
8.1.280.0070.01025.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0100.01028.09
8.1.240.0070.00423.78
8.1.230.0030.00721.29
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0080.00019.09
8.1.170.0080.00018.60
8.1.160.0050.00318.92
8.1.150.0000.00818.93
8.1.140.0000.00720.62
8.1.130.0070.00020.22
8.1.120.0000.00717.44
8.1.110.0000.00717.50
8.1.100.0040.00417.35
8.1.90.0000.00717.49
8.1.80.0070.00017.35
8.1.70.0000.00717.45
8.1.60.0000.00917.59
8.1.50.0000.01017.41
8.1.40.0000.00817.54
8.1.30.0040.00417.55
8.1.20.0000.00717.67
8.1.10.0040.00417.55
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0050.00316.95
8.0.260.0000.00620.07
8.0.250.0000.00716.98
8.0.240.0030.00316.87
8.0.230.0040.00416.97
8.0.220.0000.00716.93
8.0.210.0000.00716.82
8.0.200.0030.00316.91
8.0.190.0000.00716.84
8.0.180.0040.00416.93
8.0.170.0030.00616.93
8.0.160.0040.00416.95
8.0.150.0040.00416.85
8.0.140.0000.00716.93
8.0.130.0030.00313.22
8.0.120.0050.00216.77
8.0.110.0000.00816.83
8.0.100.0040.00416.67
8.0.90.0000.00816.70
8.0.80.0080.00716.89
8.0.70.0040.00417.00
8.0.60.0040.00416.92
8.0.50.0040.00416.99
8.0.30.0100.00716.87
8.0.20.0100.01017.29
8.0.10.0000.00716.89
8.0.00.0160.00316.57
7.4.330.0060.00016.84
7.4.320.0000.00616.52
7.4.300.0080.00016.65
7.4.290.0050.00316.59
7.4.280.0000.00716.59
7.4.270.0000.00716.61
7.4.260.0000.00513.20
7.4.250.0030.00316.46
7.4.240.0020.00616.62
7.4.230.0050.00216.70
7.4.220.0060.00016.55
7.4.210.0070.00716.67
7.4.200.0030.00316.31
7.4.140.0030.01417.86
7.4.130.0070.01416.47
7.4.120.0110.00616.48
7.4.110.0120.01316.59
7.4.100.0100.00716.55
7.4.90.0070.01116.57
7.4.80.0120.01219.39
7.4.70.0060.01616.46
7.4.60.0090.00616.38
7.4.50.0090.00216.53
7.4.40.0030.01316.69
7.4.20.0060.01216.78
7.4.10.0130.00616.70
7.4.00.0080.01116.44
7.3.330.0000.00716.18
7.3.320.0000.00513.06
7.3.310.0000.00916.37
7.3.300.0000.00716.34
7.3.290.0090.00916.38
7.3.280.0100.00616.36
7.3.260.0060.01116.35
7.3.230.0070.01016.58
7.3.210.0070.01116.30
7.3.200.0160.00616.22
7.3.190.0190.00616.43
7.3.180.0100.00616.70
7.3.170.0120.00616.45
7.3.160.0080.00816.36
7.3.130.0090.01116.53
7.3.120.0100.01316.16
7.3.110.0130.00716.30
7.3.100.0160.01016.17
7.3.90.0150.00616.39
7.3.80.0130.01316.67
7.3.70.0060.01216.41
7.3.60.0200.00416.35
7.3.50.0150.00916.26
7.3.40.0150.00616.48
7.3.30.0200.00416.26
7.3.20.0100.00716.43
7.3.10.0100.01316.34
7.3.00.0100.01616.45
7.2.330.0090.01616.44
7.2.320.0090.00916.66
7.2.310.0030.01416.43
7.2.300.0090.00616.41
7.2.290.0100.00716.36
7.2.260.0130.01016.54
7.2.250.0130.00916.57
7.2.240.0130.01416.72
7.2.230.0140.00516.49
7.2.220.0160.00816.65
7.2.210.0080.01516.47
7.2.200.0120.01116.69
7.2.190.0150.00316.65
7.2.180.0120.01216.51
7.2.170.0140.00616.47
7.2.160.0130.01216.63
7.2.150.0040.00716.64
7.2.140.0060.02216.52
7.2.130.0120.01216.66
7.2.120.0150.00816.82
7.2.110.0180.00316.74
7.2.100.0130.01416.58
7.2.90.0130.00416.55
7.2.80.0140.01616.70
7.2.70.0080.00616.71
7.2.60.0050.00916.58
7.2.50.0020.00916.71
7.2.40.0100.01016.54
7.2.30.0120.01616.75
7.2.20.0050.01216.62
7.2.10.0050.00816.66
7.2.00.0140.01116.55

preferences:
156.29 ms | 403 KiB | 5 Q