3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array( array ( 'excluded_by_default' => false, 'name' => 'Erik1' ), array ( 'excluded_by_default' => true, 'name' => 'Erik2' ), array ( 'excluded_by_default' => false, 'name' => 'Erik3' ) ); //Sort by excluded by default. function cmp($a, $b) { $test = ($a['name'] == $b['name']) ? '-1' : 1; echo $test.'test'; return ($a['name'] === $b['name']) ? -1 : 1; } usort($list, "cmp"); var_dump($list);

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.0040.01116.49
8.3.50.0150.00518.20
8.3.40.0090.01218.80
8.3.30.0070.01118.79
8.3.20.0050.00318.57
8.3.10.0030.00620.53
8.3.00.0000.00819.25
8.2.180.0150.00016.50
8.2.170.0070.01322.96
8.2.160.0120.00320.59
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00520.40
8.2.110.0060.00319.12
8.2.100.0070.00417.72
8.2.90.0040.00419.42
8.2.80.0080.00019.33
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0070.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00818.18
8.2.20.0030.00617.62
8.2.10.0040.00417.75
8.2.00.0000.00817.83
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00422.46
8.1.230.0000.01120.97
8.1.220.0040.00417.88
8.1.210.0000.00819.10
8.1.200.0070.00317.35
8.1.190.0040.00417.51
8.1.180.0080.00018.10
8.1.170.0050.00318.82
8.1.160.0050.00318.93
8.1.150.0000.00818.61
8.1.140.0080.00017.46
8.1.130.0000.00717.82
8.1.120.0000.00717.37
8.1.110.0080.00017.54
8.1.100.0000.00717.38
8.1.90.0050.00217.36
8.1.80.0050.00217.54
8.1.70.0000.00817.35
8.1.60.0030.00617.58
8.1.50.0050.00217.48
8.1.40.0040.00417.45
8.1.30.0050.00217.63
8.1.20.0030.00617.69
8.1.10.0030.00517.50
8.1.00.0070.00017.53
8.0.300.0040.00419.92
8.0.290.0050.00216.63
8.0.280.0000.00818.33
8.0.270.0040.00417.32
8.0.260.0030.00316.77
8.0.250.0040.00416.86
8.0.240.0040.00416.95
8.0.230.0040.00416.87
8.0.220.0070.00016.91
8.0.210.0030.00316.89
8.0.200.0000.00716.85
8.0.190.0030.00316.98
8.0.180.0050.00316.86
8.0.170.0030.00616.89
8.0.160.0030.00517.01
8.0.150.0040.00416.83
8.0.140.0040.00416.85
8.0.130.0050.00013.29
8.0.120.0000.00816.82
8.0.110.0030.00516.80
8.0.100.0000.00716.73
8.0.90.0040.00416.76
8.0.80.0040.01116.95
8.0.70.0040.00416.77
8.0.60.0000.00816.93
8.0.50.0000.00716.90
8.0.30.0200.00017.28
8.0.20.0150.00616.83
8.0.10.0040.00416.89
8.0.00.0140.00616.72
7.4.330.0000.00513.06
7.4.320.0030.00316.47
7.4.300.0000.00616.51
7.4.290.0000.00716.60
7.4.280.0000.00816.44
7.4.270.0030.00316.59
7.4.260.0000.00513.33
7.4.250.0040.00416.47
7.4.240.0000.00716.50
7.4.230.0030.00316.55
7.4.220.0100.01316.45
7.4.210.0070.00716.52
7.4.200.0000.00716.51
7.4.190.0000.00716.55
7.4.160.0100.00716.53
7.4.150.0130.00616.36
7.4.140.0090.00916.29
7.4.130.0080.01016.63
7.4.120.0080.00816.46
7.4.110.0120.00616.58
7.4.100.0000.02216.42
7.4.90.0070.01116.50
7.4.80.0150.00619.39
7.4.70.0060.01216.60
7.4.60.0090.00616.55
7.4.50.0000.00416.66
7.4.40.0070.01116.54
7.4.30.0160.00616.55
7.4.00.0050.00914.93
7.3.330.0030.00313.31
7.3.320.0000.00513.18
7.3.310.0030.00316.40
7.3.300.0040.00416.20
7.3.290.0050.00916.30
7.3.280.0130.00816.32
7.3.270.0100.01016.53
7.3.260.0080.01216.51
7.3.250.0090.01016.39
7.3.240.0140.00316.43
7.3.230.0040.01416.36
7.3.210.0200.00316.59
7.3.200.0050.01416.57
7.3.190.0140.00316.64
7.3.180.0100.00716.55
7.3.170.0120.00316.31
7.3.160.0120.00416.38
7.3.120.0020.01314.75
7.3.110.0090.00914.84
7.3.100.0070.00715.04
7.3.90.0060.00914.74
7.3.80.0030.01214.79
7.3.70.0030.01014.70
7.3.60.0110.00314.64
7.3.50.0000.01514.78
7.3.40.0000.01214.47
7.3.30.0070.01014.83
7.3.20.0040.01116.42
7.3.10.0090.00316.46
7.3.00.0100.00716.75
7.2.330.0080.01216.66
7.2.320.0140.00716.64
7.2.310.0060.01216.71
7.2.300.0100.01016.70
7.2.290.0120.01016.82
7.2.250.0100.00614.81
7.2.240.0070.01314.87
7.2.230.0130.00315.03
7.2.220.0070.00415.01
7.2.210.0150.00315.09
7.2.200.0090.00314.90
7.2.190.0100.01014.89
7.2.180.0060.00614.77
7.2.170.0090.00315.13
7.2.60.0060.01016.95
7.2.00.0000.01419.27
7.1.330.0070.00715.78
7.1.320.0040.00415.93
7.1.310.0070.00715.75
7.1.300.0040.01115.71
7.1.290.0000.01115.91
7.1.280.0090.00315.80
7.1.270.0100.00315.80
7.1.260.0000.01415.55
7.1.200.0040.00815.63
7.1.100.0060.00618.09
7.1.70.0050.00217.26
7.1.60.0130.01019.31
7.1.50.0090.01316.92
7.1.00.0000.08022.42
7.0.200.0070.01014.96
7.0.140.0030.07322.21
7.0.120.0000.07322.13
7.0.60.0100.06719.91
7.0.50.0030.05717.88
7.0.40.0030.08320.14
7.0.30.0330.07720.26
7.0.20.0400.07020.15
7.0.10.0300.08020.32
7.0.00.0070.05720.05
5.6.280.0000.07721.02
5.6.210.0100.08020.65
5.6.200.0100.04018.19
5.6.190.0070.04320.39
5.6.180.0370.06720.46
5.6.170.0330.08320.54
5.6.160.0130.07720.50
5.6.150.0100.07718.12
5.6.140.0030.03718.29
5.6.130.0070.04018.23
5.6.120.0100.06021.14
5.6.110.0100.07321.12
5.6.100.0070.03721.02
5.6.90.0030.04321.13
5.6.80.0100.06720.38
5.6.70.0270.04020.48
5.5.350.0200.04020.42
5.5.340.0070.05017.92
5.5.330.0170.04020.42
5.5.320.0200.08720.30
5.5.310.0300.07320.28
5.5.300.0100.04318.08
5.5.290.0030.08317.97
5.5.280.0230.06720.88
5.5.270.0030.05720.87
5.5.260.0130.07320.65
5.5.250.0070.08320.68
5.5.240.0000.06320.35
5.4.450.0070.06319.18
5.4.440.0230.06319.18
5.4.430.0030.04019.30
5.4.420.0030.04019.24
5.4.410.0130.07019.17
5.4.400.0100.07019.21
5.4.390.0100.07319.12
5.4.380.0030.06719.20
5.4.370.0030.07318.87
5.4.360.0130.06319.16
5.4.350.0070.07319.01
5.4.340.0100.04318.87
5.4.320.0000.08719.15
5.4.310.0100.06719.25
5.4.300.0170.04019.12
5.4.290.0030.08019.00
5.4.280.0000.08719.18
5.4.270.0070.08019.12
5.4.260.0070.06019.24
5.4.250.0070.04318.84
5.4.240.0070.04319.23
5.4.230.0000.05019.19
5.4.220.0170.06719.00
5.4.210.0000.05719.20
5.4.200.0100.04719.15
5.4.190.0030.05018.91
5.4.180.0130.07318.98
5.4.170.0030.04018.84
5.4.160.0030.08019.10
5.4.150.0000.08018.87
5.4.140.0100.06016.29
5.4.130.0100.07316.29
5.4.120.0070.07716.25
5.4.110.0100.07016.54
5.4.100.0000.08016.30
5.4.90.0070.07316.34
5.4.80.0030.05016.27
5.4.70.0130.06016.39
5.4.60.0170.06016.43
5.4.50.0030.07716.40
5.4.40.0070.07716.33
5.4.30.0100.06316.50
5.4.20.0070.06716.34
5.4.10.0070.07316.46
5.4.00.0070.04715.99
5.3.290.0000.07014.67
5.3.280.0070.08014.48
5.3.270.0070.04014.62
5.3.260.0000.07014.60
5.3.250.0070.08014.66
5.3.240.0130.05714.65
5.3.230.0100.04314.63
5.3.220.0070.05314.71
5.3.210.0100.07014.59
5.3.200.0100.07014.61
5.3.190.0000.07714.59
5.3.180.0030.08014.61
5.3.170.0000.04714.73
5.3.160.0100.06714.60
5.3.150.0070.04714.58
5.3.140.0000.04014.63
5.3.130.0030.05014.55
5.3.120.0070.03714.54
5.3.110.0100.05714.55
5.3.100.0070.04714.06
5.3.90.0100.07014.07
5.3.80.0030.05013.94
5.3.70.0070.06014.03
5.3.60.0070.08014.03
5.3.50.0070.03714.01
5.3.40.0100.06014.02
5.3.30.0030.06013.80
5.3.20.0130.07013.85
5.3.10.0030.07013.55
5.3.00.0130.06313.70
5.2.170.0000.03711.30
5.2.160.0070.05711.31
5.2.150.0100.05011.14
5.2.140.0030.05711.10
5.2.130.0070.06311.06
5.2.120.0030.06311.26
5.2.110.0100.06011.06
5.2.100.0070.05011.17
5.2.90.0000.06011.10
5.2.80.0030.05711.11
5.2.70.0070.03711.05
5.2.60.0070.04311.05
5.2.50.0030.05711.09
5.2.40.0030.05311.15
5.2.30.0000.04711.03
5.2.20.0030.06311.01
5.2.10.0130.05310.78
5.2.00.0070.05310.72
5.1.60.0100.04010.04
5.1.50.0030.03010.02
5.1.40.0030.0379.97
5.1.30.0000.06710.30
5.1.20.0000.04310.40
5.1.10.0030.0409.98
5.1.00.0100.04310.14
5.0.50.0000.0338.53
5.0.40.0030.0208.50
5.0.30.0030.0508.24
5.0.20.0030.0378.21
5.0.10.0070.0478.08
5.0.00.0030.0408.07
4.4.90.0030.0337.96
4.4.80.0000.0407.96
4.4.70.0070.0337.96
4.4.60.0070.0337.96
4.4.50.0000.0377.96
4.4.40.0030.0437.96
4.4.30.0100.0207.96
4.4.20.0070.0337.96
4.4.10.0070.0137.97
4.4.00.0100.0377.97
4.3.110.0030.0377.97
4.3.100.0070.0107.97
4.3.90.0000.0377.97
4.3.80.0000.0577.97
4.3.70.0000.0277.97
4.3.60.0070.0207.97
4.3.50.0070.0277.97
4.3.40.0000.0377.97
4.3.30.0000.0177.97
4.3.20.0000.0407.97
4.3.10.0030.0277.97
4.3.00.0000.0237.97

preferences:
52.24 ms | 401 KiB | 5 Q