3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fnc_array = get_defined_functions(); $fnc_array = $fnc_array['internal']; //foreach ($fnc_array as $fnc_name) { $ref_func = new ReflectionFunction('call_user_func'); foreach($ref_func->getParameters() as $parm) { var_dump($parm::isCallable()); if($parm->isCallable()) { echo "$fnc_name (" . $ref_func->getNumberOfParameters() .")\n"; break; } } //} //

Here you find the average performance (time & memory) of each version. A greyed 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.00.0100.00319.48
7.1.100.0160.00616.50
7.1.70.0000.00916.88
7.1.60.0070.01719.46
7.1.50.0130.00016.63
7.1.00.0100.07022.45
7.0.200.0030.00616.71
7.0.140.0030.07322.22
7.0.60.0130.07020.04
7.0.50.0100.06317.93
7.0.40.0070.04320.31
7.0.30.0200.08320.16
7.0.20.0200.03720.28
7.0.10.0270.06320.24
7.0.00.0070.08720.12
5.6.280.0030.07021.16
5.6.210.0030.08320.58
5.6.200.0130.06718.08
5.6.190.0030.04320.41
5.6.180.2930.04320.38
5.6.170.0300.08020.40
5.6.160.0070.05020.61
5.6.150.0030.04018.09
5.6.140.0070.03718.10
5.6.130.0100.08318.18
5.6.120.0000.05321.02
5.6.110.0200.06721.05
5.6.100.0170.04321.18
5.6.90.0070.05321.19
5.6.80.0030.04020.54
5.5.350.0100.08720.56
5.5.340.0170.07318.02
5.5.330.0000.05720.47
5.5.320.0570.06020.46
5.5.310.0170.03720.27
5.5.300.0100.04317.92
5.5.290.0030.05018.01
5.5.280.0170.07320.88
5.5.270.0070.04320.71
5.5.260.0100.08320.84
5.5.250.0100.08020.72
5.5.240.0100.07020.18
5.4.450.0830.05719.26
5.4.440.0700.07019.43
5.4.430.1100.06019.47
5.4.420.0630.00019.31
5.4.410.0130.06018.96
5.4.400.0370.06718.80
5.4.390.0270.07718.73
5.4.380.0130.04718.73
5.4.370.0230.04318.68
5.4.360.0200.05018.80
5.4.350.0090.04312.17
5.4.340.0070.03612.17
5.4.320.0040.03712.65
5.4.310.0080.04112.65
5.4.300.0060.03712.65
5.4.290.0060.04012.64
5.4.280.0050.03612.55
5.4.270.0030.03812.55
5.4.260.0080.03412.55
5.4.250.0060.04012.54
5.4.240.0050.04012.55
5.4.230.0080.04212.54
5.4.220.0070.03512.54
5.4.210.0110.03212.54
5.4.200.0070.03812.54
5.4.190.0040.03812.54
5.4.180.0050.03712.53
5.4.170.0070.03612.55
5.4.160.0060.03812.54
5.4.150.0060.04012.54
5.4.140.0080.04912.22
5.4.130.0090.03712.21
5.4.120.0050.04112.17
5.4.110.0100.03712.16
5.4.100.0110.05112.16
5.4.90.0170.05012.16
5.4.80.0080.05012.16
5.4.70.0090.04212.16
5.4.60.0080.04312.16
5.4.50.0070.04012.16
5.4.40.0130.05012.14
5.4.30.0190.08012.15
5.4.20.0130.05112.14
5.4.10.0210.06212.15
5.4.00.0110.04611.64
5.3.290.0100.04612.91
5.3.280.0170.06912.84
5.3.270.0080.05612.85
5.3.260.0130.05212.86
5.3.250.0050.05412.85
5.3.240.0080.05412.86
5.3.230.0070.05212.84
5.3.220.0110.05512.82
5.3.210.0080.06512.81
5.3.200.0060.06412.81
5.3.190.0080.05912.81
5.3.180.0130.07912.81
5.3.170.0230.07312.81
5.3.160.0080.10012.81
5.3.150.0040.05812.81
5.3.140.0100.05412.80
5.3.130.0110.05712.80
5.3.120.0090.03912.80
5.3.110.0130.04812.79
5.3.100.0060.04412.28
5.3.90.0130.03712.22
5.3.80.0100.05312.25
5.3.70.0090.05212.25
5.3.60.0100.03712.23
5.3.50.0100.05112.18
5.3.40.0080.05012.15
5.3.30.0180.04512.14
5.3.20.0090.04311.93
5.3.10.0080.04011.89
5.3.00.0100.04111.88
5.2.170.0090.0759.19
5.2.160.0080.0479.19
5.2.150.0050.0499.18
5.2.140.0080.0459.18
5.2.130.0110.0639.14
5.2.120.0150.0559.14
5.2.110.0180.0629.15
5.2.100.0100.0429.14
5.2.90.0100.0389.14
5.2.80.0060.0449.14
5.2.70.0070.0459.14
5.2.60.0130.0969.10
5.2.50.0040.0469.07
5.2.40.0110.0609.04
5.2.30.0090.0549.02
5.2.20.0100.0549.00
5.2.10.0140.0498.92
5.2.00.0150.0658.79
5.1.60.0100.0578.07
5.1.50.0110.0368.06
5.1.40.0050.0348.05
5.1.30.0070.0378.40
5.1.20.0090.0378.43
5.1.10.0150.0628.15
5.1.00.0050.0458.15
5.0.50.0090.0526.63
5.0.40.0160.0446.48
5.0.30.0060.0456.29
5.0.20.0030.0396.26
5.0.10.0040.0256.24
5.0.00.0050.0316.24
4.4.90.0030.0164.77
4.4.80.0050.0294.75
4.4.70.0080.0314.75
4.4.60.0060.0234.75
4.4.50.0060.0244.77
4.4.40.0030.0474.70
4.4.30.0060.0244.76
4.4.20.0040.0274.84
4.4.10.0040.0264.85
4.4.00.0030.0404.76
4.3.110.0080.0284.66
4.3.100.0050.0344.66
4.3.90.0050.0234.63
4.3.80.0060.0434.58
4.3.70.0070.0434.63
4.3.60.0040.0274.63
4.3.50.0080.0184.63
4.3.40.0020.0374.54
4.3.30.0030.0363.29
4.3.20.0060.0213.27
4.3.10.0020.0263.23
4.3.00.0170.0236.68