3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1,100000); $start = microtime(true); foreach ($array as $key => $value) { $array[$key] += 1; // Invokes COW } $end = microtime(true); $time = $end - $start; printf("Completed in %.6f seconds\n", $time);

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.3.120.0100.01620.64
7.3.110.0130.00920.81
7.3.100.0120.00920.92
7.3.90.0000.02520.69
7.3.80.0070.01320.71
7.3.70.0030.01620.74
7.3.60.0100.01020.81
7.3.50.0060.00920.72
7.3.40.0090.01320.72
7.3.30.0070.01720.69
7.3.20.0100.01024.26
7.3.10.0090.01224.42
7.3.00.0000.01824.23
7.2.240.0100.02021.04
7.2.230.0140.00720.82
7.2.220.0130.01320.87
7.2.210.0070.01420.87
7.2.200.0070.01420.58
7.2.190.0130.01020.85
7.2.180.0060.01520.54
7.2.170.0060.01221.01
7.2.160.0150.00920.88
7.2.150.0030.01624.61
7.2.140.0110.01124.81
7.2.130.0070.01324.73
7.2.120.0150.00924.46
7.2.110.0060.01524.68
7.2.100.0130.00624.45
7.2.90.0120.00924.65
7.2.80.0070.01024.33
7.2.70.0040.01924.75
7.2.60.0060.01524.91
7.2.50.0180.01124.84
7.2.40.0030.01724.70
7.2.30.0000.02024.70
7.2.20.0060.01324.70
7.2.10.0180.00624.50
7.2.00.0050.01725.80
7.1.330.0130.01323.64
7.1.320.0020.02323.43
7.1.310.0060.01023.71
7.1.300.0060.01623.66
7.1.290.0030.02023.79
7.1.280.0040.01223.68
7.1.270.0110.01123.73
7.1.260.0070.01323.82
7.1.250.0110.01123.74
7.1.70.0090.01524.94
7.1.60.0100.00725.28
7.1.50.0090.01524.70
7.1.00.0030.03730.15
7.0.200.0580.00620.92
7.0.140.0030.07730.10
7.0.120.0070.07030.09
7.0.60.0170.08025.88
7.0.50.0170.08023.64
7.0.40.0070.09025.52
7.0.30.0430.05025.70
7.0.20.0500.08025.58
7.0.10.0070.06025.83
7.0.00.0200.04325.90
5.6.280.0230.10049.29
5.6.210.0200.06348.92
5.6.200.0230.11746.40
5.6.190.0100.12048.50
5.6.180.0330.10048.67
5.6.170.0330.06348.48
5.6.160.0200.05348.51
5.6.150.0200.05346.40
5.6.140.0130.11746.34
5.6.130.0200.10746.32
5.6.120.0270.11749.22
5.6.110.0230.11749.25
5.6.100.0130.12749.19
5.6.90.0230.11049.09
5.6.80.0200.09748.70
5.5.350.0200.12048.62
5.5.340.0200.11046.10
5.5.330.0270.11348.32
5.5.320.0500.10748.26
5.5.310.0370.11748.31
5.5.300.0200.08746.15
5.5.290.0030.08346.14
5.5.280.0170.11348.94
5.5.270.0230.06349.00
5.5.260.0130.08048.97
5.5.250.0130.10748.87
5.5.240.0000.12348.40
5.4.450.0270.11047.39
5.4.440.0200.11047.46
5.4.430.0200.07347.57
5.4.420.0070.07347.57
5.4.410.0100.08047.13
5.4.400.0270.10047.24
5.4.390.0330.09747.04
5.4.380.0130.12347.30
5.4.370.0330.10047.27
5.4.360.0130.09347.03
5.4.350.0170.06347.05
5.4.340.0200.06046.96
5.4.320.0200.07347.16
5.4.310.0100.07347.31
5.4.300.0170.11046.93
5.4.290.0130.06347.05
5.4.280.0130.07347.29
5.4.270.0230.08747.25
5.4.260.0030.07047.29
5.4.250.0170.09347.13
5.4.240.0130.12046.93
5.4.230.0300.09347.32
5.4.220.0170.11047.16
5.4.210.0230.07347.25
5.4.200.0070.11747.03
5.4.190.0270.10347.05
5.4.180.0270.09347.32
5.4.170.0200.10347.09
5.4.160.0200.07747.04
5.4.150.0170.08047.18
5.4.140.0270.09044.52
5.4.130.0100.06744.46
5.4.120.0100.06344.50
5.4.110.0200.11044.53
5.4.100.0230.11344.56
5.4.90.0170.09744.58
5.4.80.0170.10744.49
5.4.70.0130.11344.43
5.4.60.0170.09044.41
5.4.50.0130.10344.57
5.4.40.0230.10744.41
5.4.30.0230.06744.38
5.4.20.0300.09344.34
5.4.10.0230.07344.57
5.4.00.0070.11343.88
5.3.290.0200.11342.11
5.3.280.0070.07042.07
5.3.270.0300.10342.16
5.3.260.0170.09342.17
5.3.250.0170.09742.08
5.3.240.0170.10342.08
5.3.230.0130.06042.06
5.3.220.0100.06342.58
5.3.210.0170.08042.04
5.3.200.0230.10742.01
5.3.190.0100.11742.02
5.3.180.0100.11742.06
5.3.170.0230.05341.98
5.3.160.0170.09742.02
5.3.150.0200.10341.94
5.3.140.0270.09041.98
5.3.130.0170.06342.10
5.3.120.0200.11042.54
5.3.110.0100.08042.00
5.3.100.0100.11741.92
5.3.90.0100.07741.48
5.3.80.0070.08741.43
5.3.70.0130.10341.34
5.3.60.0230.07341.40
5.3.50.0130.11341.35
5.3.40.0170.11341.34
5.3.30.0270.09741.31
5.3.20.0230.10341.09
5.3.10.0130.10741.14
5.3.00.0200.08741.05
5.2.170.0200.10037.32
5.2.160.0200.09037.26
5.2.150.0230.09737.27
5.2.140.0170.06337.30
5.2.130.0230.05737.25
5.2.120.0100.10737.36
5.2.110.0170.05337.36
5.2.100.0170.10037.19
5.2.90.0130.09337.21
5.2.80.0130.10737.27
5.2.70.0030.07337.19
5.2.60.0130.10337.52
5.2.50.0130.10736.97
5.2.40.0100.08736.99
5.2.30.0200.08336.94
5.2.20.0130.12337.00
5.2.10.0170.08736.87
5.2.00.0330.08036.78
5.1.60.0200.06045.15
5.1.50.0130.06745.09
5.1.40.0170.09045.04
5.1.30.0170.12045.57
5.1.20.0200.10045.51
5.1.10.0200.10045.27
5.1.00.0200.10345.30
5.0.50.0200.12743.60
5.0.40.0170.08743.58
5.0.30.0130.11043.29
5.0.20.0170.07043.34
5.0.10.0100.09043.38
5.0.00.0100.09343.31
4.4.90.0270.11041.09
4.4.80.0200.08341.08
4.4.70.0200.11741.13
4.4.60.0200.11341.16
4.4.50.0030.08041.03
4.4.40.0130.12041.15
4.4.30.0170.07041.12
4.4.20.0130.10041.16
4.4.10.0100.12741.23
4.4.00.0170.08041.11
4.3.110.0170.10341.00
4.3.100.0130.10341.08
4.3.90.0100.07341.03
4.3.80.0100.12041.00
4.3.70.0170.10341.10
4.3.60.0130.11040.98
4.3.50.0200.11041.07
4.3.40.0130.10340.94
4.3.30.0030.07739.75
4.3.20.0130.11339.74
4.3.10.0130.11739.77
4.3.00.0200.11039.68

preferences:
36.37 ms | 401 KiB | 5 Q