3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $service = "www"; $variation_array = array( 'lowercase true' => true, 'lowercase false' =>false, 'uppercase TRUE' =>TRUE, 'uppercase FALSE' =>FALSE, ); foreach ( $variation_array as $var ) { var_dump(getservbyname( $service, $var ) ); }

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.60.0110.00817.04
7.2.00.0030.01919.38
7.1.200.0060.01115.82
7.1.100.0070.02618.36
7.1.70.0000.01217.41
7.1.60.0130.02319.46
7.1.50.0100.02417.20
7.1.00.0030.09022.55
7.0.200.0070.00717.10
7.0.140.0070.08322.18
7.0.60.0100.09720.19
7.0.50.0100.06017.95
7.0.40.0200.08020.14
7.0.30.0200.05320.36
7.0.20.0370.08020.29
7.0.10.0130.07320.35
7.0.00.0030.04720.18
5.6.280.0130.07721.00
5.6.210.0200.07720.69
5.6.200.0070.06318.31
5.6.190.0130.07720.72
5.6.180.0300.08020.59
5.6.170.0300.08020.63
5.6.160.0030.04720.83
5.6.150.0100.08718.24
5.6.140.0070.05318.30
5.6.130.0170.08318.46
5.6.120.0030.06321.22
5.6.110.0070.09321.12
5.6.100.0030.04721.25
5.6.90.0030.07021.15
5.6.80.0030.06320.66
5.6.70.4470.04020.64
5.5.350.0130.08320.51
5.5.340.0030.09718.07
5.5.330.0130.06020.25
5.5.320.0270.08320.39
5.5.310.0230.04320.48
5.5.300.0030.05318.11
5.5.290.0070.09018.04
5.5.280.0130.09020.99
5.5.270.0100.09720.91
5.5.260.0070.09020.95
5.5.250.0070.09320.82
5.5.240.0070.05020.28
5.4.450.3770.04319.45
5.4.440.3230.05019.34
5.4.430.3570.06019.52
5.4.420.0170.08019.52
5.4.410.3730.03719.20
5.4.400.3830.03719.20
5.4.390.3600.04319.28
5.4.380.3300.04719.20
5.4.370.3670.02719.04
5.4.360.0400.07019.05
5.4.350.1470.05019.10
5.4.340.3630.03719.34
5.4.320.3730.04719.32
5.4.310.3970.04719.21
5.4.300.3630.04019.21
5.4.290.3470.04319.09
5.4.280.3970.04019.36
5.4.270.3630.04019.36
5.4.260.3670.04719.34
5.4.250.3970.04719.11
5.4.240.2900.04719.21
5.4.230.4270.06019.00
5.4.220.3570.04019.25
5.4.210.3400.04019.36
5.4.200.3970.05019.02
5.4.190.3970.04319.18
5.4.180.3700.04319.26
5.4.170.3630.04319.20
5.4.160.3770.03719.25
5.4.150.2700.04719.18
5.4.140.4070.03716.62
5.4.130.3600.04316.44
5.4.120.3770.03716.64
5.4.110.3600.04716.47
5.4.100.3830.04016.51
5.4.90.3800.04716.64
5.4.80.4500.04716.56
5.4.70.3670.04316.50
5.4.60.3570.04316.49
5.4.50.4000.04016.65
5.4.40.3530.04316.57
5.4.30.3870.04016.55
5.4.20.3570.04016.62
5.4.10.3770.04016.48
5.4.00.3570.04316.16
5.3.290.3700.03714.82
5.3.280.3600.04314.82
5.3.270.3700.04714.82
5.3.260.3400.03714.82
5.3.250.3470.03314.82
5.3.240.3630.05014.82
5.3.230.3970.04314.82
5.3.220.3830.04314.82
5.3.210.3730.04314.82
5.3.200.3970.03714.82
5.3.190.3730.03714.82
5.3.180.3830.04314.82
5.3.170.3670.05014.82
5.3.160.3800.04314.82
5.3.150.3670.04714.82
5.3.140.3600.04714.82
5.3.130.3970.04714.82
5.3.120.3600.04314.82
5.3.110.3570.04714.82
5.3.100.3970.04014.82
5.3.90.3630.05314.82
5.3.80.3670.04014.82
5.3.70.4030.03314.82
5.3.60.3700.04314.82
5.3.50.3500.03714.82
5.3.40.3670.04014.82
5.3.30.3830.03714.82
5.3.20.3400.04314.82
5.3.10.2230.04014.82
5.3.00.2700.04014.82
5.2.170.2870.03014.82
5.2.160.3030.03314.82
5.2.150.3030.03314.82
5.2.140.2800.05014.82
5.2.130.1270.03014.82
5.2.120.1030.03714.82
5.2.110.1700.03714.82
5.2.100.2430.03314.82
5.2.90.2970.03014.82
5.2.80.2600.03314.82
5.2.70.2570.03714.82
5.2.60.2670.03314.82
5.2.50.2170.03314.82
5.2.40.1830.03314.82
5.2.30.1230.03014.82
5.2.20.1930.03714.82
5.2.10.1700.03014.82
5.2.00.0670.03714.82
5.1.60.0500.03014.82
5.1.50.0130.03714.82
5.1.40.0170.04014.82
5.1.30.0230.04714.82
5.1.20.0130.03314.82
5.1.10.0200.02314.82
5.1.00.0200.04014.82
5.0.50.0070.02714.82
5.0.40.0170.02714.82
5.0.30.0070.07014.82
5.0.20.0070.03314.82
5.0.10.0100.05314.82
5.0.00.0100.05014.82
4.4.90.0900.01714.82
4.4.80.0800.02314.82
4.4.70.0400.02314.82
4.4.60.0530.02014.82
4.4.50.1100.02314.82
4.4.40.0100.02314.82
4.4.30.0070.02014.82
4.4.20.0100.03014.82
4.4.10.0100.02314.82
4.4.00.0130.06014.82
4.3.110.0070.03314.82
4.3.100.0100.03014.82
4.3.90.0070.02014.82
4.3.80.0070.03014.82
4.3.70.0070.02714.82
4.3.60.0030.02014.82
4.3.50.0070.02014.82
4.3.40.0070.03014.82
4.3.30.0070.01714.82
4.3.20.0100.01714.82
4.3.10.0030.02014.82
4.3.00.0030.04014.82