3v4l.org

run code in 300+ PHP versions simultaneously
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<?php $length = 20000; $symbols = true; $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $string .= $grabbag[rand(0,$len)]; } echo $string;

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.0000.00916.64
7.3.00.0040.00716.58
7.2.130.0100.00316.79
7.2.120.0040.01116.76
7.2.110.0030.00717.12
7.2.100.0060.01216.56
7.2.90.0030.00917.15
7.2.80.0040.01216.87
7.2.70.0040.01116.74
7.2.60.0100.00717.11
7.2.50.0060.00916.99
7.2.40.0070.00716.79
7.2.30.0100.00716.86
7.2.20.0070.01017.06
7.2.10.0070.00716.94
7.2.00.0060.00918.09
7.1.250.0030.01415.85
7.1.70.0060.00917.22
7.1.60.0030.01019.17
7.1.50.0070.02316.92
7.0.200.0040.00716.73
5.4.230.0030.06718.76
5.4.220.0100.05718.92
5.4.210.0100.05718.74
5.4.200.0030.06019.02
5.4.190.0030.06318.89
5.4.180.0100.05319.02
5.4.170.0100.05718.74
5.4.160.0130.08318.79
5.4.150.0100.05718.71
5.4.140.0100.07016.34
5.4.130.0070.05316.28
5.4.120.0070.06316.40
5.4.110.0200.04716.41
5.4.100.0070.05716.49
5.4.90.0070.05316.36
5.4.80.0070.07716.22
5.4.70.0070.05316.43
5.4.60.0030.06016.47
5.4.50.0030.05716.23
5.4.40.0170.04716.29
5.4.30.0070.05016.28
5.4.20.0070.05016.23
5.4.10.0100.05716.46
5.4.00.0100.05015.93
5.3.280.0100.05314.31
5.3.270.0170.05014.49
5.3.260.0000.09714.71
5.3.250.0070.06314.64
5.3.240.0070.05714.77
5.3.230.0170.05014.71
5.3.220.0030.06014.46
5.3.210.0100.05314.29
5.3.200.0100.06314.59
5.3.190.0230.06714.68
5.3.180.0100.06714.45
5.3.170.0030.06014.58
5.3.160.0130.05314.59
5.3.150.0070.05314.28
5.3.140.0070.05314.43
5.3.130.0070.05714.45
5.3.120.0030.06014.50
5.3.110.0030.06014.61
5.3.100.0030.06014.10
5.3.90.0100.05014.08
5.3.80.0000.06013.97
5.3.70.0000.07014.06
5.3.60.0130.05013.93
5.3.50.0130.04713.66

preferences:
34.37 ms | 401 KiB | 5 Q