3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0;$i<100;$i++) { $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.0101.99218.39
8.3.50.0131.99120.93
8.3.40.0131.99118.50
8.3.30.0032.00319.14
8.3.20.0002.00320.20
8.3.10.0032.00223.66
8.3.00.0031.99819.38
8.2.180.0171.98216.50
8.2.170.0101.99322.96
8.2.160.0071.99520.39
8.2.150.0071.99524.18
8.2.140.0032.00024.66
8.2.130.0071.99526.16
8.2.120.0071.99622.10
8.2.110.0002.00420.54
8.2.100.0101.99618.09
8.2.90.0031.99719.10
8.2.80.0032.00217.97
8.2.70.0031.99717.63
8.2.60.0031.98718.03
8.2.50.0031.99918.07
8.2.40.0031.99719.88
8.2.30.0002.00318.21
8.2.20.0032.00017.82
8.2.10.0002.00018.26
8.2.00.0031.99817.82
8.1.280.0101.99225.92
8.1.270.0101.99021.95
8.1.260.0031.99926.35
8.1.250.0031.99928.09
8.1.240.0032.00023.98
8.1.230.0032.00319.10
8.1.220.0002.00217.78
8.1.210.0071.99618.77
8.1.200.0071.99817.35
8.1.190.0032.00017.35
8.1.180.0071.99718.10
8.1.170.0002.00518.59
8.1.160.0002.00122.02
8.1.150.0031.99819.01
8.1.140.0002.00317.57
8.1.130.0071.99617.94
8.1.120.0032.00117.58
8.1.110.0031.99817.53
8.1.100.0032.00417.52
8.1.90.0002.00317.49
8.1.80.0002.00017.55
8.1.70.0032.00017.50
8.1.60.0071.99617.54
8.1.50.0002.00317.51
8.1.40.0002.00217.58
8.1.30.0031.99817.59
8.1.20.0071.99417.66
8.1.10.0002.00117.58
8.1.00.0071.99517.40
8.0.300.0071.99518.77
8.0.290.0031.99916.58
8.0.280.0031.99918.37
8.0.270.0031.99917.18
8.0.260.0071.99217.14
8.0.250.0032.00016.73
8.0.240.0031.99916.81
8.0.230.0071.99516.80
8.0.220.0031.99816.85
8.0.210.0032.00016.81
8.0.200.0101.99016.68
8.0.190.0071.99616.88
8.0.180.0101.99316.82
8.0.170.0032.00016.71
8.0.160.0071.99416.83
8.0.150.0002.00316.80
8.0.140.0031.99816.80
8.0.130.0032.00013.29
8.0.120.0002.00216.78
8.0.110.0032.00016.74
8.0.100.0071.99416.62
8.0.90.0071.99616.64
8.0.80.0131.99216.71
8.0.70.0071.99716.66
8.0.60.0032.00016.83
8.0.50.0032.00016.64
8.0.30.0201.98316.94
8.0.20.0261.98217.40
8.0.10.0031.99916.79
8.0.00.0111.98816.76
7.4.330.0002.00115.00
7.4.320.0002.00416.34
7.4.300.0071.99716.37
7.4.290.0131.98816.48
7.4.280.0131.98816.38
7.4.270.0031.99816.49
7.4.260.0032.00216.32
7.4.250.0002.00516.49
7.4.240.0022.00016.40
7.4.230.0131.98816.56
7.4.220.0101.99216.34
7.4.210.0061.99516.48
7.4.200.0002.00316.58
7.4.160.0131.98216.14
7.4.150.0072.00617.40
7.4.140.0101.99117.86
7.4.130.0261.97516.29
7.4.120.0081.99716.46
7.4.110.0162.44916.44
7.4.100.0102.46616.48
7.4.90.0102.41416.54
7.4.80.0132.45119.39
7.4.70.0422.32916.26
7.4.60.0232.43716.52
7.4.50.0132.48416.41
7.4.40.0162.44216.49
7.4.30.0062.46416.34
7.4.00.0072.49214.94
7.3.330.0201.97213.25
7.3.320.0002.00313.23
7.3.310.0071.99616.27
7.3.300.0002.00116.19
7.3.290.0561.90916.17
7.3.280.0131.98316.18
7.3.270.0101.99217.40
7.3.260.0131.99316.39
7.3.240.0191.97316.42
7.3.230.0192.26516.53
7.3.210.0132.44616.41
7.3.200.0162.39019.39
7.3.190.0252.45216.29
7.3.180.0542.02416.19
7.3.170.0102.46916.36
7.3.160.0132.46816.32
7.2.330.0062.47516.41
7.2.320.0132.45816.46
7.2.310.0101.33516.75
7.2.300.0332.40816.39
7.2.290.0102.45416.37
7.2.00.0072.49419.47
7.1.100.0072.49417.73
7.1.70.0102.49116.83
7.1.60.0102.49119.32
7.1.50.0102.49217.02
7.1.00.0072.49322.19
7.0.200.0002.50116.63
7.0.140.0032.49721.98
7.0.110.0472.33020.03
7.0.100.0632.43719.96
7.0.90.0202.42319.94
7.0.80.0402.39319.91
7.0.70.0572.44319.84
7.0.60.0572.42720.07
7.0.50.0572.42320.36
7.0.40.0032.46720.06
7.0.30.0102.43020.16
7.0.20.0072.41020.23
7.0.10.0132.36720.25
7.0.00.0032.38720.18
5.6.280.0032.49721.10
5.6.260.0072.40020.68
5.6.250.0002.50020.75
5.6.240.0032.49720.71
5.6.230.0072.43720.46
5.6.220.0132.40720.67
5.6.210.0072.42020.64
5.6.200.0032.43320.93
5.6.190.0032.49721.12
5.6.180.0072.30321.07
5.6.170.0132.43721.13
5.6.160.0132.39721.13
5.6.150.0072.46020.90
5.6.140.0132.48721.17
5.6.130.0072.49321.06
5.6.120.0132.39020.97
5.6.110.0232.30021.07
5.6.100.0032.44321.27
5.6.90.0072.39021.26
5.6.80.0072.47720.47
5.6.70.0072.41320.49
5.6.60.0172.43020.55
5.6.50.0002.35720.66
5.6.40.0272.43720.45
5.6.30.0072.38320.45
5.6.20.0102.46020.40
5.6.10.0102.41320.43
5.6.00.0102.44720.32
5.5.380.0002.40020.28
5.5.370.0102.43720.54
5.5.360.0002.43720.33
5.5.350.0172.48320.49
5.5.340.0072.49320.90
5.5.330.0132.34320.88
5.5.320.0102.47720.85
5.5.310.0132.38021.02
5.5.300.0102.44320.84
5.5.290.0132.39320.88
5.5.280.0102.41720.94
5.5.270.0072.42720.93
5.5.260.0072.44320.79
5.5.250.0072.42320.59
5.5.240.0032.46020.16
5.5.230.0132.42320.41
5.5.220.0102.42020.35
5.5.210.0032.43020.27
5.5.200.0132.40720.30
5.5.190.0102.45020.21
5.5.180.0002.31720.09
5.5.160.0102.42720.17
5.5.150.0102.39320.13
5.5.140.0102.39320.18
5.5.130.0032.47720.31
5.5.120.0032.33720.26
5.5.110.0032.39320.24
5.5.100.0032.47720.23
5.5.90.0102.43319.99
5.5.80.0032.44020.15
5.5.70.0132.38719.96
5.5.60.0072.44320.23
5.5.50.0072.45320.09
5.5.40.0132.43019.96
5.5.30.0032.45320.02
5.5.20.0102.30020.23
5.5.10.0232.37720.23
5.5.00.0102.40020.02
5.4.450.0132.47719.18
5.4.440.0132.45319.36
5.4.430.0002.45719.25
5.4.420.0202.44319.25
5.4.410.0102.42719.32
5.4.400.0002.48719.05
5.4.390.0072.44719.18
5.4.380.0132.46019.03
5.4.370.0032.39018.93
5.4.360.0102.32318.93
5.4.350.0032.49719.06
5.4.340.0002.50018.82
5.4.320.0102.45718.95
5.4.310.0102.44719.14
5.4.300.0072.47318.93
5.4.290.0072.41719.05
5.4.280.0102.46018.89
5.4.270.0172.45718.94
5.4.260.0032.41018.90
5.4.250.0132.46319.04
5.4.240.0102.41318.81
5.4.230.0032.45318.95
5.4.220.0102.45718.93
5.4.210.0102.41018.89
5.4.200.0102.45718.84
5.4.190.0072.47719.04
5.4.180.0102.43018.80
5.4.170.0032.42018.96
5.4.160.0102.46018.89
5.4.150.0072.46319.10
5.4.140.0032.41016.47
5.4.130.0102.43716.45
5.4.120.0072.45716.45
5.4.110.0032.39716.39
5.4.100.0072.46716.12
5.4.90.0102.41316.12
5.4.80.0032.44316.38
5.4.70.0132.45016.11
5.4.60.0102.45316.14
5.4.50.0172.44316.34
5.4.40.0072.43716.36
5.4.30.0102.44016.31
5.4.20.0132.46016.13
5.4.10.0072.45316.31
5.4.00.0032.45715.63
5.3.290.0102.42314.38
5.3.280.0132.45314.29
5.3.270.0072.46014.36
5.3.260.0072.46314.33
5.3.250.0032.45314.38
5.3.240.0032.45714.31
5.3.230.0132.42314.20
5.3.220.0102.45714.27
5.3.210.0102.45714.49
5.3.200.0002.46714.51
5.3.190.0032.46314.32
5.3.180.0072.46714.25
5.3.170.0202.36314.32
5.3.160.0032.41014.40
5.3.150.0032.48014.31
5.3.140.0032.47714.16
5.3.130.0102.46314.48
5.3.120.0072.43714.33
5.3.110.0072.42014.28
5.3.100.0072.34313.65
5.3.90.0032.46713.80
5.3.80.0032.47313.85
5.3.70.0132.05713.68
5.3.60.0032.40313.86
5.3.50.0072.45713.81
5.3.40.0172.46313.60
5.3.30.0032.47713.61
5.3.20.0102.45313.31
5.3.10.0072.44713.31
5.3.00.0072.42013.30
5.2.170.0072.36310.90
5.2.160.0032.45710.99
5.2.150.0032.49710.89
5.2.140.0102.44710.90
5.2.130.0032.45310.89
5.2.120.0002.44711.03
5.2.110.0102.44010.95
5.2.100.0132.45310.89
5.2.90.0002.45710.89
5.2.80.0002.45310.89
5.2.70.0472.35710.89
5.2.60.0072.46310.89
5.2.50.0102.41710.89
5.2.40.0032.44710.92
5.2.30.0072.45710.89
5.2.20.0032.46310.89
5.2.10.0072.45710.89
5.2.00.0002.47010.89
5.1.60.0032.47010.89
5.1.50.0172.44010.89
5.1.40.0102.43310.89
5.1.30.0002.43010.89
5.1.20.0032.46010.89
5.1.10.0032.47010.89
5.1.00.0102.45310.89
5.0.50.0102.43710.89
5.0.40.0132.46710.89
5.0.30.0002.45710.89
5.0.20.0002.47010.89
5.0.10.0032.43010.89
5.0.00.0002.42710.04
4.4.90.0002.44710.89
4.4.80.0002.46710.89
4.4.70.0002.45710.89
4.4.60.0032.46310.89
4.4.50.0002.43310.89
4.4.40.0072.42310.89
4.4.30.0002.50010.89
4.4.20.0002.43310.89
4.4.10.0002.46010.89
4.4.00.0002.47710.89
4.3.110.0072.43310.89
4.3.100.0032.47710.89
4.3.90.0002.43010.89
4.3.80.0002.45310.04
4.3.70.0002.47310.04
4.3.60.0072.42010.04
4.3.50.0002.44010.04
4.3.40.0072.44310.04
4.3.30.0032.46010.04
4.3.20.0032.46710.04
4.3.10.0002.22010.04
4.3.00.0032.47010.04

preferences:
47.47 ms | 401 KiB | 5 Q