3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 100; $start = microtime(true); $a = ''; for($i = 0; $i < $count; $i++) { $a .= 'a'; } printf("#1, result is %d, done in %f\n", $y, microtime(true) - $start); $start = microtime(true); $a = ""; for($i = 0; $i < $count; $i++) { $a .= "a"; } printf("#2, result is %d, done in %f\n", $y, 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.3.10.0110.00416.67
7.3.00.0050.01116.46
7.2.130.0060.01016.79
7.2.120.0090.00816.72
7.2.110.0080.00716.75
7.2.100.0080.00716.58
7.2.90.0080.00616.90
7.2.80.0090.00616.62
7.2.70.0100.00616.75
7.2.60.0100.00616.71
7.2.50.0060.00916.56
7.2.40.0070.01016.84
7.2.30.0100.00916.90
7.2.20.0050.01116.89
7.2.10.0100.00716.56
7.2.00.0050.01017.39
7.1.250.0080.00815.66
7.1.240.0110.00415.57
7.1.230.0000.01215.66
7.1.220.0080.00515.69
7.1.210.0070.00715.50
7.1.200.0150.00015.72
7.1.190.0040.01415.70
7.1.180.0040.00815.52
7.1.170.0110.00315.77
7.1.160.0120.00615.73
7.1.150.0000.01515.69
7.1.140.0040.00815.93
7.1.130.0030.01015.71
7.1.120.0090.00615.97
7.1.110.0040.00715.90
7.1.100.0090.00615.97
7.1.90.0110.00415.72
7.1.80.0000.01315.67
7.1.70.0070.00416.42
7.1.60.0050.01317.91
7.1.50.0040.00616.26
7.1.40.0030.00715.85
7.1.30.0080.00615.82
7.1.20.0090.00615.86
7.1.10.0070.00715.63
7.1.00.0030.02719.22
7.0.330.0040.00815.36
7.0.320.0030.00915.17
7.0.310.0060.00315.23
7.0.300.0070.01015.24
7.0.290.0040.01115.13
7.0.280.0110.00315.27
7.0.270.0040.01114.96
7.0.260.0140.00315.09
7.0.250.0070.00715.46
7.0.240.0130.00315.03
7.0.230.0090.00615.32
7.0.220.0030.01015.14
7.0.210.0080.00015.30
7.0.200.0070.00516.12
7.0.190.0100.00615.39
7.0.180.0100.00315.19
7.0.170.0060.00615.39
7.0.160.0030.01015.37
7.0.150.0100.00015.20
7.0.140.0020.04218.55
7.0.130.0070.00715.19
7.0.120.0070.01015.38
7.0.110.0080.00815.43
7.0.100.0060.00615.17
7.0.90.0120.00015.29
7.0.80.0090.00615.30
7.0.70.0120.00915.48
7.0.60.0140.03817.68
7.0.50.0160.02016.40
7.0.40.0090.04716.69
7.0.30.0150.02416.72
7.0.20.0170.02216.68
7.0.10.0150.02016.76
7.0.00.0080.04316.78
5.6.380.0070.00014.24
5.6.370.0080.00814.09
5.6.360.0040.01114.13
5.6.350.0040.01114.05
5.6.340.0070.00714.09
5.6.330.0080.00414.09
5.6.320.0070.01014.08
5.6.310.0080.00614.24
5.6.300.0110.00413.81
5.6.290.0130.00314.06
5.6.280.0070.03817.29
5.6.270.0060.00314.09
5.6.260.0040.00813.87
5.6.250.0040.00414.20
5.6.240.0030.01014.03
5.6.230.0070.00713.99
5.6.220.0080.00814.34
5.6.210.0070.04517.42
5.6.200.0050.04416.12
5.6.190.0070.04117.32
5.6.180.1630.02217.47
5.6.170.0120.02417.29
5.6.160.0050.02217.35
5.6.150.0090.03916.18
5.6.140.0050.03716.07
5.6.130.0070.03616.18
5.6.120.0080.03917.63
5.6.110.0080.04317.52
5.6.100.0120.04517.55
5.6.90.0130.03817.49
5.6.80.0080.04317.43
5.6.70.0100.04217.25
5.6.60.0070.00714.20
5.6.50.0140.00014.23
5.6.40.0090.00414.05
5.6.30.0070.00714.08
5.6.20.0070.00714.10
5.6.10.0030.01014.02
5.6.00.0000.01014.12
5.5.380.0070.00411.18
5.5.370.0030.00611.18
5.5.360.0060.00611.18
5.5.350.0120.04015.85
5.5.340.0040.04414.60
5.5.330.0050.04115.71
5.5.320.0150.03515.84
5.5.310.0120.04315.65
5.5.300.0070.04514.54
5.5.290.0070.03914.60
5.5.280.0030.02515.91
5.5.270.0020.02715.91
5.5.260.0080.04315.92
5.5.250.0050.05015.89
5.5.240.0050.04015.66
5.5.230.0060.00611.18
5.5.220.0050.00311.18
5.5.210.0030.00911.18
5.5.200.0030.01011.18
5.5.190.0050.00511.18
5.5.180.0000.01011.18
5.5.170.0090.00311.18
5.5.160.0060.00611.18
5.5.150.0060.00611.18
5.5.140.0080.00311.18
5.5.130.0030.00511.18
5.5.120.0090.00011.18
5.5.110.0040.00711.18
5.5.100.0060.00911.18
5.5.90.0060.00611.18
5.5.80.0030.00511.18
5.5.70.0080.00311.18
5.5.60.0000.00911.18
5.5.50.0030.00611.18
5.5.40.0080.00411.18
5.5.30.0040.00411.18
5.5.20.0000.01111.18
5.5.10.0040.00711.18
5.5.00.0040.00411.18
5.4.450.0440.03015.35
5.4.440.0350.03515.39
5.4.430.0400.02715.31
5.4.420.0450.02515.21
5.4.410.0350.03315.23
5.4.400.0180.03014.90
5.4.390.0140.03014.93
5.4.380.0220.02814.86
5.4.370.0080.02814.85
5.4.360.0070.03314.84
5.4.350.0070.02311.57
5.4.340.0060.02111.57
5.4.330.0000.01211.18
5.4.320.0080.01811.82
5.4.310.0050.02211.81
5.4.300.0030.02611.81
5.4.290.0030.02411.82
5.4.280.0070.02111.76
5.4.270.0070.01911.76
5.4.260.0060.02511.76
5.4.250.0070.03215.04
5.4.240.0030.03415.02
5.4.230.0080.02815.03
5.4.220.0030.03514.96
5.4.210.0040.03115.08
5.4.200.0070.03214.98
5.4.190.0080.02815.06
5.4.180.0070.03414.92
5.4.170.0080.04015.02
5.4.160.0120.02515.09
5.4.150.0080.04114.99
5.4.140.0050.02813.72
5.4.130.0080.03013.74
5.4.120.0070.02913.81
5.4.110.0090.02913.71
5.4.100.0050.03813.74
5.4.90.0070.02513.83
5.4.80.0030.02713.76
5.4.70.0070.02713.76
5.4.60.0050.02813.78
5.4.50.0020.02913.82
5.4.40.0140.02013.87
5.4.30.0090.02513.70
5.4.20.0050.02813.78
5.4.10.0020.03013.78
5.4.00.0020.03113.45
5.3.290.0080.02311.99
5.3.280.0080.03612.96
5.3.270.0060.04112.83
5.3.260.0060.02812.83
5.3.250.0060.03012.91
5.3.240.0070.02912.89
5.3.230.0060.03012.82
5.3.220.0060.03812.79
5.3.210.0070.03012.88
5.3.200.0070.02812.76
5.3.190.0050.02712.89
5.3.180.0050.02812.87
5.3.170.0100.02312.87
5.3.160.0040.02612.88
5.3.150.0080.03012.88
5.3.140.0030.02912.91
5.3.130.0090.02512.79
5.3.120.0050.03012.80
5.3.110.0030.03012.94
5.3.100.0000.03212.54
5.3.90.0050.02612.55
5.3.80.0070.02812.60
5.3.70.0050.02812.67
5.3.60.0080.02312.66
5.3.50.0130.05012.52
5.3.40.0050.02512.41
5.3.30.0030.02812.51
5.3.20.0030.03212.35
5.3.10.0100.02712.43
5.3.00.0030.02912.37
5.2.170.0020.02411.21
5.2.160.0110.01711.11
5.2.150.0030.02211.17
5.2.140.0030.02411.15
5.2.130.0030.02611.13
5.2.120.0040.02311.02
5.2.110.0060.02011.10
5.2.100.0050.02211.13
5.2.90.0070.02111.14
5.2.80.0020.02411.19
5.2.70.0030.02611.13
5.2.60.0070.02811.17
5.2.50.0030.02211.04
5.2.40.0020.02511.09
5.2.30.0030.02211.04
5.2.20.0020.02311.07
5.2.10.0050.02810.94
5.2.00.0010.02510.86
5.1.60.0030.02010.55
5.1.50.0030.02110.53
5.1.40.0020.02110.54
5.1.30.0060.01710.86
5.1.20.0000.02110.88
5.1.10.0060.01810.64
5.1.00.0020.02110.74
5.0.50.0020.0179.79
5.0.40.0020.0139.80
5.0.30.0040.0229.72
5.0.20.0060.0129.73
5.0.10.0020.0159.63
5.0.00.0020.0229.71
4.4.90.0020.0128.72
4.4.80.0030.0138.72
4.4.70.0030.0128.72
4.4.60.0030.0128.72
4.4.50.0020.0148.72
4.4.40.0020.0268.72
4.4.30.0030.0108.72
4.4.20.0030.0108.72
4.4.10.0030.0128.72
4.4.00.0020.0238.72
4.3.110.0000.0158.72
4.3.100.0020.0108.72
4.3.90.0050.0088.72
4.3.80.0040.0178.72
4.3.70.0020.0128.72
4.3.60.0040.0108.72
4.3.50.0020.0148.72
4.3.40.0050.0158.72
4.3.30.0020.0128.72
4.3.20.0040.0098.72
4.3.10.0050.0128.72
4.3.00.0080.0119.77

preferences:
37.98 ms | 400 KiB | 5 Q