3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 200000; class ValueObject {} $time = microtime(true); $items = array(); for ($i = 0; $i < $count; $i++) { $items[] = new ValueObject(); } $spentTime = microtime(true) - $time; echo 'create array test took ' . 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.3.10.0400.03034.73
7.3.00.0230.01934.57
7.2.130.0410.02834.81
7.2.120.0350.02734.64
7.2.110.0430.03034.78
7.2.100.0690.01934.73
7.2.90.0560.02234.66
7.2.80.0560.01734.43
7.2.70.0410.03134.35
7.2.60.0460.02434.58
7.2.50.0730.01734.42
7.2.40.0500.02834.76
7.2.30.0530.02734.75
7.2.20.0590.02634.90
7.2.10.0740.01234.67
7.2.00.0280.02135.92
7.1.250.0250.04633.75
7.1.70.0030.02634.77
7.1.60.0170.04035.36
7.1.50.0730.03334.79
7.1.00.0070.10040.27
7.0.200.0110.02534.22
7.0.140.0030.10340.12
7.0.100.0100.07035.04
7.0.90.0300.08335.11
7.0.80.0330.08735.03
7.0.70.0200.11335.04
7.0.60.0470.04034.99
7.0.50.0100.05335.46
7.0.40.0270.10027.97
7.0.30.0130.07727.98
7.0.20.0100.05728.06
7.0.10.0130.05327.92
7.0.00.0130.07728.04
5.6.280.0200.13372.62
5.6.250.0270.13370.09
5.6.240.0300.13370.29
5.6.230.0470.15770.29
5.6.220.0400.12070.28
5.6.210.0270.15070.15
5.6.200.0130.10070.68
5.6.190.0100.09070.55
5.6.180.0370.12770.63
5.6.170.0130.09370.77
5.6.160.0200.08770.60
5.6.150.0200.08770.56
5.6.140.0200.08770.77
5.6.130.0200.08770.61
5.6.120.0230.08070.68
5.6.110.0070.11770.67
5.6.100.0270.08370.62
5.6.90.0100.09770.60
5.6.80.0170.08770.08
5.6.70.0130.10370.02
5.6.60.0130.13370.00
5.6.50.0130.15070.04
5.6.40.0230.15069.89
5.6.30.0330.13770.00
5.6.20.0530.07370.00
5.6.10.0300.14070.02
5.6.00.0130.10369.89
5.5.380.0430.12770.24
5.5.370.0300.13070.30
5.5.360.0500.12770.33
5.5.350.0270.12070.33
5.5.340.0130.09770.83
5.5.330.0200.09370.65
5.5.320.0030.11070.73
5.5.310.0130.09770.67
5.5.300.0300.11370.76
5.5.290.0230.11770.68
5.5.280.0070.12370.73
5.5.270.0230.09070.81
5.5.260.0230.08770.77
5.5.250.0300.08370.34
5.5.240.0230.11070.20
5.5.230.0330.15770.14
5.5.220.0270.13070.07
5.5.210.0400.12770.05
5.5.200.0130.15070.01
5.5.190.0230.16070.09
5.5.180.0400.12770.14
5.5.160.0330.13069.98
5.5.150.0300.14370.14
5.5.140.0500.11770.13
5.5.130.0230.11770.14
5.5.120.0330.16769.88
5.5.110.0300.17770.05
5.5.100.0330.11069.96
5.5.90.0230.12370.06
5.5.80.0300.12769.99
5.5.70.0170.16069.98
5.5.60.0330.11769.96
5.5.50.0200.12369.99
5.5.40.0170.13769.95
5.5.30.0370.12769.82
5.5.20.0230.12070.04
5.5.10.0300.12769.89
5.5.00.0200.12369.89
5.4.450.0070.10369.33
5.4.440.0130.09769.22
5.4.430.0170.09369.42
5.4.420.0200.09069.39
5.4.410.0200.10369.16
5.4.400.0100.08768.86
5.4.390.0100.14368.96
5.4.380.0270.14069.00
5.4.370.0330.11369.05
5.4.360.0270.14368.80
5.4.350.0330.10368.77
5.4.340.0270.13068.77
5.4.320.0170.13068.76
5.4.310.0370.12768.90
5.4.300.0300.11368.94
5.4.290.0200.14368.91
5.4.280.0200.15768.89
5.4.270.0400.11769.06
5.4.260.0370.14368.91
5.4.250.0370.13068.78
5.4.240.0200.10368.95
5.4.230.0230.12068.79
5.4.220.0370.10068.95
5.4.210.0170.11069.05
5.4.200.0300.12368.89
5.4.190.0270.13768.91
5.4.180.0270.13768.99
5.4.170.0100.15769.09
5.4.160.0330.09768.84
5.4.150.0230.08768.77
5.4.140.0170.09066.16
5.4.130.0170.09066.20
5.4.120.0400.11066.20
5.4.110.0370.10766.33
5.4.100.0400.13066.35
5.4.90.0300.11766.43
5.4.80.0170.13066.35
5.4.70.0300.11766.32
5.4.60.0270.13066.40
5.4.50.0170.14766.36
5.4.40.0370.13066.41
5.4.30.0300.14066.37
5.4.20.0300.08766.35
5.4.10.0230.13366.24
5.4.00.0430.11765.65
5.3.290.0230.10770.68
5.3.280.0200.13370.60
5.3.270.0330.13070.75
5.3.260.0270.13371.09
5.3.250.0270.14370.64
5.3.240.0230.16070.67
5.3.230.0330.09770.56
5.3.220.0100.10370.71
5.3.210.0270.16771.35
5.3.200.0300.14770.62
5.3.190.0270.12370.54
5.3.180.0270.12770.72
5.3.170.0230.11070.61
5.3.160.0300.15370.66
5.3.150.0230.14770.55
5.3.140.0130.11370.66
5.3.130.0300.15770.63
5.3.120.0430.12770.64
5.3.110.0400.13070.51
5.3.100.0370.12770.03
5.3.90.0300.09369.98
5.3.80.0300.13369.99
5.3.70.0330.14770.02
5.3.60.0330.11069.93
5.3.50.0270.14069.95
5.3.40.0230.16369.97
5.3.30.0200.16069.90
5.3.20.0270.11769.63
5.3.10.0230.14769.66
5.3.00.0270.09769.60
5.2.170.0130.16369.91
5.2.160.0300.13770.02
5.2.150.0230.10769.98
5.2.140.0230.13770.07
5.2.130.0170.15370.07
5.2.120.0470.12369.98
5.2.110.0230.10070.01
5.2.100.0200.15069.85
5.2.90.0130.13769.87
5.2.80.0230.12769.89
5.2.70.0430.13369.80
5.2.60.0370.14069.95
5.2.50.0230.11369.66
5.2.40.0170.15770.35
5.2.30.0270.12369.56
5.2.20.0300.16769.69
5.2.10.0230.12069.68
5.2.00.0200.14785.73
5.1.60.0330.117106.15
5.1.50.0430.153106.15
5.1.40.0430.163106.36
5.1.30.0530.117106.57
5.1.20.0400.157106.81
5.1.10.0330.133106.47
5.1.00.0400.147106.46
5.0.50.0470.177104.71
5.0.40.0370.160104.56
5.0.30.0200.153104.58
5.0.20.0230.187104.36
5.0.10.0430.147104.57
5.0.00.0300.173104.47
4.4.90.0300.17080.83
4.4.80.0270.13080.87
4.4.70.0300.18080.85
4.4.60.0270.16380.87
4.4.50.0270.17380.79
4.4.40.0430.15080.87
4.4.30.0200.18380.86
4.4.20.0300.16380.89
4.4.10.0200.19780.90
4.4.00.0330.12380.90
4.3.110.0370.15380.80
4.3.100.0300.14380.79
4.3.90.0400.15380.72
4.3.80.0370.18080.78
4.3.70.0130.18780.78
4.3.60.0200.17080.69
4.3.50.0300.16780.65
4.3.40.0300.17780.68
4.3.30.0170.17079.47
4.3.20.0300.17779.42
4.3.10.0270.15779.43
4.3.00.0300.17779.37

preferences:
34.17 ms | 401 KiB | 5 Q