3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-'; $x=0; for ($r=16;$x<$r;$x++) { substr($l,mt_rand(0,strlen($l)-1),1); }

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.00317.33
7.1.60.0090.00317.17
7.1.50.0060.01216.95
7.1.00.0030.03322.42
7.0.200.0040.00716.79
7.0.140.0070.07022.05
7.0.70.5530.03719.89
7.0.60.0030.07019.95
7.0.50.0070.08317.79
7.0.40.0030.04720.23
7.0.30.0270.05020.16
7.0.20.0300.07720.00
7.0.10.0330.04020.09
7.0.00.0070.08020.17
5.6.280.0100.06021.07
5.6.210.0070.07320.46
5.6.200.0000.06018.12
5.6.190.0130.05320.60
5.6.180.0130.08320.58
5.6.170.0200.07720.53
5.6.160.0130.07720.32
5.6.150.0070.07718.17
5.6.140.0000.04718.21
5.6.130.0100.06018.12
5.6.120.0270.06720.96
5.6.110.0070.06320.99
5.6.100.0070.07320.98
5.6.90.0030.04020.98
5.6.80.0070.03720.48
5.6.70.0230.05320.38
5.5.350.0100.08020.32
5.5.340.0070.06018.02
5.5.330.0100.07020.21
5.5.320.0100.04720.22
5.5.310.0230.07720.27
5.5.300.0070.03717.95
5.5.290.0000.04317.88
5.5.280.0200.07320.71
5.5.270.0130.06720.75
5.5.260.0130.06020.93
5.5.250.0070.05720.58
5.5.240.0130.08720.15
5.4.450.0470.06319.47
5.4.440.0970.07319.48
5.4.430.0870.07019.60
5.4.420.0830.04719.23
5.4.410.0830.04019.14
5.4.400.0830.05319.30
5.4.390.0170.04319.22
5.4.380.0230.05018.69
5.4.370.0370.03318.62
5.4.360.0300.03718.69
5.4.350.0090.04011.98
5.4.340.0070.04411.97
5.4.320.0040.04012.45
5.4.310.0060.03912.45
5.4.300.0040.04712.46
5.4.290.0060.03912.45
5.4.280.0060.03512.35
5.4.270.0040.03812.35
5.4.260.0050.03812.35
5.4.250.0170.06018.77
5.4.240.0070.08018.94
5.4.230.0170.06718.72
5.4.220.0070.08318.68
5.4.210.0170.04718.83
5.4.200.0170.06318.83
5.4.190.0070.06018.97
5.4.180.0130.07718.68
5.4.170.0170.05018.67
5.4.160.0130.05018.58
5.4.150.0230.05018.73
5.4.140.0030.08016.29
5.4.130.0170.04016.25
5.4.120.0100.07316.50
5.4.110.0100.05316.21
5.4.100.0170.05716.47
5.4.90.0200.05716.30
5.4.80.0230.05716.34
5.4.70.0070.05716.29
5.4.60.0200.06016.40
5.4.50.0030.05316.29
5.4.40.0170.05716.26
5.4.30.0170.06016.42
5.4.20.0030.05316.33
5.4.10.0070.07316.23
5.4.00.0100.06015.93
5.3.290.0090.03612.80
5.3.280.0130.06314.45
5.3.270.0070.06314.52
5.3.260.0070.06314.62
5.3.250.0100.06714.61
5.3.240.0130.05314.62
5.3.230.0100.06714.74
5.3.220.0200.06714.26
5.3.210.0100.07014.56
5.3.200.0030.07714.27
5.3.190.0030.08014.45
5.3.180.0130.07314.59
5.3.170.0100.07314.58
5.3.160.0130.06714.33
5.3.150.0100.05014.26
5.3.140.0130.06014.25
5.3.130.0000.06014.24
5.3.120.0100.05014.64
5.3.110.0130.05014.24
5.3.100.0130.06313.87
5.3.90.0130.07013.78
5.3.80.0170.06013.93
5.3.70.0030.06313.80
5.3.60.0100.06714.01
5.3.50.0070.06713.88
5.3.40.0070.07013.96
5.3.30.0230.04714.00
5.3.20.0130.05713.60
5.3.10.0000.07713.56
5.3.00.0070.05313.65
5.2.170.0070.05711.15
5.2.160.0100.03310.99
5.2.150.0100.05311.03
5.2.140.0100.04010.90
5.2.130.0100.05010.93
5.2.120.0100.03311.01
5.2.110.0030.05010.98
5.2.100.0070.05011.19
5.2.90.0100.03711.11
5.2.80.0070.04011.02
5.2.70.0170.03311.11
5.2.60.0130.04310.98
5.2.50.0100.05011.03
5.2.40.0070.05311.01
5.2.30.0070.04010.87
5.2.20.0030.05011.06
5.2.10.0030.05010.62
5.2.00.0030.04710.88
5.1.60.0030.0379.93
5.1.50.0070.03310.23
5.1.40.0070.0379.75
5.1.30.0170.03710.23
5.1.20.0030.05010.27
5.1.10.0000.05010.15
5.1.00.0130.03010.23
5.0.50.0070.0238.43
5.0.40.0030.0308.45
5.0.30.0070.0438.16
5.0.20.0070.0238.15
5.0.10.0000.0408.31
5.0.00.0070.0378.37
4.4.90.0000.0335.77
4.4.80.0070.0175.77
4.4.70.0100.0135.79
4.4.60.0000.0235.76
4.4.50.0000.0275.80
4.4.40.0000.0335.90
4.4.30.0000.0335.77
4.4.20.0030.0205.82
4.4.10.0070.0175.80
4.4.00.0100.0375.79
4.3.110.0030.0235.68
4.3.100.0070.0175.67
4.3.90.0000.0205.70
4.3.80.0030.0335.80
4.3.70.0000.0235.70
4.3.60.0000.0235.67
4.3.50.0030.0205.80
4.3.40.0070.0375.63
4.3.30.0030.0305.57
4.3.20.0000.0235.57
4.3.10.0070.0175.57
4.3.00.0100.0237.22

preferences:
32.66 ms | 401 KiB | 5 Q