3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(1, 100000); $startTime = microtime(true); shuffle($range); echo "Time: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n";

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)
7.2.00.0030.01523.14
7.1.70.0050.00520.74
7.1.60.0030.01621.19
7.1.50.0070.02020.87
7.1.00.0030.08326.23
7.0.200.0140.01020.63
7.0.140.0030.07726.09
7.0.60.0070.07322.64
7.0.50.0030.04320.62
7.0.40.0100.06322.66
7.0.30.0430.07722.59
7.0.20.0430.07722.64
7.0.10.0100.08722.58
7.0.00.0170.08022.71
5.6.280.0030.12335.73
5.6.210.0130.13035.50
5.6.200.0230.10332.86
5.6.190.0030.08334.94
5.6.180.0470.08035.13
5.6.170.0270.09335.05
5.6.160.0170.14035.20
5.6.150.0100.07732.93
5.6.140.0230.08332.73
5.6.130.0070.07732.85
5.6.120.0130.11035.72
5.6.110.0200.12335.78
5.6.100.0130.10735.76
5.6.90.0130.11735.83
5.6.80.0170.11735.21
5.5.350.0270.11735.30
5.5.340.0100.14032.75
5.5.330.0200.08734.98
5.5.320.0430.12034.84
5.5.310.0400.09734.70
5.5.300.0170.11732.75
5.5.290.0130.09732.79
5.5.280.0170.12335.65
5.5.270.0100.13735.72
5.5.260.0230.13035.45
5.5.250.0230.11035.39
5.5.240.0200.12335.08
5.4.450.0330.11334.30
5.4.440.0770.11034.28
5.4.430.0530.11334.14
5.4.420.0370.12033.84
5.4.410.0130.11033.96
5.4.400.0130.12033.80
5.4.390.0270.11333.55
5.4.380.0470.14333.28
5.4.370.0530.16033.32
5.4.360.0500.12733.29
5.4.350.0430.18333.51
5.4.340.0470.16033.27
5.4.320.0170.11027.26
5.4.310.0110.09827.26
5.4.300.0130.11727.26
5.4.290.0140.12327.25
5.4.280.0140.12427.16
5.4.270.0140.11827.16
5.4.260.0250.11827.16
5.4.250.0100.10527.15
5.4.240.0140.10827.15
5.4.230.0100.10927.14
5.4.220.0120.11327.15
5.4.210.0150.10927.14
5.4.200.0080.11127.15
5.4.190.0110.09427.14
5.4.180.0080.10827.14
5.4.170.0090.10027.15
5.4.160.0090.10127.15
5.4.150.0140.09027.15
5.4.140.0120.09526.83
5.4.130.0070.09626.82
5.4.120.0080.09726.77
5.4.110.0070.09626.77
5.4.100.0140.09126.77
5.4.90.0070.09626.77
5.4.80.0060.10026.77
5.4.70.0090.10326.77
5.4.60.0110.10626.77
5.4.50.0110.11526.77
5.4.40.0200.08526.76
5.4.30.0180.08526.73
5.4.20.0140.09126.76
5.4.10.0150.08426.75
5.4.00.0090.09326.24
5.3.290.0120.09827.23
5.3.280.0110.09527.16
5.3.270.0110.09827.17
5.3.260.0120.10527.16
5.3.250.0130.10127.16
5.3.240.0170.10227.16
5.3.230.0110.12527.16
5.3.220.0160.12127.13
5.3.210.0200.11727.12
5.3.200.0170.11627.12
5.3.190.0120.12127.12
5.3.180.0150.12227.12
5.3.170.0190.12627.12
5.3.160.0140.09627.12
5.3.150.0120.10027.12
5.3.140.0120.09627.11
5.3.130.0050.10127.11
5.3.120.0090.10427.10
5.3.110.0100.09427.11
5.3.100.0070.10026.59
5.3.90.0080.10626.58
5.3.80.0150.11326.57
5.3.70.0110.09726.57
5.3.60.0090.09326.55
5.3.50.0100.09226.50
5.3.40.0090.09626.50
5.3.30.0120.11926.46
5.3.20.0090.09126.24
5.3.10.0090.09226.20
5.3.00.0110.09726.19
5.2.170.0110.08322.91
5.2.160.0090.08222.91
5.2.150.0090.08622.91
5.2.140.0070.09622.91
5.2.130.0120.08422.87
5.2.120.0100.09222.87
5.2.110.0080.09622.87
5.2.100.0090.09622.87
5.2.90.0090.10422.87
5.2.80.0130.10122.86
5.2.70.0130.09922.86
5.2.60.0090.10422.82
5.2.50.0110.10522.92
5.2.40.0100.08922.89
5.2.30.0120.08422.87
5.2.20.0080.09022.86
5.2.10.0080.08322.78
5.2.00.0090.07422.64
5.1.60.0050.08226.46
5.1.50.0140.07126.46
5.1.40.0110.08326.44
5.1.30.0090.08526.79
5.1.20.0120.08226.81
5.1.10.0080.08626.54
5.1.00.0070.08326.53
5.0.50.0090.07725.02
5.0.40.0080.07624.87
5.0.30.0070.08524.68
5.0.20.0080.07424.66
5.0.10.0090.07624.63
5.0.00.0090.09624.63
4.4.90.0060.07023.05
4.4.80.0080.06723.03
4.4.70.0050.07223.03
4.4.60.0090.07123.03
4.4.50.0120.08623.05
4.4.40.0130.10023.04
4.4.30.0110.08923.04
4.4.20.0170.07723.10
4.4.10.0130.07423.11
4.4.00.0090.08523.07
4.3.110.0130.08222.97
4.3.100.0070.07222.96
4.3.90.0040.07322.95
4.3.80.0110.08622.95
4.3.70.0060.07622.94
4.3.60.0090.06922.95
4.3.50.0090.07422.93
4.3.40.0060.08522.90
4.3.30.0130.06321.71
4.3.20.0050.07221.68
4.3.10.0020.07521.64
4.3.00.0100.07722.79

preferences:
42.46 ms | 401 KiB | 5 Q