3v4l.org

run code in 300+ PHP versions simultaneously
<?php $random_key = ''; for( $i = 0; $i < 64; $i++) { $random_key .= chr(rand(65, 90)); } print strlen($random_key);

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.1.70.0070.00417.16
7.1.60.0090.00617.22
7.1.50.0100.00716.64
7.1.00.0070.03022.46
7.0.200.0070.00216.61
7.0.140.0070.07022.00
7.0.60.0200.07720.03
7.0.50.0070.08017.81
7.0.40.0200.07320.20
7.0.30.0270.05320.00
7.0.20.0230.04320.13
7.0.10.0400.05720.13
7.0.00.0170.08020.03
5.6.280.0100.08720.92
5.6.210.0100.05020.74
5.6.200.0230.07018.12
5.6.190.0070.06020.67
5.6.180.3770.04720.57
5.6.170.0230.04320.64
5.6.160.0070.05320.46
5.6.150.0130.06018.22
5.6.140.0130.07318.20
5.6.130.0030.05318.21
5.6.120.0030.06021.03
5.6.110.0070.08320.98
5.6.100.0070.04721.11
5.6.90.0030.08020.96
5.6.80.0170.06320.44
5.5.350.0070.04020.32
5.5.340.0130.05317.99
5.5.330.0100.08720.40
5.5.320.0130.05020.32
5.5.310.0230.05320.51
5.5.300.0030.04017.92
5.5.290.0070.08017.92
5.5.280.0100.08020.85
5.5.270.0070.06320.83
5.5.260.0130.08720.79
5.5.250.0030.05020.65
5.5.240.0030.05020.15
5.4.450.0870.07319.49
5.4.440.0770.06019.61
5.4.430.0770.05019.13
5.4.420.0730.06319.60
5.4.410.0070.05719.14
5.4.400.0400.06018.62
5.4.390.0600.06718.69
5.4.380.0170.06318.72
5.4.370.0170.05018.70
5.4.360.0200.04718.68
5.4.350.0020.04011.98
5.4.340.0060.03511.97
5.4.320.0060.03712.46
5.4.310.0070.03712.45
5.4.300.0070.03612.46
5.4.290.0060.04712.45
5.4.280.0100.03412.35
5.4.270.0090.04212.35
5.4.260.0060.03812.35
5.4.250.0030.05318.74
5.4.240.0030.05718.67
5.4.230.0100.05318.80
5.4.220.0100.05018.74
5.4.210.0000.05718.84
5.4.200.0130.05018.77
5.4.190.0030.05718.67
5.4.180.0030.05318.62
5.4.170.0070.05718.75
5.4.160.0070.05018.97
5.4.150.0070.05318.90
5.4.140.0100.05316.54
5.4.130.0030.05016.27
5.4.120.0030.06716.27
5.4.110.0100.05016.26
5.4.100.0100.04716.48
5.4.90.0030.06016.40
5.4.80.0130.04716.48
5.4.70.0100.04316.16
5.4.60.0200.04316.36
5.4.50.0170.06716.43
5.4.40.0100.04316.49
5.4.30.0100.04316.53
5.4.20.0130.04316.14
5.4.10.0170.04316.29
5.4.00.0130.04015.70
5.3.290.0050.04012.80
5.3.280.0030.05314.61
5.3.270.0100.04714.61
5.3.260.0100.06314.30
5.3.250.0270.05014.65
5.3.240.0100.04714.62
5.3.230.0030.05314.48
5.3.220.0070.05314.58
5.3.210.0070.06014.42
5.3.200.0170.04314.48
5.3.190.0070.05014.57
5.3.180.0030.07014.40
5.3.170.0070.05014.58
5.3.160.0070.05014.65
5.3.150.0170.04014.66
5.3.140.0130.04714.40
5.3.130.0030.05714.56
5.3.120.0070.05314.56
5.3.110.0100.04714.52
5.3.100.0000.05714.08
5.3.90.0070.04714.03
5.3.80.0100.04714.03
5.3.70.0100.04314.03
5.3.60.0100.04313.88
5.3.50.0070.04713.73
5.3.40.0030.05714.04
5.3.30.0230.06013.92
5.3.20.0000.05313.39
5.3.10.0000.05013.59
5.3.00.0000.05313.51
5.2.170.0000.04310.90
5.2.160.0070.04310.98
5.2.150.0070.06011.13
5.2.140.0030.04010.97
5.2.130.0100.03311.02
5.2.120.0100.03311.10
5.2.110.0170.04011.10
5.2.100.0070.03711.02
5.2.90.0000.04310.93
5.2.80.0070.03710.99
5.2.70.0030.04011.10
5.2.60.0030.04010.88
5.2.50.0030.04710.96
5.2.40.0030.04011.02
5.2.30.0100.03710.98
5.2.20.0000.04310.84
5.2.10.0030.04010.82
5.2.00.0100.05310.54
5.1.60.0030.03710.22
5.1.50.0070.03310.02
5.1.40.0000.0379.89
5.1.30.0030.03710.54
5.1.20.0030.03710.45
5.1.10.0070.0309.89
5.1.00.0170.02310.15
5.0.50.0130.0238.45
5.0.40.0070.0238.37
5.0.30.0000.0438.05
5.0.20.0030.0278.34
5.0.10.0000.0308.21
5.0.00.0000.0438.07
4.4.90.0000.0237.38
4.4.80.0070.0177.38
4.4.70.0030.0207.38
4.4.60.0000.0237.38
4.4.50.0000.0337.38
4.4.40.0070.0407.38
4.4.30.0070.0207.38
4.4.20.0070.0177.38
4.4.10.0070.0177.38
4.4.00.0000.0337.38
4.3.110.0000.0237.38
4.3.100.0070.0137.38
4.3.90.0030.0207.38
4.3.80.0000.0337.38
4.3.70.0100.0137.38
4.3.60.0000.0237.38
4.3.50.0100.0137.38
4.3.40.0030.0307.38
4.3.30.0030.0207.38
4.3.20.0000.0237.38
4.3.10.0070.0177.38
4.3.00.0130.0237.96

preferences:
27.33 ms | 401 KiB | 5 Q