3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 200000; $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) {} $spentTime = microtime(true) - $time; echo number_format($spentTime, 3) . ' seconds';

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.0000.01619.39
7.1.70.0030.00617.18
7.1.60.0100.01919.46
7.1.50.0070.02216.89
7.1.00.0030.08022.30
7.0.200.0060.00316.48
7.0.140.0070.07721.95
7.0.60.0070.07720.04
7.0.50.0200.07317.89
7.0.40.0030.06019.90
7.0.30.0370.07720.39
7.0.20.0300.08020.13
7.0.10.0070.09320.04
7.0.00.0070.08720.20
5.6.280.0070.07720.80
5.6.210.0100.08320.50
5.6.200.0130.08318.19
5.6.190.0130.05320.60
5.6.180.0300.07320.47
5.6.170.0330.08020.42
5.6.160.0070.09320.54
5.6.150.0170.08018.11
5.6.140.0030.07318.11
5.6.130.0070.08718.07
5.6.120.0030.04721.03
5.6.110.0000.04721.01
5.6.100.0070.09021.11
5.6.90.0070.06720.97
5.6.80.0070.08020.48
5.5.350.0100.06720.43
5.5.340.0130.08717.89
5.5.330.0100.05720.19
5.5.320.1470.05320.36
5.5.310.0330.08020.50
5.5.300.0070.08717.91
5.5.290.0070.09017.90
5.5.280.0030.09320.77
5.5.270.0030.05720.63
5.5.260.0130.08720.79
5.5.250.0030.08720.58
5.5.240.0100.08320.07
5.4.450.0470.04019.55
5.4.440.0730.04019.46
5.4.430.0970.04319.45
5.4.420.0230.05719.52
5.4.410.0270.03719.11
5.4.400.0170.05019.07
5.4.390.0630.05319.22
5.4.380.0570.04319.13
5.4.370.0530.04718.79
5.4.360.0430.04719.06
5.4.350.0300.04719.13
5.4.340.0800.03319.20
5.4.320.0370.04719.07
5.4.310.0630.05319.07
5.4.300.0500.04719.04
5.4.290.0430.04019.22
5.4.280.0530.04718.99
5.4.270.0500.04019.30
5.4.260.0530.04719.07
5.4.250.0770.04019.12
5.4.240.0600.04719.21
5.4.230.0700.04018.78
5.4.220.1000.05319.14
5.4.210.0630.05718.89
5.4.200.0870.04718.88
5.4.190.0670.04018.98
5.4.180.0600.03718.87
5.4.170.0430.04018.78
5.4.160.0330.05318.77
5.4.150.0470.04319.16
5.4.140.0570.04316.44
5.4.130.0470.05316.22
5.4.120.0370.05016.26
5.4.110.0600.04716.37
5.4.100.0330.03716.21
5.4.90.0430.04316.37
5.4.80.0600.04316.36
5.4.70.0270.04716.48
5.4.60.0470.05016.45
5.4.50.0230.04016.43
5.4.40.0130.03716.34
5.4.30.0300.04016.21
5.4.20.0530.03316.45
5.4.10.0400.04316.46
5.4.00.0300.04016.21
5.3.290.0430.04716.21
5.3.280.0430.05016.21
5.3.270.0570.04316.21
5.3.260.0530.05716.21
5.3.250.0200.05016.21
5.3.240.0770.04716.21
5.3.230.0770.04716.21
5.3.220.0630.04016.21
5.3.210.0800.04016.21
5.3.200.0270.05016.21
5.3.190.0400.05016.21
5.3.180.0300.03716.21
5.3.170.0830.03716.21
5.3.160.0400.04016.21
5.3.150.0400.05316.21
5.3.140.0430.04316.21
5.3.130.0470.04316.21
5.3.120.0600.03316.21
5.3.110.0430.05016.21
5.3.100.0770.06316.21
5.3.90.0330.04316.21
5.3.80.0330.04716.21
5.3.70.0600.03716.21
5.3.60.0500.04316.21
5.3.50.0370.05316.21
5.3.40.0230.05316.21
5.3.30.0630.04016.21
5.3.20.0870.03316.21
5.3.10.0700.03716.21
5.3.00.0500.03716.21
5.2.170.0600.05016.21
5.2.160.0570.04016.21
5.2.150.0230.04016.21
5.2.140.0130.03716.21
5.2.130.0470.04316.21
5.2.120.0200.04316.21
5.2.110.0330.03716.21
5.2.100.0500.03016.21
5.2.90.0700.03316.21
5.2.80.0600.04316.21
5.2.70.0570.05316.21
5.2.60.0430.04716.21
5.2.50.0330.04316.21
5.2.40.0270.03316.21
5.2.30.0170.04016.21
5.2.20.0470.03316.21
5.2.10.0170.04016.21
5.2.00.0230.04316.21
5.1.60.0400.04016.21
5.1.50.0200.03016.21
5.1.40.0330.03316.21
5.1.30.0370.03316.21
5.1.20.0370.04016.21
5.1.10.0400.03716.21
5.1.00.0030.03016.21
5.0.50.0070.04316.21
5.0.40.0100.05016.21
5.0.30.0030.04316.21
5.0.20.0030.05016.21
5.0.10.0300.05016.21
5.0.00.0130.07716.21
4.4.90.0130.05016.21
4.4.80.0200.04316.21
4.4.70.0070.03716.21
4.4.60.0230.04716.21
4.4.50.0070.04316.21
4.4.40.0270.05316.21
4.4.30.0000.04016.21
4.4.20.0030.04716.21
4.4.10.0200.05716.21
4.4.00.0030.05716.21
4.3.110.0200.03316.21
4.3.100.0070.03016.21
4.3.90.0200.06316.21
4.3.80.0130.05716.21
4.3.70.0170.04716.21
4.3.60.0070.04316.21
4.3.50.0170.05316.21
4.3.40.0100.05716.21
4.3.30.0070.04316.21
4.3.20.0100.04016.21
4.3.10.0130.04316.21
4.3.00.0130.02716.21

preferences:
51.36 ms | 400 KiB | 5 Q