3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 10000; $start = microtime(true); for($i = 0; $i < $count; $i++) { $a .= 'a'; } printf("#1, result is %d, done in %f\n", $y, microtime(true) - $start); $start = microtime(true); 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.2.00.0030.01019.46
7.1.70.0040.00417.19
7.1.60.0110.01519.82
7.1.50.0100.01316.98
7.1.00.0070.04722.54
7.0.200.0040.00716.79
7.0.140.0000.08021.92
7.0.60.0100.05719.87
7.0.50.0170.04717.92
7.0.40.0100.08320.20
7.0.30.0230.05720.09
7.0.20.0270.08020.02
7.0.10.0130.04720.02
7.0.00.0030.07720.17
5.6.280.0100.07021.12
5.6.210.0070.05020.48
5.6.200.0070.04718.15
5.6.190.0130.08020.77
5.6.180.3170.03720.35
5.6.170.0230.03320.38
5.6.160.0100.03720.40
5.6.150.0130.07318.19
5.6.140.0100.05718.17
5.6.130.0100.05018.16
5.6.120.0000.04320.97
5.6.110.0000.05721.00
5.6.100.0130.08321.10
5.6.90.0100.08021.02
5.6.80.0000.04720.34
5.6.70.0130.08720.38
5.5.350.0230.08320.44
5.5.340.0070.07318.01
5.5.330.0130.04320.47
5.5.320.0230.04020.32
5.5.310.0330.06720.21
5.5.300.0100.08317.95
5.5.290.0070.05318.01
5.5.280.0030.07720.76
5.5.270.0100.07720.75
5.5.260.0130.07020.87
5.5.250.0130.07720.77
5.5.240.0100.07320.18
5.4.450.0670.05319.59
5.4.440.0800.06319.45
5.4.430.0670.06019.34
5.4.420.0730.05719.31
5.4.410.1000.06019.00
5.4.400.1230.04718.52
5.4.390.1170.05318.68
5.4.380.0300.07018.47
5.4.370.0130.05718.54
5.4.360.0170.05018.48
5.4.350.0060.03712.00
5.4.340.0030.04211.99
5.4.320.0070.03512.47
5.4.310.0050.04012.47
5.4.300.0090.04112.48
5.4.290.0100.04212.47
5.4.280.0070.03512.37
5.4.270.0060.03812.37
5.4.260.0040.04412.37
5.4.250.0130.07718.77
5.4.240.0130.05018.89
5.4.230.0100.05018.72
5.4.220.0130.05018.89
5.4.210.0030.05318.70
5.4.200.0030.05318.98
5.4.190.0170.04318.86
5.4.180.0100.05018.87
5.4.170.0070.05318.79
5.4.160.0030.05718.92
5.4.150.0030.05718.71
5.4.140.0000.05716.32
5.4.130.0070.07016.45
5.4.120.0100.04716.25
5.4.110.0030.06016.34
5.4.100.0070.04716.45
5.4.90.0030.05016.24
5.4.80.0070.05316.43
5.4.70.0000.06016.39
5.4.60.0030.05316.41
5.4.50.0070.04716.37
5.4.40.0030.05016.26
5.4.30.0000.05316.46
5.4.20.0100.06016.49
5.4.10.0000.05716.34
5.4.00.0100.04715.90
5.3.290.0080.04312.80
5.3.280.0000.06014.51
5.3.270.0070.05314.78
5.3.260.0030.06314.77
5.3.250.0100.08014.46
5.3.240.0100.05014.71
5.3.230.0100.05014.61
5.3.220.0000.06014.44
5.3.210.0070.05314.60
5.3.200.0030.05314.63
5.3.190.0100.05014.59
5.3.180.0070.05314.52
5.3.170.0100.04714.60
5.3.160.0030.05014.28
5.3.150.0070.05014.59
5.3.140.0100.04714.34
5.3.130.0030.05314.48
5.3.120.0070.05014.40
5.3.110.0170.04714.57
5.3.100.0030.05313.82
5.3.90.0130.06313.91
5.3.80.0070.05013.91
5.3.70.0000.05314.05
5.3.60.0030.05014.00
5.3.50.0030.05313.82
5.3.40.0070.05013.85
5.3.30.0000.05313.86
5.3.20.0030.05013.71
5.3.10.0070.04713.82
5.3.00.0170.06313.75
5.2.170.0070.04011.25
5.2.160.0070.03711.06
5.2.150.0070.04310.99
5.2.140.0070.04010.91
5.2.130.0000.04711.20
5.2.120.0030.05711.00
5.2.110.0130.03311.13
5.2.100.0030.04711.13
5.2.90.0030.04310.96
5.2.80.0000.06311.00
5.2.70.0100.07011.01
5.2.60.0030.04711.08
5.2.50.0000.04710.88
5.2.40.0100.04011.02
5.2.30.0070.05710.91
5.2.20.0130.04711.00
5.2.10.0100.03710.96
5.2.00.0030.04010.67
5.1.60.0030.03710.14
5.1.50.0030.03710.15
5.1.40.0070.0339.89
5.1.30.0100.03310.23
5.1.20.0070.03310.52
5.1.10.0070.04010.21
5.1.00.0030.03710.02
5.0.50.0030.0338.69
5.0.40.0030.0308.36
5.0.30.0030.0538.17
5.0.20.0030.0378.25
5.0.10.0030.0338.31
5.0.00.0000.0538.30
4.4.90.0000.0306.03
4.4.80.0030.0236.03
4.4.70.0070.0236.03
4.4.60.0000.0306.03
4.4.50.0000.0406.03
4.4.40.0030.0376.03
4.4.30.0030.0236.03
4.4.20.0000.0336.03
4.4.10.0030.0236.03
4.4.00.0030.0376.03
4.3.110.0100.0206.03
4.3.100.0070.0236.03
4.3.90.0030.0276.03
4.3.80.0000.0406.03
4.3.70.0000.0276.03
4.3.60.0000.0276.03
4.3.50.0000.0336.03
4.3.40.0000.0406.03
4.3.30.0030.0276.03
4.3.20.0030.0276.03
4.3.10.0030.0336.03
4.3.00.0200.0308.36

preferences:
35.22 ms | 401 KiB | 5 Q