3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(array('date'=>'2014-12-01', 'price'=>'123.00'), array('date'=>'2013-12-01', 'price'=>'123.00'), array('date'=>'2014-02-01', 'price'=>'123.00'), array('date'=>'2014-03-01', 'price'=>'123.00')); var_dump($array); function date_compare($a, $b) { $t1 = strtotime($a['date']); $t2 = strtotime($b['date']); return $t1 - $t2; } usort($array, 'date_compare'); 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.3.60.0070.00716.75
8.3.50.0130.00717.65
8.3.40.0130.00918.82
8.3.30.0160.00618.82
8.3.20.0110.00418.76
8.3.10.0090.00620.64
8.3.00.0080.00019.63
8.2.180.0110.00416.63
8.2.170.0150.00022.96
8.2.160.0110.00419.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00320.91
8.2.110.0100.00021.00
8.2.100.0090.00318.03
8.2.90.0060.00319.33
8.2.80.0040.00419.23
8.2.70.0080.00017.88
8.2.60.0030.00517.80
8.2.50.0000.00818.07
8.2.40.0080.00018.28
8.2.30.0000.00718.22
8.2.20.0000.00817.92
8.2.10.0030.00517.78
8.2.00.0000.00817.79
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0070.00422.05
8.1.230.0060.00621.03
8.1.220.0000.00818.70
8.1.210.0080.00018.77
8.1.200.0070.00317.60
8.1.190.0080.00017.66
8.1.180.0060.00318.10
8.1.170.0000.00818.67
8.1.160.0040.00418.84
8.1.150.0080.00018.76
8.1.140.0040.00417.50
8.1.130.0030.00317.89
8.1.120.0000.00717.50
8.1.110.0040.00417.51
8.1.100.0030.00517.59
8.1.90.0040.00417.63
8.1.80.0020.00517.46
8.1.70.0000.00717.49
8.1.60.0000.00817.62
8.1.50.0050.00217.54
8.1.40.0040.00417.46
8.1.30.0030.00617.54
8.1.20.0000.00817.73
8.1.10.0040.00417.73
8.1.00.0040.00417.65
8.0.300.0040.00419.80
8.0.290.0000.00716.75
8.0.280.0070.00018.46
8.0.270.0040.00417.33
8.0.260.0000.00716.86
8.0.250.0050.00316.94
8.0.240.0000.00717.12
8.0.230.0030.00317.07
8.0.220.0070.00016.93
8.0.210.0000.00716.95
8.0.200.0040.00417.08
8.0.190.0040.00417.13
8.0.180.0000.00717.06
8.0.170.0000.00917.00
8.0.160.0080.00016.99
8.0.150.0070.00016.88
8.0.140.0070.00316.86
8.0.130.0000.00813.35
8.0.120.0000.00817.07
8.0.110.0050.00216.91
8.0.100.0050.00317.07
8.0.90.0040.00417.06
8.0.80.0130.00317.08
8.0.70.0040.00416.88
8.0.60.0000.00716.91
8.0.50.0080.00017.08
8.0.30.0080.01117.27
8.0.20.0110.01017.31
8.0.10.0040.00417.10
8.0.00.0100.01116.85
7.4.330.0000.00513.06
7.4.320.0030.00616.66
7.4.300.0030.00316.65
7.4.290.0030.00316.59
7.4.280.0000.00816.73
7.4.270.0000.00716.58
7.4.260.0000.00713.23
7.4.250.0030.00616.65
7.4.240.0070.00016.68
7.4.230.0000.00716.46
7.4.220.0070.01116.70
7.4.210.0070.00816.56
7.4.200.0030.00316.77
7.4.190.0000.00816.39
7.4.160.0100.00716.46
7.4.150.0110.00716.50
7.4.140.0130.00516.55
7.4.130.0080.01116.60
7.4.120.0090.00916.75
7.4.110.0030.01716.51
7.4.100.0130.00416.50
7.4.90.0090.00916.73
7.4.80.0090.00919.39
7.4.70.0110.00516.70
7.4.60.0070.01016.59
7.4.50.0110.00416.64
7.4.40.0040.01116.43
7.4.30.0090.01316.34
7.4.00.0060.01214.90
7.3.330.0070.00013.44
7.3.320.0000.00713.40
7.3.310.0000.00716.29
7.3.300.0030.00316.40
7.3.290.0040.01116.47
7.3.280.0070.01316.47
7.3.270.0140.00316.55
7.3.260.0090.01316.52
7.3.250.0130.00616.54
7.3.240.0070.01016.71
7.3.230.0140.00416.71
7.3.210.0150.00716.61
7.3.200.0160.00716.64
7.3.190.0130.01016.80
7.3.180.0060.01016.82
7.3.170.0060.01216.70
7.3.160.0060.01816.77
7.3.120.0050.01115.01
7.3.110.0060.00914.94
7.3.100.0110.00415.10
7.3.90.0030.00615.04
7.3.80.0070.00314.98
7.3.70.0060.00615.00
7.3.60.0060.00915.03
7.3.50.0030.01214.93
7.3.40.0030.00915.03
7.3.30.0000.00914.94
7.3.20.0070.00316.64
7.3.10.0030.01316.92
7.3.00.0000.01216.98
7.2.330.0140.00716.85
7.2.320.0200.00016.65
7.2.310.0120.01216.93
7.2.300.0090.01016.69
7.2.290.0070.01016.55
7.2.250.0100.01014.82
7.2.240.0060.01315.30
7.2.230.0080.00415.13
7.2.220.0060.00915.15
7.2.210.0100.00315.02
7.2.200.0000.01315.20
7.2.190.0030.01315.13
7.2.180.0030.00615.18
7.2.170.0060.00315.11
7.2.60.0100.00617.02
7.2.00.0000.01319.50
7.1.330.0110.00315.92
7.1.320.0000.01015.69
7.1.310.0080.00415.87
7.1.300.0040.01116.06
7.1.290.0030.00615.61
7.1.280.0080.00416.09
7.1.270.0060.00615.93
7.1.260.0100.00316.11
7.1.200.0030.00815.82
7.1.100.0070.00718.32
7.1.70.0050.00317.21
7.1.60.0110.00719.40
7.1.50.0060.01317.27
7.1.00.0000.08322.28
7.0.200.0000.00816.97
7.0.140.0030.07722.09
7.0.120.0030.07322.14
7.0.60.0070.06019.85
7.0.50.0100.08017.92
7.0.40.0130.03720.20
7.0.30.0630.06720.25
7.0.20.0400.06320.23
7.0.10.0170.07320.05
7.0.00.0100.04320.06
5.6.280.0130.06321.09
5.6.210.0200.03020.70
5.6.200.0000.04318.19
5.6.190.0070.04020.58
5.6.180.0330.05320.48
5.6.170.0300.05320.44
5.6.160.0030.09020.55
5.6.150.0070.08018.17
5.6.140.0100.07018.17
5.6.130.0030.08318.12
5.6.120.0100.05021.01
5.6.110.0170.07021.05
5.6.100.0070.04021.01
5.6.90.0070.05020.96
5.6.80.0070.08020.38
5.6.70.4030.04020.37
5.5.350.0030.08020.32
5.5.340.0000.06018.00
5.5.330.0030.04320.41
5.5.320.0030.08720.20
5.5.310.0200.04020.34
5.5.300.0030.08018.09
5.5.290.0100.07717.98
5.5.280.0030.08720.77
5.5.270.0030.05020.96
5.5.260.0100.06720.72
5.5.250.0100.07720.58
5.5.240.0130.03020.26
5.4.450.0270.05319.28
5.4.440.0400.06319.34
5.4.430.0500.04019.31
5.4.420.0470.06719.49
5.4.410.0330.03319.11
5.4.400.0370.03719.24
5.4.390.0400.05319.17
5.4.380.0370.06319.23
5.4.370.0370.07018.88
5.4.360.0370.04719.16
5.4.350.0400.06018.95
5.4.340.0270.04018.85
5.4.320.0330.05719.16
5.4.310.0200.04019.15
5.4.300.0230.03719.13
5.4.290.0370.03318.98
5.4.280.0330.03019.06
5.4.270.0230.03719.24
5.4.260.0270.03319.22
5.4.250.0230.03719.16
5.4.240.0330.02719.33
5.4.230.0300.05019.16
5.4.220.0230.04019.18
5.4.210.0270.03319.12
5.4.200.0230.03719.14
5.4.190.0300.03019.05
5.4.180.0230.03719.12
5.4.170.0270.03318.84
5.4.160.0200.04018.85
5.4.150.0270.03319.04
5.4.140.0330.03716.47
5.4.130.0230.03316.50
5.4.120.0300.02716.43
5.4.110.0230.05316.48
5.4.100.0170.04016.56
5.4.90.0230.04016.41
5.4.80.0230.03316.57
5.4.70.0430.05716.54
5.4.60.0370.02316.38
5.4.50.0330.04316.48
5.4.40.0370.06016.34
5.4.30.0430.05316.56
5.4.20.0300.06316.53
5.4.10.0270.06016.37
5.4.00.0300.03015.78
5.3.290.0230.05014.67
5.3.280.0300.03314.76
5.3.270.0270.04314.58
5.3.260.0230.03714.52
5.3.250.0300.03014.76
5.3.240.0200.04314.52
5.3.230.0200.04014.64
5.3.220.0300.03014.65
5.3.210.0200.04014.50
5.3.200.0270.04314.57
5.3.190.0200.04014.64
5.3.180.0300.04014.61
5.3.170.0300.07314.63
5.3.160.0300.06714.68
5.3.150.0330.07314.48
5.3.140.0370.07014.53
5.3.130.0270.07314.45
5.3.120.0270.03714.52
5.3.110.0200.04014.62
5.3.100.0330.06714.08
5.3.90.0300.03014.10
5.3.80.0330.06314.13
5.3.70.0230.04713.92
5.3.60.0330.06713.98
5.3.50.0330.05713.93
5.3.40.0370.06313.93
5.3.30.0270.03713.93
5.3.20.0370.06013.67
5.3.10.0330.05013.68
5.3.00.0300.07713.64
5.2.170.0200.03311.09
5.2.160.0200.05711.08
5.2.150.0230.03011.24
5.2.140.0370.05011.10
5.2.130.0270.06011.12
5.2.120.0330.05711.27
5.2.110.0370.05011.06
5.2.100.0270.03711.19
5.2.90.0300.02711.11
5.2.80.0300.05711.12
5.2.70.0330.04311.07
5.2.60.0300.05311.28
5.2.50.0270.05010.98
5.2.40.0270.05710.93
5.2.30.0330.05310.89
5.2.20.0170.04310.96
5.2.10.0230.03710.76
5.2.00.0300.05010.80
5.1.60.0200.04710.11
5.1.50.0170.02710.12
5.1.40.0270.04010.11
5.1.30.0170.03310.34
5.1.20.0200.03710.32
5.1.10.0200.03010.15
5.1.00.0230.02010.20
5.0.50.0100.03710.11
5.0.40.0170.04010.11
5.0.30.0130.04310.11
5.0.20.0130.03010.11
5.0.10.0130.01710.11
5.0.00.0130.06310.11
4.4.90.0130.01710.11
4.4.80.0070.02310.11
4.4.70.0130.03310.11
4.4.60.0200.02710.11
4.4.50.0170.02310.11
4.4.40.0130.02310.11
4.4.30.0130.03010.11
4.4.20.0130.01310.11
4.4.10.0170.02010.11
4.4.00.0130.03010.11
4.3.110.0130.03710.11
4.3.100.0170.02710.11
4.3.90.0100.02310.11
4.3.80.0130.04010.11
4.3.70.0130.03010.11
4.3.60.0100.02010.11
4.3.50.0100.01710.11
4.3.40.0070.02710.11
4.3.30.0070.01310.11
4.3.20.0100.03310.11
4.3.10.0100.03310.11
4.3.00.0070.03310.11

preferences:
50.25 ms | 401 KiB | 5 Q