3v4l.org

run code in 300+ PHP versions simultaneously
<?php<?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)
5.5.130.0070.03719.93
5.5.120.0030.04019.93
5.5.110.0030.04020.14
5.5.100.0030.06320.12
5.5.90.0100.02720.02
5.5.80.0030.03720.07
5.5.70.0030.04019.98
5.5.60.0030.03719.89
5.5.50.0000.04720.01
5.5.40.0030.03720.05
5.5.30.0100.05020.02
5.5.20.0030.07319.99
5.5.10.0100.07720.06
5.5.00.0100.08020.07
5.4.290.0000.04019.18
5.4.280.0030.03318.90
5.4.270.0030.03718.96
5.4.260.0000.04019.04
5.4.250.0070.03318.87
5.4.240.0070.03319.04
5.4.230.0030.03719.20
5.4.220.0070.03319.18
5.4.210.0070.04719.22
5.4.200.0130.07019.07
5.4.190.0030.05319.20
5.4.180.0130.05319.15
5.4.170.0170.06319.20
5.4.160.0170.05319.01
5.4.150.0070.07319.22
5.4.140.0070.08316.44
5.4.130.0270.06316.36
5.4.120.0130.06716.28
5.4.110.0000.04716.48
5.4.100.0100.07016.27
5.4.90.0100.05716.36
5.4.80.0070.06716.39
5.4.70.0070.06716.46
5.4.60.0130.06316.25
5.4.50.0070.06316.48
5.4.40.0030.07316.54
5.4.30.0130.07716.48
5.4.20.0130.06016.42
5.4.10.0030.08016.29
5.4.00.0130.06715.85
5.3.290.0070.04314.54
5.3.280.0030.03714.59
5.3.270.0070.08014.48
5.3.260.0030.04714.48
5.3.250.0070.07014.48
5.3.240.0130.07714.46
5.3.230.0030.08314.52
5.3.220.0100.07714.45
5.3.210.0100.08314.52
5.3.200.0130.07714.59
5.3.190.0000.08714.54
5.3.180.0100.08014.55
5.3.170.0130.07714.44
5.3.160.0200.06714.44
5.3.150.0100.08014.57
5.3.140.0100.08014.39
5.3.130.0030.07014.54
5.3.120.0130.07014.43
5.3.110.0070.09014.50
5.3.100.0200.06714.06
5.3.90.0200.06014.00
5.3.80.0030.08013.97
5.3.70.0100.08014.00
5.3.60.0130.07313.97
5.3.50.0030.08313.89
5.3.40.0030.07713.90
5.3.30.0070.08013.91
5.3.20.0100.07313.66
5.3.10.0100.07713.52
5.3.00.0100.06713.64
5.2.170.0100.06010.99
5.2.160.0030.07011.18
5.2.150.0070.06711.23
5.2.140.0030.05710.91
5.2.130.0070.06311.04
5.2.120.0070.05711.00
5.2.110.0000.07010.98
5.2.100.0100.06311.14
5.2.90.0070.05311.08
5.2.80.0070.06310.96
5.2.70.0030.07011.16
5.2.60.0070.06311.10
5.2.50.0100.06711.03
5.2.40.0070.07010.89
5.2.30.0000.06310.98
5.2.20.0100.03710.82
5.2.10.0030.05310.93
5.2.00.0170.06010.79
5.1.60.0070.06010.02
5.1.50.0100.05710.07
5.1.40.0030.0579.99
5.1.30.0070.05310.44
5.1.20.0100.05710.30
5.1.10.0000.06010.09
5.1.00.0030.06010.13
5.0.50.0000.0609.07
5.0.40.0000.0379.07
5.0.30.0030.0439.07
5.0.20.0000.0539.07
5.0.10.0030.0539.07
5.0.00.0030.0609.07
4.4.90.0030.0439.07
4.4.80.0000.0479.07
4.4.70.0070.0479.07
4.4.60.0030.0439.07
4.4.50.0030.0479.07
4.4.40.0000.0639.07
4.4.30.0000.0479.07
4.4.20.0000.0539.07
4.4.10.0030.0479.07
4.4.00.0070.0639.07
4.3.110.0000.0509.07
4.3.100.0030.0409.07
4.3.90.0070.0439.07
4.3.80.0000.0639.07
4.3.70.0030.0439.07
4.3.60.0000.0509.07
4.3.50.0000.0509.07
4.3.40.0000.0639.07
4.3.30.0030.0479.07
4.3.20.0030.0839.07
4.3.10.0000.0879.07
4.3.00.0070.0839.07

preferences:
28.66 ms | 401 KiB | 5 Q