3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $arr = array(); $arr2 = array(); $time = microtime(true); while($i < 100000) { $i++; $arr[] = $i; } $time = microtime(true) - $time; echo 'took ' . number_format($time, 3)."\n"; $time = microtime(true); $i=0; while($i < 100000) { $i++; array_push($arr2, $i); } $time = microtime(true) - $time; echo 'took ' . number_format($time, 3)."\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.0040.01829.28
7.1.70.0100.00627.13
7.1.60.0070.03527.38
7.1.50.0150.03827.14
7.1.00.0030.04032.27
7.0.200.2010.02324.27
7.0.140.0070.09032.16
7.0.60.0070.09027.90
7.0.50.0030.08025.64
7.0.40.0070.10026.88
7.0.30.0800.08026.58
7.0.20.0530.07026.55
7.0.10.0030.07326.84
7.0.00.0030.05326.77
5.6.280.0130.12349.27
5.6.210.0170.12748.75
5.6.200.0030.08746.15
5.6.190.0200.13048.38
5.6.180.0400.11348.50
5.6.170.0270.08348.62
5.6.160.0100.08048.68
5.6.150.0070.07346.38
5.6.140.0330.10746.39
5.6.130.0100.07346.14
5.6.120.0070.08349.27
5.6.110.0170.13049.22
5.6.100.0230.11749.19
5.6.90.0200.12049.21
5.6.80.0200.13048.73
5.5.350.0370.11348.63
5.5.340.0130.13046.11
5.5.330.0130.09048.35
5.5.320.0130.11748.35
5.5.310.0400.10348.28
5.5.300.0170.09346.16
5.5.290.0270.09046.16
5.5.280.0130.10749.20
5.5.270.0170.13349.05
5.5.260.0170.10748.97
5.5.250.0400.10348.69
5.5.240.0430.11748.26
5.4.450.0130.07347.54
5.4.440.0070.11747.66
5.4.430.0130.07347.29
5.4.420.0070.08747.53
5.4.410.0170.11747.43
5.4.400.0200.10747.08
5.4.390.0200.11347.20
5.4.380.0330.11047.35
5.4.370.0030.10047.25
5.4.360.0170.11347.08
5.4.350.0330.11747.37
5.4.340.0170.10747.28
5.4.320.0300.08346.93
5.4.310.0070.12347.14
5.4.300.0170.06747.27
5.4.290.0200.06047.38
5.4.280.0200.06347.27
5.4.270.0270.07046.90
5.4.260.0200.08347.24
5.4.250.0300.05747.23
5.4.240.0230.10347.24
5.4.230.0300.06347.17
5.4.220.0130.07347.45
5.4.210.0170.07046.92
5.4.200.0230.07047.17
5.4.190.0200.06747.23
5.4.180.0130.07747.22
5.4.170.0230.07347.02
5.4.160.0300.09347.36
5.4.150.0200.09047.37
5.4.140.0270.06044.43
5.4.130.0070.08744.46
5.4.120.0230.06044.43
5.4.110.0200.07044.43
5.4.100.0130.08744.52
5.4.90.0230.11044.59
5.4.80.0200.07044.57
5.4.70.0230.08344.51
5.4.60.0230.07744.50
5.4.50.0170.12044.37
5.4.40.0030.10344.30
5.4.30.0170.07744.39
5.4.20.0100.09744.59
5.4.10.0200.11744.46
5.4.00.0170.07343.90
5.3.290.0200.13042.24
5.3.280.0200.11742.12
5.3.270.0230.07342.08
5.3.260.0270.09042.27
5.3.250.0230.07042.29
5.3.240.0230.07342.19
5.3.230.0100.08042.29
5.3.220.0170.07342.23
5.3.210.0030.08342.11
5.3.200.0130.06742.12
5.3.190.0100.12042.14
5.3.180.0130.08042.12
5.3.170.0130.12742.04
5.3.160.0230.08342.14
5.3.150.0170.07042.09
5.3.140.0070.11042.00
5.3.130.0130.12742.07
5.3.120.0300.05742.03
5.3.110.0100.11042.09
5.3.100.0100.08041.50
5.3.90.0270.12341.92
5.3.80.0130.10341.52
5.3.70.0100.12341.46
5.3.60.0300.10041.63
5.3.50.0100.08741.35
5.3.40.0130.07041.41
5.3.30.0000.10741.28
5.3.20.0130.08341.19
5.3.10.0130.11041.46
5.3.00.0100.09041.47
5.2.170.0100.12037.36
5.2.160.0270.10337.25
5.2.150.0030.10737.22
5.2.140.0200.11337.36
5.2.130.0130.08737.28
5.2.120.0070.11737.21
5.2.110.0030.07337.28
5.2.100.0070.08337.43
5.2.90.0100.12037.21
5.2.80.0100.11337.28
5.2.70.0270.07337.19
5.2.60.0170.11037.09
5.2.50.0130.08737.26
5.2.40.0200.12337.20
5.2.30.0130.09737.34
5.2.20.0100.07737.16
5.2.10.0030.06737.07
5.2.00.0230.09337.05
5.1.60.0130.12045.44
5.1.50.0200.13745.63
5.1.40.0230.07045.38
5.1.30.0200.11345.78
5.1.20.0100.08045.84
5.1.10.0300.12345.40
5.1.00.0100.08045.47
5.0.50.0270.13044.03
5.0.40.0070.10043.99
5.0.30.0130.14743.71
5.0.20.0170.13743.72
5.0.10.0030.13343.86
5.0.00.0100.15043.77
4.4.90.0130.13041.49
4.4.80.0230.11341.47
4.4.70.0300.11341.38
4.4.60.0070.13741.42
4.4.50.0170.09041.41
4.4.40.0100.14741.49
4.4.30.0200.12041.46
4.4.20.0100.08341.45
4.4.10.0130.10341.52
4.4.00.0230.08041.49
4.3.110.0130.13741.32
4.3.100.0200.11741.39
4.3.90.0030.08741.45
4.3.80.0130.10041.44
4.3.70.0170.07041.38
4.3.60.0170.08041.34
4.3.50.0200.06741.39
4.3.40.0170.12741.11
4.3.30.0070.12739.93
4.3.20.0330.12039.95
4.3.10.0170.12739.80
4.3.00.0130.11339.86

preferences:
30.63 ms | 401 KiB | 5 Q