3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); foreach (range(0, 10000) as $i) { } printf ('%.4f'.PHP_EOL, microtime(true) - $start); $start = microtime(true); for ($i = 0; $i < 10000; $i++) { } printf ('%.4f'.PHP_EOL, microtime(true) - $start);

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.4.00.0040.01115.14
7.3.120.0130.00315.06
7.3.110.0070.00614.83
7.3.100.0080.00515.12
7.3.90.0080.00415.09
7.3.80.0060.00815.17
7.3.70.0070.00815.03
7.3.60.0100.00315.19
7.3.50.0010.01215.08
7.3.40.0070.00715.05
7.3.30.0050.00514.98
7.3.20.0060.00516.63
7.3.10.0050.00916.70
7.3.00.0110.00416.67
7.2.250.0090.01215.23
7.2.240.0050.01115.40
7.2.230.0060.01215.46
7.2.220.0050.01115.45
7.2.210.0100.00515.43
7.2.200.0050.01115.14
7.2.190.0080.00715.14
7.2.180.0060.00715.32
7.2.170.0030.01315.35
7.2.160.0000.01415.32
7.2.150.0070.01016.79
7.2.140.0030.00916.71
7.2.130.0060.00617.10
7.2.120.0070.01016.62
7.2.110.0070.00316.96
7.2.100.0040.00816.95
7.2.90.0060.00616.80
7.2.80.0130.00316.78
7.2.70.0040.01216.93
7.2.60.0100.00716.73
7.2.50.0060.00916.93
7.2.40.0100.00616.93
7.2.30.0000.01616.66
7.2.20.0000.01316.89
7.2.10.0040.01116.96
7.2.00.0060.00717.96
7.1.330.0050.00815.75
7.1.320.0050.00915.80
7.1.310.0030.01015.75
7.1.300.0060.00815.91
7.1.290.0070.00715.59
7.1.280.0080.00515.72
7.1.270.0050.00815.71
7.1.260.0090.00615.79
7.1.250.0070.00715.42
7.1.70.0030.00517.12
7.1.60.0070.01919.24
7.1.50.0110.01116.64
7.1.00.0070.07322.40
7.0.200.0080.00816.81
7.0.140.0070.06722.09
7.0.60.0000.04320.14
7.0.50.0070.05318.12
7.0.40.0030.09020.21
7.0.30.0400.07320.09
7.0.20.0170.04320.02
7.0.10.0300.07720.33
7.0.00.0070.03720.13
5.6.280.0100.07022.32
5.6.210.0100.07721.91
5.6.200.0100.08719.41
5.6.190.0100.06721.74
5.6.180.3830.04321.57
5.6.170.0170.04021.55
5.6.160.0100.08721.59
5.6.150.0030.04719.44
5.6.140.0070.08319.41
5.6.130.0130.07019.21
5.6.120.0130.06022.25
5.6.110.0030.04722.24
5.6.100.0030.09022.25
5.6.90.0000.09022.40
5.6.80.0130.05321.66
5.6.70.3630.03321.76
5.5.350.0000.08721.70
5.5.340.0130.07319.12
5.5.330.0030.05321.58
5.5.320.0030.04021.35
5.5.310.0330.07721.32
5.5.300.0100.08019.16
5.5.290.0030.05319.22
5.5.280.0000.05022.08
5.5.270.0000.05722.04
5.5.260.0070.05722.15
5.5.250.0130.07322.07
5.5.240.0100.05721.44
5.4.450.0130.04320.36
5.4.440.0670.05320.46
5.4.430.0430.03720.61
5.4.420.0700.03720.79
5.4.410.0170.05020.00
5.4.400.0130.05019.79
5.4.390.0130.06019.96
5.4.380.0130.05719.79
5.4.370.0130.05320.00
5.4.360.0170.05019.92
5.4.350.0170.05319.89
5.4.340.0130.05719.95
5.4.320.0080.04313.74
5.4.310.0080.05313.73
5.4.300.0030.04013.74
5.4.290.0070.04313.73
5.4.280.0090.03413.60
5.4.270.0080.03613.60
5.4.260.0090.03613.60
5.4.250.0070.04013.60
5.4.240.0110.03913.61
5.4.230.0060.04013.59
5.4.220.0050.03913.60
5.4.210.0080.03913.59
5.4.200.0060.04313.60
5.4.190.0050.03813.59
5.4.180.0110.03413.59
5.4.170.0050.03913.60
5.4.160.0060.03813.60
5.4.150.0070.03713.59
5.4.140.0050.04113.28
5.4.130.0030.04013.27
5.4.120.0080.03613.23
5.4.110.0100.03513.23
5.4.100.0100.04213.22
5.4.90.0050.04413.22
5.4.80.0070.03813.22
5.4.70.0060.03713.22
5.4.60.0050.04013.22
5.4.50.0060.04113.22
5.4.40.0090.03613.21
5.4.30.0100.03413.20
5.4.20.0070.03613.20
5.4.10.0080.03513.21
5.4.00.0070.04312.69
5.3.290.0080.05414.08
5.3.280.0070.04413.99
5.3.270.0080.04114.00
5.3.260.0120.03814.01
5.3.250.0080.04814.01
5.3.240.0050.04214.01
5.3.230.0060.04014.00
5.3.220.0090.03813.97
5.3.210.0100.03713.97
5.3.200.0090.03813.96
5.3.190.0080.05213.96
5.3.180.0110.05113.96
5.3.170.0090.05213.96
5.3.160.0090.03813.96
5.3.150.0090.03613.96
5.3.140.0090.03613.96
5.3.130.0060.04213.95
5.3.120.0070.04013.95
5.3.110.0060.04113.95
5.3.100.0030.04413.44
5.3.90.0080.04013.43
5.3.80.0060.03813.41
5.3.70.0080.03613.41
5.3.60.0070.04013.39
5.3.50.0080.03713.34
5.3.40.0060.04013.34
5.3.30.0070.03713.30
5.3.20.0050.04113.08
5.3.10.0090.03513.05
5.3.00.0110.04713.03
5.2.170.0130.03410.38
5.2.160.0100.03710.53
5.2.150.0080.04010.38
5.2.140.0100.04110.38
5.2.130.0050.03110.48
5.2.120.0090.04010.34
5.2.110.0060.04210.34
5.2.100.0080.04110.34
5.2.90.0080.02810.34
5.2.80.0020.03410.34
5.2.70.0050.03310.34
5.2.60.0090.04010.28
5.2.50.0100.03210.26
5.2.40.0070.03110.23
5.2.30.0090.03010.21
5.2.20.0080.03010.20
5.2.10.0040.03210.13
5.2.00.0050.0319.99
5.1.60.0040.0279.79
5.1.50.0050.0279.79
5.1.40.0050.0289.78
5.1.30.0060.02810.12
5.1.20.0050.03210.14
5.1.10.0080.0299.88
5.1.00.0070.0339.87
5.0.50.0060.0248.34
5.0.40.0030.0248.21
5.0.30.0020.0388.02
5.0.20.0060.0227.99
5.0.10.0030.0257.97
5.0.00.0040.0347.96
4.4.90.0030.0186.39
4.4.80.0020.0196.38
4.4.70.0050.0166.37
4.4.60.0030.0196.38
4.4.50.0010.0206.39
4.4.40.0010.0316.38
4.4.30.0040.0206.38
4.4.20.0020.0216.44
4.4.10.0030.0216.44
4.4.00.0040.0286.41
4.3.110.0040.0196.32
4.3.100.0050.0186.31
4.3.90.0030.0206.36
4.3.80.0050.0286.29
4.3.70.0070.0166.28
4.3.60.0060.0166.29
4.3.50.0050.0196.29
4.3.40.0040.0266.24
4.3.30.0000.0225.05
4.3.20.0050.0185.03
4.3.10.0040.0234.99
4.3.00.0030.02313.34

preferences:
37.25 ms | 401 KiB | 5 Q