3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $digits = '1234567890'; $alnum = '123test'; For($i = 0; $i < 100000; $i++) { strspn($digits, $digits) === strlen($digits); strspn($alnum, $digits) === strlen($alnum); }
based on Ei6m6

Abusive script

This script was stopped while abusing our resources

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.1.70.0440.03015.41
7.1.60.0100.04915.32
7.1.50.0070.02915.16
7.1.40.0430.03315.16
7.1.30.0620.03215.16
7.1.20.0620.02815.16
7.1.10.0560.00015.16
7.1.00.0810.05515.16
7.0.200.0450.03815.16
7.0.190.0060.04215.16
7.0.180.0630.02315.16
7.0.170.1860.03615.16
7.0.160.0580.02315.16
7.0.150.0750.00415.16
7.0.140.1940.02615.16
7.0.130.0570.03515.16
7.0.120.0070.02916.49
7.0.110.2570.03015.16
7.0.100.0180.01816.42
7.0.90.1090.02616.43
7.0.80.0130.02616.45
7.0.70.0050.03216.17
7.0.60.0030.03816.14
7.0.50.0030.02916.51
7.0.40.0060.02615.16
7.0.30.0000.03115.16
7.0.20.0040.02315.16
7.0.10.0030.02515.16
7.0.00.0030.02815.16
hhvm-3.17.30.0080.01618.61
hhvm-3.15.40.0210.12884.82
hhvm-3.13.20.0360.13997.64
hhvm-3.12.140.0140.01818.46
hhvm-3.11.10.0640.13691.07
hhvm-3.10.10.0430.17788.36
5.6.300.0200.07420.84
5.6.290.0030.08420.80
5.6.280.0100.07820.95
5.6.270.0090.08720.81
5.6.260.0070.14720.98
5.6.250.0030.08920.99
5.6.240.0070.08820.89
5.6.230.0000.09020.98
5.6.220.0030.10220.75
5.6.210.0000.09620.95
5.6.200.0100.08920.68
5.6.190.0070.10420.67
5.6.180.0070.10320.99
5.6.170.0070.09720.88
5.6.160.0000.09120.80
5.6.150.0030.10020.90
5.6.140.0070.10620.89
5.6.130.0060.08420.80
5.6.120.0030.08320.80
5.6.110.0070.11420.72
5.6.100.0100.10220.95
5.6.90.0260.08220.91
5.6.80.0030.09320.16
5.6.70.0100.11320.15
5.6.60.0240.08620.14
5.6.50.0030.08720.36
5.6.40.0070.07720.04
5.6.30.0170.11120.29
5.6.20.0030.08920.29
5.6.10.0130.09120.31
5.6.00.0090.08420.11
5.5.380.0070.09417.49
5.5.370.0120.07417.46
5.5.360.0130.07117.50
5.5.350.0060.08617.43
5.5.340.0070.07617.95
5.5.330.0000.09818.06
5.5.320.0000.09318.00
5.5.310.0070.09418.07
5.5.300.0070.13517.83
5.5.290.0360.06618.11
5.5.280.0130.07618.06
5.5.270.0030.10918.02
5.5.260.0170.12617.94
5.5.250.0100.09717.84
5.5.240.0100.10517.24
5.5.230.0120.08117.23
5.5.220.0030.09717.39
5.5.210.0030.08217.44
5.5.200.0030.09417.38
5.5.190.0070.08017.39
5.5.180.0000.09617.31
5.5.160.0030.09317.29
5.5.150.0100.09217.30
5.5.140.0070.08817.43
5.5.130.0030.08217.07
5.5.120.0030.08517.34
5.5.110.0160.08517.37
5.5.100.0000.08317.00
5.5.90.0030.10917.36
5.5.80.0160.07517.31
5.5.70.0230.13017.23
5.5.60.0000.08617.28
5.5.50.0030.08717.27
5.5.40.0030.08117.18
5.5.30.0030.08017.09
5.5.20.0100.07917.36
5.5.10.0100.08117.21
5.5.00.0160.07717.09
5.4.450.0030.08719.31
5.4.440.0100.08619.15
5.4.430.0000.10419.41
5.4.420.0000.10119.39
5.4.410.0300.10419.21
5.4.400.0000.09419.05
5.4.390.0100.08518.91
5.4.380.0100.09419.13
5.4.370.0030.08618.84
5.4.360.0030.10519.10
5.4.350.0030.07818.87
5.4.340.0070.08918.84
5.4.320.0100.08119.10
5.4.310.0030.09518.84
5.4.300.0030.08618.86
5.4.290.0030.10818.94
5.4.280.0070.12219.09
5.4.270.0060.11019.02
5.4.260.0100.07618.82
5.4.250.0170.12118.80
5.4.240.0070.10818.83
5.4.230.0130.08519.11
5.4.220.0160.06819.09
5.4.210.0130.07418.83
5.4.200.0030.07618.82
5.4.190.0130.07719.14
5.4.180.0130.08319.14
5.4.170.0060.08419.02
5.4.160.0100.08018.95
5.4.150.0030.07518.81
5.4.140.0000.09816.37
5.4.130.0000.07616.56
5.4.120.0190.06316.33
5.4.110.0160.07516.57
5.4.100.0100.07316.57
5.4.90.0070.08016.63
5.4.80.0030.08216.31
5.4.70.0030.09016.63
5.4.60.0100.06716.58
5.4.50.0130.08016.48
5.4.40.0190.06116.36
5.4.30.0100.07816.62
5.4.20.0070.08116.54
5.4.10.0070.08316.30
5.4.00.0320.10315.77
5.3.290.0030.10315.16
5.3.280.0070.09115.16
5.3.270.0300.08915.16
5.3.260.0070.08515.16
5.3.250.0030.09815.16
5.3.240.0000.11015.16
5.3.230.0100.11015.16
5.3.220.0130.09115.16
5.3.210.0030.09915.16
5.3.200.0030.09515.16
5.3.190.0030.09215.16
5.3.180.0210.10315.16
5.3.170.0090.08815.16
5.3.160.0030.11815.16
5.3.150.0100.09715.16
5.3.140.0030.09915.16
5.3.130.0130.09215.16
5.3.120.0070.09315.16
5.3.110.0100.08815.16
5.3.100.0030.10515.16
5.3.90.0030.08315.16
5.3.80.0030.08615.16
5.3.70.0000.10215.16
5.3.60.0070.09515.16
5.3.50.0030.09715.16
5.3.40.0060.09415.16
5.3.30.0100.07715.16
5.3.20.0070.07915.16
5.3.10.0160.08415.16
5.3.00.0070.08315.16
5.2.170.0100.07615.16
5.2.160.0000.08315.16
5.2.150.0030.08115.16
5.2.140.0030.08415.16
5.2.130.0060.08015.16
5.2.120.0000.08815.16
5.2.110.0070.07615.16
5.2.100.0070.10415.16
5.2.90.0130.08115.16
5.2.80.0070.09315.16
5.2.70.0030.08115.16
5.2.60.0030.07815.16
5.2.50.0030.11215.16
5.2.40.0030.08015.16
5.2.30.0090.07815.16
5.2.20.0030.07715.16
5.2.10.0070.07715.16
5.2.00.0000.08415.16
5.1.60.0030.10415.16
5.1.50.0070.08215.16
5.1.40.0000.09015.16
5.1.30.0100.07615.16
5.1.20.0070.07615.16
5.1.10.0000.07415.16
5.1.00.0060.07715.16
5.0.50.0000.11415.16
5.0.40.0100.12115.16
5.0.30.0000.11815.16
5.0.20.0000.12815.16
5.0.10.0270.10115.16
5.0.00.0030.13315.16
4.4.90.0030.08315.16
4.4.80.0030.08715.16
4.4.70.0000.10315.16
4.4.60.0030.10915.16
4.4.50.0030.08315.16
4.4.40.0030.09615.16
4.4.30.0030.10615.16
4.4.20.0000.11415.16
4.4.10.0030.08915.16
4.4.00.0000.13615.16
4.3.110.0030.10315.16
4.3.100.0030.10515.16
4.3.90.0000.10315.16
4.3.80.0000.11415.16
4.3.70.0030.09415.16
4.3.60.0030.09015.16
4.3.50.0030.10015.16
4.3.40.0030.10215.16
4.3.30.0310.09915.16
4.3.20.0030.10915.16
4.3.10.0030.14215.16
4.3.00.0030.13715.16