3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array(1,3,5,77,37,523,243,546,14,3,4,6,5); for ( $i = 0; $i < count($numbers); $i++ ) { for ($j = 0; $j < count($numbers); $j++ ) { if ($numbers[$i] < $numbers[$j]) { $temp = $numbers[$i]; $numbers[$i] = $numbers[$j]; $numbers[$j] = $temp; } } }

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.0110.00718.29
8.3.50.0090.00921.99
8.3.40.0080.00818.68
8.3.30.0120.00319.04
8.3.20.0040.00420.18
8.3.10.0040.00423.39
8.3.00.0080.00019.23
8.2.180.0120.00416.75
8.2.170.0090.00622.96
8.2.160.0030.01020.57
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0040.00422.23
8.2.110.0040.00420.35
8.2.100.0090.00717.97
8.2.90.0000.00719.09
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0090.00017.93
8.2.50.0080.00418.07
8.2.40.0000.00820.07
8.2.30.0000.00718.13
8.2.20.0000.00817.72
8.2.10.0000.00818.02
8.2.00.0080.00017.74
8.1.280.0070.00725.92
8.1.270.0000.00823.84
8.1.260.0070.00026.35
8.1.250.0000.01228.09
8.1.240.0030.00623.91
8.1.230.0070.00319.22
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0030.00518.10
8.1.170.0040.00418.68
8.1.160.0070.00022.02
8.1.150.0000.00718.80
8.1.140.0040.00417.37
8.1.130.0030.00617.77
8.1.120.0000.00717.53
8.1.110.0040.00417.38
8.1.100.0040.00417.37
8.1.90.0070.00017.36
8.1.80.0030.00517.36
8.1.70.0080.00017.47
8.1.60.0090.00017.47
8.1.50.0040.00417.50
8.1.40.0070.00017.44
8.1.30.0030.00617.61
8.1.20.0000.00817.53
8.1.10.0080.00017.53
8.1.00.0050.00317.31
8.0.300.0050.00218.77
8.0.290.0070.00016.63
8.0.280.0000.00818.29
8.0.270.0030.00317.27
8.0.260.0000.00817.19
8.0.250.0040.00416.93
8.0.240.0030.00316.79
8.0.230.0030.00316.79
8.0.220.0000.00716.80
8.0.210.0070.00016.81
8.0.200.0030.00316.79
8.0.190.0030.00516.93
8.0.180.0080.00016.85
8.0.170.0080.00016.93
8.0.160.0040.00416.84
8.0.150.0000.00716.84
8.0.140.0030.00316.88
8.0.130.0050.00013.30
8.0.120.0040.00416.93
8.0.110.0030.00516.89
8.0.100.0000.00716.73
8.0.90.0040.00416.90
8.0.80.0110.01016.96
8.0.70.0070.00016.80
8.0.60.0040.00416.72
8.0.50.0090.00016.89
8.0.30.0150.00817.16
8.0.20.0090.01117.40
8.0.10.0000.00817.03
8.0.00.0080.01316.70
7.4.330.0050.00015.00
7.4.320.0070.00016.60
7.4.300.0000.00616.52
7.4.290.0030.00316.56
7.4.280.0060.00316.43
7.4.270.0080.00016.59
7.4.260.0000.00716.61
7.4.250.0040.00416.58
7.4.240.0020.00516.62
7.4.230.0070.00016.41
7.4.220.0100.00716.53
7.4.210.0070.00716.63
7.4.200.0000.00716.46
7.4.160.0090.00916.51
7.4.150.0180.00417.40
7.4.140.0070.01017.86
7.4.130.0080.01516.33
7.4.120.0110.00816.43
7.4.110.0070.01016.42
7.4.100.0100.00716.46
7.4.90.0070.01016.42
7.4.80.0080.00919.39
7.4.70.0160.00616.62
7.4.60.0080.00816.46
7.4.50.0030.00316.27
7.4.40.0050.01116.32
7.4.30.0070.01016.38
7.4.00.0060.01115.07
7.3.330.0030.00513.07
7.3.320.0000.00613.18
7.3.310.0030.00316.26
7.3.300.0030.00316.36
7.3.290.0110.00316.29
7.3.280.0090.00816.36
7.3.270.0150.00317.40
7.3.260.0130.00616.44
7.3.240.0160.00316.23
7.3.230.0100.01316.39
7.3.210.0100.00716.34
7.3.200.0170.00319.39
7.3.190.0130.00316.45
7.3.180.0100.00516.37
7.3.170.0060.00916.36
7.3.160.0130.00316.48
7.3.120.0090.00914.80
7.3.110.0050.01314.83
7.3.100.0080.00814.62
7.3.90.0080.00914.72
7.3.80.0070.00814.80
7.3.70.0030.00914.85
7.3.60.0040.00914.86
7.3.50.0050.00514.72
7.3.40.0070.00514.92
7.3.30.0100.00314.70
7.3.20.0050.01116.63
7.3.10.0070.00816.54
7.3.00.0050.00716.70
7.2.330.0100.00716.70
7.2.320.0060.01116.70
7.2.310.0070.01016.54
7.2.300.0130.00616.44
7.2.290.0070.01016.55
7.2.250.0050.01014.95
7.2.240.0090.01114.83
7.2.230.0070.01015.03
7.2.220.0040.00914.80
7.2.210.0050.01015.03
7.2.200.0060.00414.78
7.2.190.0030.00714.89
7.2.180.0020.01215.07
7.2.170.0030.01215.15
7.2.160.0120.00615.21
7.2.150.0060.00916.84
7.2.140.0060.00616.85
7.2.130.0050.00716.85
7.2.120.0020.01216.71
7.2.110.0050.00616.75
7.2.100.0060.00816.81
7.2.90.0040.00616.77
7.2.80.0030.00916.70
7.2.70.0030.01016.88
7.2.60.0070.00716.84
7.2.50.0090.00716.86
7.2.40.0080.00516.92
7.2.30.0050.00716.77
7.2.20.0050.00616.97
7.2.10.0020.00816.91
7.2.00.0050.00616.89
7.1.330.0050.00915.85
7.1.320.0030.00615.94
7.1.310.0070.00415.88
7.1.300.0050.00815.83
7.1.290.0050.00715.69
7.1.280.0020.01015.73
7.1.270.0050.01015.66
7.1.260.0040.01115.79
7.1.250.0060.00615.74
7.1.200.0070.00415.88
7.1.100.0700.00915.61
7.1.70.0000.00816.97
7.1.60.0160.00919.32
7.1.50.0120.00916.59
7.1.00.0000.08022.55
7.0.200.0120.00416.38
7.0.140.0000.07722.00
7.0.120.0030.05322.00
7.0.110.0000.08722.10
7.0.100.0000.08721.95
7.0.90.0030.06322.09
7.0.80.0130.06322.12
7.0.70.0030.08022.11
7.0.60.0070.08022.02
7.0.50.0170.02722.16
7.0.40.0030.08020.13
7.0.30.0030.06320.02
7.0.20.0070.07320.00
7.0.10.0030.07020.00
7.0.00.0070.07719.93
5.6.280.0000.07720.81
5.6.270.0100.05021.07
5.6.260.0100.07321.07
5.6.250.0070.05721.04
5.6.240.0030.08020.98
5.6.230.0030.05320.81
5.6.220.0030.06320.91
5.6.210.0070.08320.89
5.6.200.0100.07320.98
5.6.190.0070.06720.89
5.6.180.0030.07320.71
5.6.170.0030.07721.02
5.6.160.0030.08320.98
5.6.150.0000.04720.70
5.6.140.0030.07020.69
5.6.130.0070.08321.02
5.6.120.0000.08720.94
5.6.110.0000.07720.93
5.6.100.0030.04020.84
5.6.90.0030.04720.92
5.6.80.0030.08320.37
5.6.70.0030.07320.24
5.6.60.0030.05020.36
5.6.50.0100.05720.34
5.6.40.0070.06020.38
5.6.30.0000.04320.38
5.6.20.0070.07320.35
5.6.10.0030.06720.12
5.6.00.0030.03720.36
5.5.380.0000.07717.63
5.5.370.0030.05317.64
5.5.360.0030.06717.62
5.5.350.0030.07317.65
5.5.340.0100.06717.77
5.5.330.0000.07717.85
5.5.320.0030.05718.12
5.5.310.0000.04017.77
5.5.300.0030.08018.02
5.5.290.0000.07018.16
5.5.280.0070.07018.02
5.5.270.0000.05717.86
5.5.260.0030.07717.75
5.5.250.0000.04017.84
5.5.240.0030.07317.24
5.5.230.0000.06017.36
5.5.220.0000.07717.24
5.5.210.0070.06717.54
5.5.200.0000.03717.47
5.5.190.0000.06717.48
5.5.180.0000.04317.21
5.5.160.0070.03017.36
5.5.150.0030.03317.34
5.5.140.0000.03717.11
5.5.130.0030.03317.44
5.5.120.0070.04017.24
5.5.110.0030.07317.20
5.5.100.0030.07317.12
5.5.90.0030.06717.11
5.5.80.0000.07717.34
5.5.70.0000.04717.01
5.5.60.0030.03317.08
5.5.50.0000.04017.27
5.5.40.0000.04317.22
5.5.30.0000.04017.00
5.5.20.0000.07717.22
5.5.10.0030.03317.13
5.5.00.0000.06717.37
5.4.450.0070.03319.38
5.4.440.0030.07019.27
5.4.430.0030.03719.22
5.4.420.0000.07319.27
5.4.410.0070.06719.26
5.4.400.0000.08019.13
5.4.390.0070.07719.07
5.4.380.0070.06719.02
5.4.370.0000.07719.07
5.4.360.0030.03718.89
5.4.350.0000.03718.95
5.4.340.0000.04019.14
5.4.320.0000.05719.20
5.4.310.0070.03019.07
5.4.300.0030.05719.11
5.4.290.0170.02718.87
5.4.280.0030.07718.97
5.4.270.0030.08019.12
5.4.260.0070.07018.87
5.4.250.0100.06319.06
5.4.240.0030.07319.11
5.4.230.0030.07319.05
5.4.220.0030.07318.89
5.4.210.0000.07018.94
5.4.200.0030.04718.98
5.4.190.0030.05018.96
5.4.180.0030.06018.89
5.4.170.0000.04319.05
5.4.160.0000.04318.95
5.4.150.0000.06018.88
5.4.140.0000.06016.16
5.4.130.0000.04016.17
5.4.120.0030.05316.43
5.4.110.0030.03316.43
5.4.100.0030.04716.23
5.4.90.0030.03316.47
5.4.80.0070.05316.06
5.4.70.0030.08016.45
5.4.60.0000.03316.28
5.4.50.0030.07716.42
5.4.40.0030.03316.35
5.4.30.0000.03716.15
5.4.20.0030.04316.43
5.4.10.0000.06716.29
5.4.00.0000.04015.61
5.3.290.0070.06714.59
5.3.280.0030.05714.45
5.3.270.0000.06714.63
5.3.260.0070.06014.61
5.3.250.0000.03714.50
5.3.240.0030.03314.48
5.3.230.0070.07314.66
5.3.220.0000.03714.66
5.3.210.0030.05314.46
5.3.200.0000.04714.49
5.3.190.0030.04714.49
5.3.180.0000.04014.44
5.3.170.0000.06314.57
5.3.160.0070.06014.62
5.3.150.0000.05714.64
5.3.140.0000.03714.43
5.3.130.0070.03014.57
5.3.120.0000.03714.49
5.3.110.0000.04314.64
5.3.100.0000.04713.94
5.3.90.0000.03713.81
5.3.80.0000.04013.92
5.3.70.0030.04013.80
5.3.60.0030.03314.06
5.3.50.0030.04713.84
5.3.40.0030.03314.02
5.3.30.0070.02713.98
5.3.20.0000.06713.79
5.3.10.0030.03013.71
5.3.00.0000.06313.50
5.2.170.0000.05011.04
5.2.160.0000.04011.08
5.2.150.0000.03011.20
5.2.140.0000.04011.06
5.2.130.0030.04711.09
5.2.120.0000.02710.90
5.2.110.0030.02311.12
5.2.100.0030.02711.12
5.2.90.0000.03711.00
5.2.80.0000.05011.01
5.2.70.0070.03311.16
5.2.60.0030.05010.95
5.2.50.0030.03711.08
5.2.40.0030.05710.79
5.2.30.0000.05711.03
5.2.20.0000.06710.96
5.2.10.0030.04710.75
5.2.00.0030.04010.66
5.1.60.0070.04310.14
5.1.50.0000.03010.14
5.1.40.0070.03710.14
5.1.30.0000.02710.26
5.1.20.0000.03010.37
5.1.10.0000.05010.14
5.1.00.0000.04710.14
5.0.50.0000.02010.14
5.0.40.0070.01310.14
5.0.30.0000.04010.14
5.0.20.0000.04710.14
5.0.10.0030.03310.14
5.0.00.0000.04710.14
4.4.90.0000.01710.14
4.4.80.0000.01310.14
4.4.70.0000.03310.14
4.4.60.0070.02310.14
4.4.50.0000.01310.14
4.4.40.0000.05710.14
4.4.30.0000.03310.14
4.4.20.0000.03310.14
4.4.10.0000.01710.14
4.4.00.0000.03710.14
4.3.110.0030.01310.14
4.3.100.0000.03310.14
4.3.90.0000.01710.14
4.3.80.0000.04710.14
4.3.70.0000.02710.14
4.3.60.0000.01310.14
4.3.50.0000.03710.14
4.3.40.0000.02710.14
4.3.30.0000.03710.14
4.3.20.0000.03310.14
4.3.10.0000.02010.14
4.3.00.0000.01310.14

preferences:
48.47 ms | 401 KiB | 5 Q