3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 1000000; $time = microtime(true); for ($i = 0; $i < $count; $i++) { $item = array(); } $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.0140.01715.83
7.3.00.0200.02516.02
7.2.130.0030.03316.41
7.2.120.0110.02816.38
7.2.110.0190.02516.07
7.2.100.0280.02316.97
7.2.90.0140.02716.64
7.2.80.0130.02316.04
7.2.70.0070.03116.26
7.2.60.0060.03216.34
7.2.50.0100.03016.20
7.2.40.0070.03016.61
7.2.30.0100.03416.11
7.2.20.0130.03216.46
7.2.10.0120.02216.23
7.2.00.0100.02518.09
7.1.250.0130.05415.33
7.1.70.0030.02017.09
7.1.60.0040.04219.46
7.1.50.0070.02416.69
7.1.00.0100.09722.57
7.0.200.0030.03716.73
7.0.140.0000.12721.97
7.0.100.0130.06719.93
7.0.90.0030.06320.02
7.0.80.0100.04719.93
7.0.70.0130.06319.89
7.0.60.0270.07319.98
7.0.50.0070.06720.31
7.0.40.0000.06020.04
7.0.30.0070.06320.15
7.0.20.0170.05320.13
7.0.10.0200.05020.14
7.0.00.0000.07020.14
5.6.280.0070.16321.10
5.6.250.0100.09720.59
5.6.240.0100.08320.57
5.6.230.0030.09020.71
5.6.220.0030.10020.64
5.6.210.0100.08020.73
5.6.200.0030.09020.96
5.6.190.0100.07021.17
5.6.180.0030.11320.96
5.6.170.0070.08021.14
5.6.160.0130.08021.02
5.6.150.0030.09020.99
5.6.140.0170.11721.16
5.6.130.0100.13021.11
5.6.120.0070.08721.07
5.6.110.0100.17321.10
5.6.100.0100.11020.99
5.6.90.0030.10321.11
5.6.80.0070.15320.47
5.6.70.0100.12320.48
5.6.60.0070.13320.40
5.6.50.0200.09020.52
5.6.40.0070.20720.33
5.6.30.0070.13320.45
5.6.20.0070.15320.27
5.6.10.0130.14320.29
5.6.00.0070.13320.38
5.5.380.0000.08320.55
5.5.370.0000.07720.34
5.5.360.0030.07320.33
5.5.350.0000.08020.42
5.5.340.0100.08320.94
5.5.330.0100.08320.86
5.5.320.0030.09020.87
5.5.310.0100.07720.61
5.5.300.0000.08020.93
5.5.290.0030.08720.75
5.5.280.0130.17720.77
5.5.270.0000.09320.79
5.5.260.0030.16320.63
5.5.250.0030.12720.72
5.5.240.0030.14320.27
5.5.230.0100.16720.24
5.5.220.0070.15020.29
5.5.210.0070.16320.21
5.5.200.0130.12720.07
5.5.190.0070.16320.14
5.5.180.0030.15720.24
5.5.160.0030.13320.15
5.5.150.0000.08720.23
5.5.140.0030.12320.20
5.5.130.0100.12720.23
5.5.120.0000.13720.17
5.5.110.0030.11720.26
5.5.100.0030.08720.02
5.5.90.0100.11320.10
5.5.80.0070.11720.17
5.5.70.0030.14020.07
5.5.60.0100.12720.14
5.5.50.0100.14720.14
5.5.40.0070.12720.07
5.5.30.0100.12320.08
5.5.20.0200.09720.02
5.5.10.0130.11020.03
5.5.00.0070.08720.00
5.4.450.0100.10719.39
5.4.440.0100.13319.43
5.4.430.0130.09719.35
5.4.420.0100.13019.40
5.4.410.0000.14719.29
5.4.400.0030.15718.97
5.4.390.0130.13319.08
5.4.380.0070.12718.88
5.4.370.0070.14018.98
5.4.360.0070.11019.03
5.4.350.0000.12718.96
5.4.340.0130.13019.08
5.4.320.0070.07719.02
5.4.310.0130.11019.03
5.4.300.0030.10019.07
5.4.290.0030.12718.98
5.4.280.0070.13319.06
5.4.270.0070.12318.96
5.4.260.0070.13319.02
5.4.250.0100.10719.10
5.4.240.0070.16019.07
5.4.230.0070.11018.84
5.4.220.0070.09719.05
5.4.210.0000.08319.05
5.4.200.0030.10019.09
5.4.190.0070.08019.11
5.4.180.0130.07319.05
5.4.170.0070.13718.87
5.4.160.0030.15019.04
5.4.150.0100.11319.14
5.4.140.0030.15016.20
5.4.130.0030.16316.32
5.4.120.0030.11316.31
5.4.110.0030.14016.41
5.4.100.0030.08016.42
5.4.90.0100.11716.43
5.4.80.0100.14016.31
5.4.70.0000.13316.25
5.4.60.0100.07016.25
5.4.50.0100.10016.30
5.4.40.0000.10016.48
5.4.30.0000.08316.26
5.4.20.0000.11716.35
5.4.10.0030.11716.17
5.4.00.0070.12015.70
5.3.290.0030.14714.61
5.3.280.0070.17714.52
5.3.270.0000.11714.51
5.3.260.0130.14714.55
5.3.250.0100.09314.57
5.3.240.0030.14714.53
5.3.230.0030.10714.58
5.3.220.0030.17714.61
5.3.210.0030.10714.56
5.3.200.0100.15714.50
5.3.190.0030.18314.49
5.3.180.0170.15314.53
5.3.170.0030.10314.48
5.3.160.0100.10014.55
5.3.150.0030.14014.53
5.3.140.0070.16014.50
5.3.130.0070.15314.51
5.3.120.0070.11314.54
5.3.110.0170.14314.61
5.3.100.0070.16714.00
5.3.90.0070.17714.02
5.3.80.0100.15314.07
5.3.70.0100.13714.00
5.3.60.0130.15313.96
5.3.50.0070.17313.92
5.3.40.0100.10313.91
5.3.30.0070.15713.91
5.3.20.0030.16313.55
5.3.10.0000.10313.51
5.3.00.0170.08713.42
5.2.170.0030.18011.73
5.2.160.0000.11011.73
5.2.150.0070.11011.73
5.2.140.0000.18711.73
5.2.130.0030.19011.73
5.2.120.0030.12711.73
5.2.110.0030.18311.73
5.2.100.0030.17011.73
5.2.90.0070.14011.73
5.2.80.0100.15311.73
5.2.70.0070.16711.73
5.2.60.0000.17311.73
5.2.50.0100.22711.73
5.2.40.0100.21311.73
5.2.30.0030.16311.73
5.2.20.0070.21311.73
5.2.10.0000.15711.73
5.2.00.0100.21711.73
5.1.60.0070.16011.73
5.1.50.0000.10311.73
5.1.40.0030.12711.73
5.1.30.0000.11011.73
5.1.20.0070.11311.73
5.1.10.0070.14711.73
5.1.00.0000.12011.73
5.0.50.0030.26011.73
5.0.40.0000.26311.73
5.0.30.0030.25711.73
5.0.20.0070.29011.73
5.0.10.0030.29011.73
5.0.00.0000.25711.73
4.4.90.0030.28011.73
4.4.80.0070.31711.73
4.4.70.0000.29311.73
4.4.60.0030.26311.73
4.4.50.0000.26711.73
4.4.40.0030.29711.73
4.4.30.0000.30311.73
4.4.20.0000.29711.73
4.4.10.0000.25011.73
4.4.00.0030.32011.73
4.3.110.0030.23711.73
4.3.100.0000.30711.73
4.3.90.0030.29311.73
4.3.80.0000.29711.73
4.3.70.0030.31011.73
4.3.60.0100.28311.73
4.3.50.0000.28011.73
4.3.40.0100.25011.73
4.3.30.0000.27711.73
4.3.20.0000.30311.73
4.3.10.0030.31711.73
4.3.00.0030.29011.73

preferences:
36.04 ms | 401 KiB | 5 Q