3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hmv = array( 'HMV' => array( array( 'name' => 'Beavis & Butthead Do America', 'price' => 14.99), array( 'name' => 'Simpsons Movie', 'price' => 10.99), ), array( 'name' => 'South Park: Bigger Longer & Uncut', 'price' => 12.99), ); $virgin = array( 'Virgin Megastores' => array( array( 'name' => 'Beavis & Butthead Do America', 'price' => 14.99), array( 'name' => 'Simpsons Movie', 'price' => 9.99), array( 'name' => 'South Park: Bigger Longer & Uncut', 'price' => 12.99), ) ); $tower = array( 'Tower Records' => array( array( 'name' => 'Beavis & Butthead Do America', 'price' => 14.99), array( 'name' => 'Simpsons Movie', 'price' => 8.99), array( 'name' => 'South Park: Bigger Longer & Uncut', 'price' => 12.99), ) ); $stores = array($hmv, $virgin, $tower); # Sort all items individually foreach($stores as &$store){ uasort($store, function($a, $b){ if($a['price'] == $b['price']) return 0; return ($typeA['price'] < $typeB['price']) ? -1 : 1; }); } unset($store); var_dump($stores);

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.00718.31
8.3.50.0140.00817.44
8.3.40.0120.00319.02
8.3.30.0040.01118.46
8.3.20.0050.00318.86
8.3.10.0000.00820.52
8.3.00.0040.00417.63
8.2.180.0090.00916.75
8.2.170.0030.01322.96
8.2.160.0140.00020.57
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.83
8.2.110.0090.00020.94
8.2.100.0090.00317.84
8.2.90.0000.00921.02
8.2.80.0050.00318.05
8.2.70.0070.00417.50
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0040.00419.96
8.2.30.0000.00718.09
8.2.20.0080.00017.93
8.2.10.0000.00917.81
8.2.00.0000.00817.76
8.1.280.0120.00625.92
8.1.270.0070.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.88
8.1.230.0000.01120.84
8.1.220.0040.00417.74
8.1.210.0040.00418.93
8.1.200.0030.00717.35
8.1.190.0050.00317.63
8.1.180.0040.00418.10
8.1.170.0040.00418.96
8.1.160.0040.00418.90
8.1.150.0040.00418.56
8.1.140.0050.00217.37
8.1.130.0000.00717.75
8.1.120.0040.00417.44
8.1.110.0000.00817.35
8.1.100.0040.00417.50
8.1.90.0000.00717.45
8.1.80.0000.00817.45
8.1.70.0030.00317.47
8.1.60.0000.00917.60
8.1.50.0050.00317.38
8.1.40.0000.00717.46
8.1.30.0000.00817.55
8.1.20.0050.00317.53
8.1.10.0050.00317.64
8.1.00.0030.00717.51
8.0.300.0080.00019.94
8.0.290.0000.00916.75
8.0.280.0040.00418.38
8.0.270.0050.00217.30
8.0.260.0000.00716.88
8.0.250.0040.00416.98
8.0.240.0050.00517.02
8.0.230.0000.00717.07
8.0.220.0070.00017.02
8.0.210.0070.00016.82
8.0.200.0040.00417.04
8.0.190.0040.00416.88
8.0.180.0030.00516.86
8.0.170.0000.01017.02
8.0.160.0040.00417.04
8.0.150.0060.00316.87
8.0.140.0040.00416.99
8.0.130.0030.00313.47
8.0.120.0050.00316.89
8.0.110.0070.00017.00
8.0.100.0050.00317.02
8.0.90.0000.00716.94
8.0.80.0000.01516.95
8.0.70.0080.00016.79
8.0.60.0000.00816.83
8.0.50.0000.00816.93
8.0.30.0170.00617.16
8.0.20.0140.00917.10
8.0.10.0000.00816.95
8.0.00.0060.01216.71
7.4.330.0030.00313.01
7.4.320.0030.00316.51
7.4.300.0000.00716.44
7.4.290.0070.00016.50
7.4.280.0080.00316.50
7.4.270.0070.00016.65
7.4.260.0030.00313.29
7.4.250.0050.00516.58
7.4.240.0040.00416.58
7.4.230.0030.00316.34
7.4.220.0070.01116.58
7.4.210.0080.00816.58
7.4.200.0000.00716.45
7.4.190.0030.00316.65
7.4.160.0100.00716.60
7.4.150.0210.00016.64
7.4.140.0140.00616.52
7.4.130.0080.01116.63
7.4.120.0130.00616.61
7.4.110.0070.01316.49
7.4.100.0030.01516.58
7.4.90.0110.00716.51
7.4.80.0070.01116.46
7.4.70.0140.00516.41
7.4.60.0130.00616.47
7.4.50.0020.00216.45
7.4.40.0030.00616.18
7.4.30.0110.00616.47
7.4.00.0080.00415.05
7.3.330.0000.00613.30
7.3.320.0060.00013.46
7.3.310.0080.00016.47
7.3.300.0000.00716.44
7.3.290.0050.00816.39
7.3.280.0140.00616.40
7.3.270.0150.00916.36
7.3.260.0100.01116.55
7.3.250.0130.01016.37
7.3.240.0030.01316.43
7.3.230.0170.00716.70
7.3.210.0150.00516.42
7.3.200.0170.00319.39
7.3.190.0160.00616.68
7.3.180.0180.00016.48
7.3.170.0060.01216.51
7.3.160.0050.01116.34
7.3.120.0110.00714.91
7.2.330.0180.00716.81
7.2.320.0140.01216.53
7.2.310.0160.00816.75
7.2.300.0140.00716.44
7.2.290.0140.00316.54
7.2.60.0040.01116.91
7.1.200.0070.00315.93
7.1.100.0070.00717.88
7.1.70.0000.00917.09
7.1.60.0130.01319.40
7.1.50.0060.01816.78
7.1.00.0070.07722.48
7.0.200.0000.00716.88
7.0.140.0030.07322.04
7.0.120.0030.06322.12
7.0.60.0200.07321.72
7.0.50.0100.07717.88
7.0.40.0000.06020.25
7.0.30.0070.07720.14
7.0.20.0000.07020.02
7.0.10.0100.06720.20
7.0.00.0070.08320.25
5.6.280.0000.07321.13
5.6.210.0100.07720.48
5.6.200.0100.04018.23
5.6.190.0070.07720.67
5.6.180.0070.04320.57
5.6.170.0030.04720.77
5.6.160.0000.04720.54
5.6.150.0030.05720.32
5.6.140.0200.03320.37
5.6.130.0030.08720.32
5.6.120.0130.06320.18
5.6.110.0070.08020.22
5.6.100.0070.08320.33
5.6.90.0130.03720.50
5.6.80.0100.08019.80
5.6.70.0000.08719.77
5.6.60.0300.03719.89
5.6.50.0100.08019.70
5.6.40.0200.05719.73
5.6.30.0030.08019.87
5.6.20.0030.05719.75
5.6.10.0030.09019.76
5.6.00.0200.04719.84
5.5.350.0200.07320.29
5.5.340.0000.04317.96
5.5.330.0030.07020.45
5.5.320.0100.08020.41
5.5.310.0100.07020.21
5.5.300.0000.09320.32
5.5.290.0030.08720.14
5.5.280.0100.08320.13
5.5.270.0070.05320.13
5.5.260.0070.07719.96
5.5.250.0030.04320.00
5.5.240.0030.04719.56
5.5.230.0130.06719.41
5.5.220.0030.05019.57
5.5.210.0030.04719.51
5.5.200.0030.05719.56
5.5.190.0070.04019.64
5.5.180.0100.04719.58
5.5.160.0100.08019.55
5.5.150.0000.04719.32
5.5.140.0030.04319.48
5.5.130.0170.04719.31
5.5.120.0100.06719.64
5.5.110.0130.06019.31
5.5.100.0000.05019.23
5.5.90.0000.05319.57
5.5.80.0070.05019.38
5.5.70.0130.04719.23
5.5.60.0030.04319.44
5.5.50.0170.07019.27
5.5.40.0170.07019.42
5.5.30.0000.07719.46
5.5.20.0100.05719.43
5.5.10.0030.04319.42
5.5.00.0100.06719.45
5.4.450.0070.04719.54
5.4.440.0170.07019.46
5.4.430.0130.06019.46
5.4.420.0030.08319.25
5.4.410.0070.04719.18
5.4.400.0130.07018.98
5.4.390.0070.04019.01
5.4.380.0070.06319.14
5.4.370.0070.03718.85
5.4.360.0000.07019.23
5.4.350.0130.07319.00
5.4.340.0030.05718.88
5.4.320.0100.03319.24
5.4.310.0030.05719.24
5.4.300.0100.04718.94
5.4.290.0130.06318.85
5.4.280.0070.08019.18
5.4.270.0100.04019.24
5.4.260.0100.06019.07
5.4.250.0100.07019.14
5.4.240.0070.06018.86
5.4.230.0100.07319.23
5.4.220.0070.04719.14
5.4.210.0070.08019.07
5.4.200.0100.07719.23
5.4.190.0000.07019.24
5.4.180.0100.05019.14
5.4.170.0030.07319.13
5.4.160.0100.07018.86
5.4.150.0070.06319.22
5.4.140.0070.04716.32
5.4.130.0030.05316.33
5.4.120.0030.07716.32
5.4.110.0100.06316.30
5.4.100.0100.06016.49
5.4.90.0100.03716.40
5.4.80.0130.06316.23
5.4.70.0070.03316.45
5.4.60.0030.04016.36
5.4.50.0070.03316.36
5.4.40.0030.04316.36
5.4.30.0000.04016.27
5.4.20.0130.06016.25
5.4.10.0030.04316.42
5.4.00.0070.07015.94
5.3.290.0030.07314.83
5.3.280.0030.04714.61
5.3.270.0030.04014.61
5.3.260.0030.04714.61
5.3.250.0000.04314.67
5.3.240.0000.09314.66
5.3.230.0070.07714.60
5.3.220.0070.07314.72
5.3.210.0100.04314.61
5.3.200.0030.07314.73
5.3.190.0070.04714.50
5.3.180.0000.07714.46
5.3.170.0030.04714.63
5.3.160.0100.05314.57
5.3.150.0030.08014.71
5.3.140.0030.04314.70
5.3.130.0030.03714.70
5.3.120.0100.03014.59
5.3.110.0030.04714.54
5.3.100.0070.03713.93
5.3.90.0070.05714.02
5.3.80.0000.08013.99
5.3.70.0030.03714.02
5.3.60.0100.04314.01
5.3.50.0030.07713.95
5.3.40.0130.06713.98
5.3.30.0030.04014.06
5.3.20.0000.06713.71
5.3.10.0100.04013.71
5.3.00.0030.03713.70
5.2.170.0000.05311.02
5.2.160.0030.06011.05
5.2.150.0100.02711.13
5.2.140.0070.02711.11
5.2.130.0030.04311.09
5.2.120.0100.04711.18
5.2.110.0000.03310.98
5.2.100.0130.03311.09
5.2.90.0000.03711.09
5.2.80.0070.05711.18
5.2.70.0100.04310.99
5.2.60.0030.05311.06
5.2.50.0070.05710.90
5.2.40.0070.04310.88
5.2.30.0130.02310.79
5.2.20.0030.06010.82
5.2.10.0070.04710.84
5.2.00.0000.05310.72
5.1.60.0000.0409.98
5.1.50.0030.0579.95
5.1.40.0070.0209.89
5.1.30.0070.02310.33
5.1.20.0100.02010.35
5.1.10.0000.04310.08
5.1.00.0030.0309.91
5.0.50.0000.0238.53
5.0.40.0000.0238.41
5.0.30.0000.0638.23
5.0.20.0030.0438.26
5.0.10.0000.0208.21
5.0.00.0030.0538.07
4.4.90.0070.0337.00
4.4.80.0000.0407.00
4.4.70.0000.0177.00
4.4.60.0000.0177.00
4.4.50.0000.0407.00
4.4.40.0030.0277.00
4.4.30.0070.0277.00
4.4.20.0000.0337.00
4.4.10.0000.0237.00
4.4.00.0070.0277.00
4.3.110.0000.0207.00
4.3.100.0070.0237.00
4.3.90.0030.0337.00
4.3.80.0000.0307.00
4.3.70.0000.0177.00
4.3.60.0000.0237.00
4.3.50.0000.0177.00
4.3.40.0000.0577.00
4.3.30.0000.0407.00
4.3.20.0000.0277.00
4.3.10.0070.0107.00
4.3.00.0000.0137.00

preferences:
57.76 ms | 401 KiB | 5 Q