3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sortByTime($a, $b) { if ($a->time == $b->time) { return 0; } return ($a->time < $b->time) ? -1 : 1; } $a = json_decode('[{"id": 111,"time": 123123123,"data": "testc"},{ "id":200 ,"time":433123123,"data":"testb"},{"id":300,"time":33123123,"data":"testb"}]'); usort($a, "sortByTime"); print_r($a);

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.0140.00620.70
8.4.110.0100.00922.24
8.4.100.0140.00517.52
8.4.90.0140.00620.57
8.4.80.0120.00818.72
8.4.70.0130.00718.84
8.4.60.0110.00920.65
8.4.50.0130.00718.66
8.4.40.0120.00623.85
8.4.30.0130.00622.53
8.4.20.0180.00417.40
8.4.10.0040.00419.35
8.3.250.0130.00618.80
8.3.240.0110.00716.62
8.3.230.0060.00316.85
8.3.220.0040.00518.93
8.3.210.0130.00716.34
8.3.200.0140.00616.53
8.3.190.0070.00417.04
8.3.180.0140.00318.86
8.3.170.0100.00717.17
8.3.160.0040.01116.78
8.3.150.0100.00716.70
8.3.140.0090.00616.66
8.3.130.0040.00418.38
8.3.120.0070.01318.67
8.3.110.0060.00316.55
8.3.100.0070.00724.06
8.3.90.0090.00926.77
8.3.80.0090.00317.97
8.3.70.0120.00316.75
8.3.60.0070.01116.63
8.3.50.0120.01022.86
8.3.40.0180.00318.69
8.3.30.0040.01118.58
8.3.20.0000.00720.21
8.3.10.0000.00823.60
8.3.00.0080.00019.79
8.2.290.0110.00820.26
8.2.280.0080.00819.92
8.2.270.0080.00018.51
8.2.260.0040.00417.23
8.2.250.0040.00416.44
8.2.240.0100.00017.24
8.2.230.0060.00320.94
8.2.220.0120.00037.54
8.2.210.0040.00426.77
8.2.200.0000.00918.16
8.2.190.0070.00716.63
8.2.180.0140.00716.75
8.2.170.0070.00722.96
8.2.160.0090.00621.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.54
8.2.110.0030.00621.10
8.2.100.0120.00017.65
8.2.90.0000.00819.14
8.2.80.0000.00817.97
8.2.70.0080.00017.80
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0040.00419.38
8.2.30.0000.00719.18
8.2.20.0000.00717.67
8.2.10.0040.00418.01
8.2.00.0040.00418.06
8.1.330.0100.00922.10
8.1.320.0090.01017.73
8.1.310.0120.00618.37
8.1.300.0130.00317.97
8.1.290.0000.00930.84
8.1.280.0040.01125.92
8.1.270.0000.00820.03
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0110.00017.42
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00717.23
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0000.00718.89
8.1.150.0000.00818.90
8.1.140.0000.00719.57
8.1.130.0000.00717.75
8.1.120.0000.00717.38
8.1.110.0030.00317.44
8.1.100.0070.00017.44
8.1.90.0030.00617.55
8.1.80.0030.00317.51
8.1.70.0040.00417.45
8.1.60.0000.00817.61
8.1.50.0060.00317.49
8.1.40.0080.00017.55
8.1.30.0000.00817.67
8.1.20.0000.00817.64
8.1.10.0040.00417.38
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.34
8.0.270.0000.00916.80
8.0.260.0030.00317.12
8.0.250.0030.00316.87
8.0.240.0000.00816.77
8.0.230.0030.00316.79
8.0.220.0080.00016.84
8.0.210.0040.00416.86
8.0.200.0000.00716.84
8.0.190.0000.00716.93
8.0.180.0030.00516.87
8.0.170.0040.00416.75
8.0.160.0040.00416.77
8.0.150.0080.00016.69
8.0.140.0070.00016.85
8.0.130.0030.00313.21
8.0.120.0040.00416.69
8.0.110.0070.00016.70
8.0.100.0000.00716.87
8.0.90.0000.00716.84
8.0.80.0110.01116.90
8.0.70.0050.00216.94
8.0.60.0060.00316.93
8.0.50.0050.00216.71
8.0.30.0070.01017.21
8.0.20.0080.01017.40
8.0.10.0070.00016.91
8.0.00.0130.00616.65
7.4.330.0000.00515.08
7.4.320.0060.00016.60
7.4.300.0000.00716.43
7.4.290.0060.00016.52
7.4.280.0040.00416.56
7.4.270.0030.00316.60
7.4.260.0050.00316.51
7.4.250.0030.00316.49
7.4.240.0000.00716.43
7.4.230.0000.00716.63
7.4.220.0110.00416.43
7.4.210.0090.00716.60
7.4.200.0000.00816.59
7.4.160.0150.00316.46
7.4.150.0090.00917.40
7.4.140.0140.00717.86
7.4.130.0060.01116.46
7.4.120.0050.01316.43
7.4.110.0140.00316.55
7.4.100.0090.00616.59
7.4.90.0170.00016.45
7.4.80.0130.00719.39
7.4.70.0080.00816.34
7.4.60.0110.00816.45
7.4.50.0060.00916.48
7.4.40.0100.00616.38
7.4.30.0090.00816.60
7.4.00.0110.00314.85
7.3.330.0000.00513.20
7.3.320.0030.00313.19
7.3.310.0030.00316.07
7.3.300.0030.00316.11
7.3.290.0030.00316.18
7.3.280.0070.01216.23
7.3.270.0130.00617.40
7.3.260.0100.01216.26
7.3.250.0120.00816.17
7.3.240.0130.00716.47
7.3.230.0030.01516.42
7.3.210.0140.00316.42
7.3.200.0170.00316.33
7.3.190.0090.00916.06
7.3.180.0110.00816.43
7.3.170.0110.00816.46
7.3.160.0070.01016.18
7.3.120.0070.01014.70
7.3.110.0070.01014.88
7.3.100.0100.00714.77
7.3.90.0040.01114.95
7.3.80.0020.01314.88
7.3.70.0120.00314.84
7.3.60.0070.00414.46
7.3.50.0070.00714.55
7.3.40.0080.00014.64
7.3.30.0080.00314.82
7.3.20.0100.00316.74
7.3.10.0060.00316.50
7.3.00.0060.01016.60
7.2.330.0130.00416.35
7.2.320.0070.01016.20
7.2.310.0130.01016.69
7.2.300.0100.01016.69
7.2.290.0100.00716.30
7.2.250.0150.00415.05
7.2.240.0070.01414.69
7.2.230.0060.01114.77
7.2.220.0060.00614.96
7.2.210.0040.00814.90
7.2.200.0060.00614.78
7.2.190.0060.00914.77
7.2.180.0090.00315.12
7.2.170.0080.00814.81
7.2.60.0030.01017.02
7.1.330.0070.00715.53
7.1.320.0070.00715.90
7.1.310.0070.01015.72
7.1.300.0030.01015.55
7.1.290.0000.01215.70
7.1.280.0030.00915.75
7.1.270.0090.00615.80
7.1.260.0090.00315.81
7.1.200.0040.00715.77
7.1.70.0090.00617.15
7.1.60.0100.01017.21
7.1.50.0090.00916.79
7.1.40.0060.00616.48
7.1.30.0040.00816.53
7.1.20.0030.00816.63
7.1.10.0000.01116.86
7.1.00.0070.00316.77
7.0.200.0000.00816.48
7.0.190.0030.01316.68
7.0.180.0030.01716.35
7.0.170.0040.00816.20
7.0.160.0000.00816.34
7.0.150.0030.01016.35
7.0.140.0080.00016.31
7.0.130.0060.00316.59
7.0.120.0030.00516.47
7.0.110.0030.00516.35
7.0.100.0040.00416.42
7.0.90.0000.00916.22
7.0.80.0000.00716.45
7.0.70.0000.01216.60
7.0.60.0080.00316.09
7.0.50.0000.00916.29
7.0.40.0070.00014.67
7.0.30.0000.00714.70
7.0.20.0030.00614.68
7.0.10.0000.00814.67
7.0.00.0040.00414.67
5.6.300.0030.06620.59
5.6.290.0070.04420.67
5.6.280.0000.04420.88
5.6.270.0000.05720.98
5.6.260.0030.04620.92
5.6.250.0100.07120.88
5.6.240.0070.04220.98
5.6.230.0100.07720.87
5.6.220.0030.05220.79
5.6.210.0100.03120.63
5.6.200.0000.04520.75
5.6.190.0070.04620.95
5.6.180.0030.03920.78
5.6.170.0260.03320.82
5.6.160.0030.04020.84
5.6.150.0070.07321.03
5.6.140.0000.04520.87
5.6.130.0030.08820.96
5.6.120.0060.08120.94
5.6.110.0070.08621.02
5.6.100.0000.05420.98
5.6.90.0030.04320.92
5.6.80.0060.05820.19
5.6.70.0040.03920.30
5.6.60.0030.03820.23
5.6.50.0060.04120.35
5.6.40.0060.05420.10
5.6.30.0030.07220.39
5.6.20.0060.07120.32
5.6.10.0030.04320.18
5.6.00.0030.04220.29

preferences:
32.12 ms | 403 KiB | 5 Q