3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = substr(strtolower((string) array()),0,1); $counter = 0; $sp = chr( (5*6) +2); $data = array( (12*12) +3, pow(2,8)-pow(2,2), pow(3,2) * 571, 2*3*797, 97 * 127, 2*6353); $chars = array(); for ($counter=0; $counter < 15000; $counter++) { if (in_array($counter, $data)) { $chars[] = $d; } $d++; } $func = strrev($chars[5]). $chars[4]; echo $func($chars[3]).$chars[0] . $sp . $chars[1] . $sp . $chars[2];

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.2.110.0150.00816.78
7.2.60.0080.00816.95
7.2.00.0030.01218.90
7.1.200.0060.00915.80
7.1.100.0060.00917.59
7.1.70.0030.00517.25
7.1.60.0090.00619.50
7.1.50.0100.01616.67
7.1.00.0100.07322.57
7.0.200.0830.00414.80
7.0.140.0030.07321.92
7.0.60.0030.04020.09
7.0.50.0000.05317.83
7.0.40.0070.04319.99
7.0.30.0230.08020.10
7.0.20.0200.08020.09
7.0.10.0130.06320.11
7.0.00.0000.06720.13
5.6.280.0000.08321.13
5.6.210.0000.09320.55
5.6.200.0100.04018.09
5.6.190.0070.05320.39
5.6.180.3930.04320.58
5.6.170.0200.05320.44
5.6.160.0030.07320.51
5.6.150.0030.07718.18
5.6.140.0100.08318.18
5.6.130.0030.08718.15
5.6.120.0100.07721.13
5.6.110.0130.09020.99
5.6.100.0130.07720.98
5.6.90.0000.06020.96
5.6.80.0100.08020.34
5.5.350.0070.08320.47
5.5.340.0070.08317.99
5.5.330.0100.09020.28
5.5.320.0200.04320.21
5.5.310.0170.04720.26
5.5.300.0030.09018.01
5.5.290.0100.04317.98
5.5.280.0070.05020.90
5.5.270.0230.07720.97
5.5.260.0130.07320.86
5.5.250.0070.09020.64
5.5.240.4130.04020.35
5.4.450.0230.07019.41
5.4.440.0930.05719.48
5.4.430.0130.06319.62
5.4.420.1170.05719.55
5.4.410.0100.06018.73
5.4.400.0900.07318.61
5.4.390.0830.07718.70
5.4.380.0870.07018.74
5.4.370.0870.07018.69
5.4.360.0800.06718.68
5.4.350.0570.07018.70
5.4.340.0930.06318.71
5.4.320.0770.07318.77
5.4.310.0930.06718.73
5.4.300.0430.07018.62
5.4.290.0700.07018.53
5.4.280.0700.05318.67
5.4.270.0730.07718.58
5.4.260.0830.07718.73
5.4.250.0800.06718.58
5.4.240.0970.06018.46
5.4.230.0830.07318.70
5.4.220.1130.06718.48
5.4.210.0870.06018.48
5.4.200.0800.05716.63
5.4.190.0930.06718.70
5.4.180.0930.07318.77
5.4.170.0900.07018.48
5.4.160.0930.07018.71
5.4.150.0970.05318.61
5.4.140.0800.07016.28
5.4.130.0730.07016.32
5.4.120.0870.05316.07
5.4.110.1000.06316.17
5.4.100.1130.06016.09
5.4.90.0970.06716.16
5.4.80.0900.06716.29
5.4.70.0830.05716.18
5.4.60.0800.05716.21
5.4.50.1000.05716.24
5.4.40.1000.06316.20
5.4.30.0730.07016.08
5.4.20.0930.07316.27
5.4.10.1030.05316.21
5.4.00.0700.06315.60
5.3.290.0870.06014.64
5.3.280.0970.06314.68
5.3.270.0670.06714.59
5.3.260.0970.08014.70
5.3.250.0900.06714.56
5.3.240.0800.06714.71
5.3.230.0900.07014.64
5.3.220.0800.06714.65
5.3.210.1100.06014.57
5.3.200.0870.06014.56
5.3.190.0970.07714.56
5.3.180.0830.05714.52
5.3.170.0600.06014.57
5.3.160.1000.05014.52
5.3.150.0830.05714.50
5.3.140.0430.07714.55
5.3.130.0930.07714.61
5.3.120.1000.07014.61
5.3.110.1000.07014.45
5.3.100.0730.05714.14
5.3.90.0900.07014.08
5.3.80.0830.06314.01
5.3.70.0970.06314.00
5.3.60.0870.06314.00
5.3.50.1170.06014.07
5.3.40.0730.06313.95
5.3.30.0830.06714.02
5.3.20.1130.08013.69
5.3.10.0770.07013.74
5.3.00.1070.08013.75
5.2.170.0700.07011.13
5.2.160.0970.05711.16
5.2.150.1000.07011.13
5.2.140.0870.05311.20
5.2.130.0770.05311.09
5.2.120.0730.06711.03
5.2.110.0700.05311.10
5.2.100.0770.05711.07
5.2.90.0800.05711.15
5.2.80.0730.04711.15
5.2.70.1000.05311.08
5.2.60.0700.05011.11
5.2.50.0630.06011.08
5.2.40.0630.05711.00
5.2.30.0500.07311.02
5.2.20.0600.05011.10
5.2.10.0600.04310.97
5.2.00.0630.06310.79
5.1.60.0530.05010.15
5.1.50.0530.05710.00
5.1.40.0600.05710.09
5.1.30.0600.04710.37
5.1.20.0830.06310.37
5.1.10.0570.04710.12
5.1.00.0430.05310.20
5.0.50.0330.0508.56
5.0.40.0230.0478.49
5.0.30.0530.0678.22
5.0.20.0300.0378.28
5.0.10.0300.0408.37
5.0.00.0300.0638.21
4.4.90.0370.0335.93
4.4.80.0170.0375.93
4.4.70.0300.0335.92
4.4.60.0200.0375.95
4.4.50.0230.0335.89
4.4.40.0370.0475.89
4.4.30.0430.0335.88
4.4.20.0300.0405.99
4.4.10.0270.0405.90
4.4.00.0200.0575.96
4.3.110.0230.0435.83
4.3.100.0200.0535.82
4.3.90.0400.0435.82
4.3.80.0330.0675.84
4.3.70.0230.0435.91
4.3.60.0300.0375.82
4.3.50.0500.0436.08
4.3.40.0530.0605.89
4.3.30.0270.0505.33
4.3.20.0100.0435.33
4.3.10.0170.0335.33
4.3.00.0100.0376.91