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' => 'South Park: Bigger Longer & Uncut', 'price' => 12.99), array( 'name' => 'Simpsons Movie', 'price' => 10.99), ) ); $virgin = array( 'Virgin Megastores' => array( array( 'name' => 'Beavis & Butthead Do America', 'price' => 14.99), array( 'name' => 'South Park: Bigger Longer & Uncut', 'price' => 12.99), array( 'name' => 'Simpsons Movie', 'price' => 9.99), ) ); $tower = array( 'Tower Records' => array( array( 'name' => 'Beavis & Butthead Do America', 'price' => 14.99), array( 'name' => 'South Park: Bigger Longer & Uncut', 'price' => 12.99), array( 'name' => 'Simpsons Movie', 'price' => 8.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.0120.00418.18
8.3.50.0190.00317.46
8.3.40.0120.00618.86
8.3.30.0060.00918.80
8.3.20.0070.00718.68
8.3.10.0030.00620.66
8.3.00.0100.00017.59
8.2.180.0100.01316.75
8.2.170.0150.00322.96
8.2.160.0160.00722.08
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00226.16
8.2.120.0000.00819.82
8.2.110.0060.00320.93
8.2.100.0080.00417.84
8.2.90.0060.00319.21
8.2.80.0060.00318.04
8.2.70.0000.01017.50
8.2.60.0000.00817.91
8.2.50.0030.00518.07
8.2.40.0080.00019.94
8.2.30.0050.00318.05
8.2.20.0040.00417.59
8.2.10.0090.00019.35
8.2.00.0040.00417.74
8.1.280.0080.00825.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00420.76
8.1.230.0090.00320.91
8.1.220.0050.00318.77
8.1.210.0000.01018.93
8.1.200.0030.00617.38
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0000.00818.84
8.1.160.0000.00718.90
8.1.150.0040.00418.71
8.1.140.0000.00817.44
8.1.130.0000.00717.83
8.1.120.0040.00417.54
8.1.110.0080.00017.48
8.1.100.0060.00317.38
8.1.90.0040.00417.44
8.1.80.0040.00417.36
8.1.70.0040.00417.37
8.1.60.0000.00717.57
8.1.50.0000.00817.39
8.1.40.0080.00017.55
8.1.30.0030.00517.63
8.1.20.0000.00817.59
8.1.10.0000.00917.57
8.1.00.0030.00617.33
8.0.300.0030.00619.95
8.0.290.0040.00416.75
8.0.280.0040.00418.41
8.0.270.0020.00517.13
8.0.260.0030.00316.86
8.0.250.0050.00316.86
8.0.240.0070.00416.93
8.0.230.0040.00416.94
8.0.220.0040.00416.77
8.0.210.0000.00716.88
8.0.200.0040.00416.79
8.0.190.0080.00016.82
8.0.180.0000.00716.85
8.0.170.0080.00016.84
8.0.160.0000.00716.98
8.0.150.0040.00416.96
8.0.140.0030.00516.77
8.0.130.0030.00313.30
8.0.120.0000.00916.78
8.0.110.0000.00816.72
8.0.100.0000.00716.88
8.0.90.0040.00416.90
8.0.80.0130.00316.85
8.0.70.0030.00516.89
8.0.60.0050.00316.79
8.0.50.0030.00516.73
8.0.30.0080.01217.11
8.0.20.0110.00817.15
8.0.10.0040.00416.81
8.0.00.0070.01216.64
7.4.330.0000.00512.98
7.4.320.0060.00016.52
7.4.300.0060.00016.53
7.4.290.0000.00716.52
7.4.280.0060.00616.65
7.4.270.0030.00316.63
7.4.260.0060.00013.28
7.4.250.0060.00316.42
7.4.240.0050.00316.51
7.4.230.0030.00316.59
7.4.220.0150.00416.66
7.4.210.0040.01116.52
7.4.200.0040.00416.44
7.4.190.0030.00516.69
7.4.160.0060.01016.60
7.4.150.0110.00716.36
7.4.140.0140.00916.40
7.4.130.0090.01316.43
7.4.120.0160.00516.39
7.4.110.0170.00716.55
7.4.100.0090.01016.62
7.4.90.0140.00716.67
7.4.80.0150.00416.50
7.4.70.0110.00716.60
7.4.60.0070.01916.41
7.4.50.0000.00916.40
7.4.40.0060.00916.38
7.4.30.0060.01016.36
7.4.10.0040.01415.25
7.4.00.0080.00614.92
7.3.330.0030.00313.11
7.3.320.0050.00013.28
7.3.310.0040.00416.08
7.3.300.0030.00316.32
7.3.290.0080.00516.27
7.3.280.0080.00816.30
7.3.270.0070.01016.46
7.3.260.0080.01016.37
7.3.250.0100.01116.35
7.3.240.0150.00616.36
7.3.230.0130.01116.39
7.3.210.0100.00716.56
7.3.200.0150.00919.39
7.3.190.0130.00716.56
7.3.180.0150.00316.53
7.3.170.0080.01616.38
7.3.160.0090.00816.32
7.3.130.0000.01514.77
7.3.120.0080.00814.81
7.3.110.0060.00814.87
7.3.100.0050.00914.74
7.3.90.0080.00714.89
7.3.80.0050.00714.70
7.3.70.0060.00714.74
7.3.60.0060.00514.76
7.3.50.0050.00614.76
7.3.40.0060.01014.72
7.3.30.0050.01014.81
7.3.20.0060.00716.61
7.3.10.0070.00816.74
7.3.00.0030.00916.50
7.2.330.0090.00916.73
7.2.320.0070.01016.58
7.2.310.0100.01316.44
7.2.300.0120.00616.78
7.2.290.0060.01216.37
7.2.260.0070.01115.04
7.2.250.0110.00715.00
7.2.240.0090.00715.06
7.2.230.0040.01314.91
7.2.220.0070.00415.08
7.2.210.0030.01114.99
7.2.200.0050.00914.94
7.2.190.0070.00614.97
7.2.180.0100.00614.95
7.2.170.0060.00815.10
7.2.160.0090.00615.06
7.2.150.0080.00716.82
7.2.140.0070.00816.84
7.2.130.0080.00616.75
7.2.120.0040.01116.78
7.2.110.0060.00716.79
7.2.100.0060.01016.89
7.2.90.0050.00616.91
7.2.80.0060.00916.97
7.2.70.0050.01216.87
7.2.60.0080.00716.83
7.2.50.0070.00816.92
7.2.40.0060.00916.71
7.2.30.0050.00816.79
7.2.20.0060.00816.81
7.2.10.0120.00416.82
7.2.00.0050.00817.47
7.1.330.0050.01115.73
7.1.320.0070.00715.73
7.1.310.0080.00815.72
7.1.300.0060.00715.80
7.1.290.0050.00915.61
7.1.280.0020.01115.81
7.1.270.0030.01015.70
7.1.260.0050.00715.95
7.1.250.0050.01115.63
7.1.240.0130.00015.57
7.1.230.0090.00615.82
7.1.220.0080.00415.63
7.1.210.0040.00715.90
7.1.200.0030.00915.84
7.1.190.0030.00715.49
7.1.180.0030.01015.91
7.1.170.0000.01315.74
7.1.160.0030.00915.70
7.1.150.0040.00715.78
7.1.140.0030.00715.91
7.1.130.0060.00915.81
7.1.120.0070.00315.99
7.1.110.0100.00615.86
7.1.100.0050.01017.03
7.1.90.0030.01415.56
7.1.80.0070.00315.74
7.1.70.0020.00616.49
7.1.60.0050.01317.65
7.1.50.0080.01016.44
7.1.40.0080.00815.47
7.1.30.0000.01215.77
7.1.20.0090.00015.83
7.1.10.0080.00415.79
7.1.00.0040.02619.09
7.0.330.0030.00915.30
7.0.320.0120.00015.38
7.0.310.0090.00015.39
7.0.300.0110.00015.41
7.0.290.0100.00015.39
7.0.280.0060.00315.44
7.0.270.0080.00415.19
7.0.260.0030.00615.50
7.0.250.0030.01415.61
7.0.240.0030.01115.48
7.0.230.0030.00715.61
7.0.220.0040.01015.32
7.0.210.0070.00715.39
7.0.200.0050.00516.16
7.0.190.0060.00315.52
7.0.180.0050.00815.49
7.0.170.0000.01215.18
7.0.160.0060.00615.13
7.0.150.0090.00315.57
7.0.140.0090.03218.73
7.0.130.0030.00715.41
7.0.120.0050.04218.66
7.0.110.0080.00015.28
7.0.100.0130.00015.60
7.0.90.0040.01115.50
7.0.80.0070.01015.49
7.0.70.0100.00615.33
7.0.60.0100.04417.56
7.0.50.0110.02516.55
7.0.40.0050.02515.66
7.0.30.0030.04515.61
7.0.20.0080.04315.52
7.0.10.0090.04415.53
7.0.00.0070.02315.67
5.6.400.0060.00314.27
5.6.390.0000.00914.18
5.6.380.0000.01514.56
5.6.370.0090.00314.40
5.6.360.0000.01513.95
5.6.350.0070.00714.35
5.6.340.0060.00614.46
5.6.330.0090.00614.65
5.6.320.0090.00914.45
5.6.310.0080.00314.35
5.6.300.0070.00414.31
5.6.290.0030.01014.62
5.6.280.0050.04017.78
5.6.270.0060.00914.23
5.6.260.0000.01214.49
5.6.250.0090.00314.23
5.6.240.0060.01014.25
5.6.230.0080.00314.20
5.6.220.0090.00614.45
5.6.210.0080.04317.33
5.6.200.0090.04316.19
5.6.190.0100.02016.32
5.6.180.0050.03516.21
5.6.170.0080.02816.35
5.6.160.0010.02916.26
5.6.150.0020.03216.27
5.6.140.0090.02616.32
5.6.130.0050.04516.19
5.6.120.0060.04316.28
5.6.110.0100.04216.30
5.6.100.0050.03316.34
5.6.90.0110.03616.32
5.6.80.0120.02315.80
5.6.70.0080.02515.87
5.6.60.0100.03315.96
5.6.50.0100.04015.91
5.6.40.0090.02715.90
5.6.30.0030.04315.93
5.6.20.0080.02515.88
5.6.10.0060.03215.90
5.6.00.0000.02816.05
5.5.380.0030.00614.44
5.5.370.0090.00314.04
5.5.360.0060.00314.16
5.5.350.0150.03917.38
5.5.340.0050.04216.18
5.5.330.0060.02416.15
5.5.320.0060.03416.21
5.5.310.0050.04316.16
5.5.300.0080.02316.01
5.5.290.0050.02816.13
5.5.280.0050.04516.03
5.5.270.0100.04216.25
5.5.260.0050.04016.05
5.5.250.0050.04715.89
5.5.240.0080.04015.77
5.5.230.0070.03915.88
5.5.220.0100.02515.85
5.5.210.0030.03515.75
5.5.200.0020.04015.69
5.5.190.0110.03515.82
5.5.180.0100.04015.69
5.5.170.0060.00614.05
5.5.160.0100.03915.67
5.5.150.0060.02815.64
5.5.140.0030.04515.78
5.5.130.0110.02815.77
5.5.120.0060.03115.83
5.5.110.0070.02215.72
5.5.100.0030.02515.72
5.5.90.0050.02015.71
5.5.80.0060.02815.72
5.5.70.0080.03615.84
5.5.60.0080.04015.66
5.5.50.0020.04715.72
5.5.40.0020.04215.84
5.5.30.0070.04015.76
5.5.20.0060.04115.64
5.5.10.0130.03615.68
5.5.00.0050.04415.68
5.4.450.0050.03715.27
5.4.440.0060.02215.07
5.4.430.0050.03315.21
5.4.420.0120.02815.25
5.4.410.0050.04315.14
5.4.400.0100.03714.99
5.4.390.0020.04814.98
5.4.380.0050.04515.07
5.4.370.0020.04714.96
5.4.360.0050.04315.12
5.4.350.0140.03014.99
5.4.340.0020.02515.10
5.4.330.0060.00311.09
5.4.320.0090.03015.18
5.4.310.0120.03715.14
5.4.300.0040.04215.14
5.4.290.0070.02015.03
5.4.280.0100.02715.00
5.4.270.0040.02415.13
5.4.260.0060.01815.17
5.4.250.0080.02114.92
5.4.240.0120.03515.00
5.4.230.0030.04214.88
5.4.220.0050.03214.97
5.4.210.0070.04415.01
5.4.200.0100.03515.17
5.4.190.0020.02614.95
5.4.180.0050.04315.16
5.4.170.0140.03514.95
5.4.160.0060.04115.04
5.4.150.0070.02714.79
5.4.140.0030.03813.67
5.4.130.0170.03213.93
5.4.120.0030.02513.83
5.4.110.0040.04213.78
5.4.100.0070.02613.65
5.4.90.0070.02313.69
5.4.80.0070.04213.77
5.4.70.0070.03513.68
5.4.60.0040.03813.67
5.4.50.0120.03213.70
5.4.40.0060.03713.68
5.4.30.0030.02313.71
5.4.20.0080.02313.64
5.4.10.0080.02613.76
5.4.00.0000.03713.55
5.3.290.0060.04312.60
5.3.280.0050.02612.56
5.3.270.0050.03512.67
5.3.260.0070.02712.66
5.3.250.0080.04112.53
5.3.240.0030.04312.54
5.3.230.0080.03812.45
5.3.220.0040.04212.42
5.3.210.0080.04012.60
5.3.200.0030.04212.44
5.3.190.0030.04212.61
5.3.180.0120.02212.52
5.3.170.0080.02512.57
5.3.160.0020.03812.65
5.3.150.0030.02512.58
5.3.140.0030.04012.63
5.3.130.0050.04012.59
5.3.120.0080.03812.43
5.3.110.0020.02812.52
5.3.100.0050.02912.32
5.3.90.0030.02312.35
5.3.80.0070.01912.27
5.3.70.0000.02512.27
5.3.60.0020.02312.30
5.3.50.0000.02312.13
5.3.40.0060.01712.23
5.3.30.0050.02212.24
5.3.20.0060.01812.07
5.3.10.0040.01912.08
5.3.00.0040.02112.06
5.2.170.0130.01711.10
5.2.160.0000.03311.12
5.2.150.0070.02710.98
5.2.140.0000.03011.14
5.2.130.0030.02711.00
5.2.120.0030.02710.89
5.2.110.0030.02711.09
5.2.100.0000.03011.25
5.2.90.0130.02311.10
5.2.80.0030.03011.13
5.2.70.0030.03011.06
5.2.60.0030.02711.01
5.2.50.0030.02710.96
5.2.40.0000.03010.94
5.2.30.0030.02710.89
5.2.20.0000.03010.93
5.2.10.0030.02710.89
5.2.00.0100.02010.70
5.1.60.0100.01710.07
5.1.50.0000.0239.98
5.1.40.0000.02310.02
5.1.30.0000.02710.25
5.1.20.0030.02310.36
5.1.10.0030.02310.10
5.1.00.0070.02010.15
5.0.50.0000.0208.57
5.0.40.0030.0178.48
5.0.30.0100.0208.37
5.0.20.0030.0178.23
5.0.10.0030.0178.23
5.0.00.0000.0308.36
4.4.90.0030.0138.23
4.4.80.0000.0178.23
4.4.70.0030.0178.23
4.4.60.0030.0138.23
4.4.50.0000.0138.23
4.4.40.0000.0238.23
4.4.30.0000.0178.23
4.4.20.0030.0178.23
4.4.10.0000.0178.23
4.4.00.0000.0238.23
4.3.110.0030.0108.23
4.3.100.0000.0138.23
4.3.90.0030.0138.23
4.3.80.0000.0238.23
4.3.70.0030.0138.23
4.3.60.0000.0138.23
4.3.50.0000.0138.23
4.3.40.0030.0208.23
4.3.30.0000.0138.23
4.3.20.0000.0138.23
4.3.10.0000.0138.23
4.3.00.0030.0108.23

preferences:
91.01 ms | 401 KiB | 5 Q