3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = <<<X eyJleHBlcmltZW50SWQiOiJtanQwX3VSaVNQdXJOLXNBMThsclFRIiwiY2hvc2VuVmFyaWF0aW9uIjoiMSIsInVzZXJJc0luY2x1ZGVkIjoiMSJ9 X; $x = json_decode(base64_decode($x), true); $x['chosenVariation'] = 0; var_dump(base64_encode(json_encode($x)));
based on NJ40c

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.3.10.0210.00415.96
7.3.00.0120.00816.21
7.2.130.0050.01016.58
7.2.120.0100.01016.50
7.2.110.0080.00516.51
7.2.100.0040.01016.48
7.2.90.0050.00816.61
7.2.80.0020.00916.78
7.2.70.0080.00616.81
7.2.60.0060.00816.69
7.2.50.0060.00816.68
7.2.40.0100.00616.68
7.2.30.0090.00516.54
7.2.20.0090.00416.62
7.2.10.0100.00516.74
7.2.00.0080.00917.58
7.1.250.0080.00815.51
7.1.240.0070.00715.82
7.1.230.0150.00315.51
7.1.220.0040.00715.45
7.1.210.0070.00415.55
7.1.200.0060.00715.62
7.1.190.0070.00715.62
7.1.180.0060.00615.43
7.1.170.0000.01315.64
7.1.160.0030.00615.77
7.1.150.0150.00315.88
7.1.140.0160.00015.74
7.1.130.0080.00315.85
7.1.120.0070.01015.72
7.1.110.0100.00315.54
7.1.100.0030.00716.84
7.1.90.0070.00715.77
7.1.80.0040.01115.67
7.1.70.0030.01116.46
7.1.60.0050.01317.56
7.1.50.0140.01025.20
7.1.40.0160.00015.75
7.1.30.0090.01215.77
7.1.20.0090.00315.45
7.1.10.0040.00715.80
7.1.00.0070.03819.02
7.0.330.0040.01115.11
7.0.320.0030.00915.01
7.0.310.0040.00715.36
7.0.300.0000.01315.21
7.0.290.0060.00315.26
7.0.280.0040.00415.18
7.0.270.0070.00415.37
7.0.260.0070.00715.06
7.0.250.0150.00015.20
7.0.240.0130.00315.41
7.0.230.0110.00415.36
7.0.220.0090.00315.39
7.0.210.0060.01015.11
7.0.200.0430.00714.97
7.0.190.0090.00615.35
7.0.180.0030.00715.09
7.0.170.0090.00415.15
7.0.160.0000.01015.30
7.0.150.0090.00315.37
7.0.140.0040.04018.67
7.0.130.0060.00615.22
7.0.120.0060.00315.40
7.0.110.0100.00015.43
7.0.100.0000.00915.07
7.0.90.0040.00715.39
7.0.80.0310.02817.53
7.0.70.0280.04317.64
7.0.60.0310.03017.54
7.0.50.0050.02717.92
7.0.40.0080.03016.73
7.0.30.0050.04216.65
7.0.20.0020.03516.62
7.0.10.0070.03816.82
7.0.00.0040.04516.72
5.6.380.0000.01014.08
5.6.370.0110.00014.49
5.6.360.0070.00314.22
5.6.350.0070.00314.40
5.6.340.0070.00714.17
5.6.330.0090.00013.98
5.6.320.0030.01013.87
5.6.310.0040.00714.55
5.6.300.0080.00413.86
5.6.290.0080.00413.91
5.6.280.0060.03517.44
5.6.270.0070.00714.05
5.6.260.0030.00613.86
5.6.250.0000.01114.09
5.6.240.0100.00314.23
5.6.230.0080.02317.50
5.6.220.0050.04617.50
5.6.210.0070.03217.30
5.6.200.0060.04017.55
5.6.190.0100.03817.63
5.6.180.0110.02517.45
5.6.170.0090.04517.57
5.6.160.0080.04217.45
5.6.150.0060.02417.38
5.6.140.0070.02717.34
5.6.130.0080.02617.54
5.6.120.0070.04317.59
5.6.110.0020.03117.61
5.6.100.0070.04217.58
5.6.90.0110.03717.42
5.6.80.0090.02217.20
5.6.70.0060.02717.27
5.6.60.0130.02117.31
5.6.50.0090.03817.31
5.6.40.0110.03817.23
5.6.30.0120.03517.15
5.6.20.0060.04217.14
5.6.10.0090.03917.11
5.6.00.0080.02517.05
5.5.380.0030.00310.95
5.5.370.0060.02215.66
5.5.360.0030.03015.74
5.5.350.0030.04715.67
5.5.340.0110.04015.88
5.5.330.0040.04415.85
5.5.320.0030.04415.83
5.5.310.0060.02915.89
5.5.300.0150.03715.90
5.5.290.0040.02515.90
5.5.280.0090.03515.90
5.5.270.0030.03515.76
5.5.260.0080.03515.79
5.5.250.0070.04315.79
5.5.240.0070.03815.54
5.5.230.0060.03315.57
5.5.220.0130.03715.61
5.5.210.0050.02215.64
5.5.200.0110.02715.61
5.5.190.0080.03915.64
5.5.180.0090.02315.71
5.5.170.0090.00610.98
5.5.160.0060.03615.49
5.5.150.0040.04515.55
5.5.140.0110.02015.70
5.5.130.0060.02815.53
5.5.120.0100.02915.68
5.5.110.0040.04615.61
5.5.100.0060.03915.48
5.5.90.0050.02815.46
5.5.80.0090.03615.48
5.5.70.0070.02515.59
5.5.60.0090.03715.46
5.5.50.0020.03915.45
5.5.40.0090.02915.52
5.5.30.0050.02315.51
5.5.20.0100.02015.52
5.5.10.0050.03215.44
5.5.00.0050.03215.51
5.4.450.0030.02915.18
5.4.440.0070.03915.15
5.4.430.0130.04115.28
5.4.420.0110.03715.13
5.4.410.0110.02315.05
5.4.400.0090.03614.92
5.4.390.0070.04314.96
5.4.380.0100.03915.01
5.4.370.0070.02214.99
5.4.360.0080.03214.96
5.4.350.0080.03614.90
5.4.340.0060.04014.96
5.4.330.0060.00610.90
5.4.320.0090.04014.97
5.4.310.0050.04015.06
5.4.300.0130.03314.86
5.4.290.0060.02614.92
5.4.280.0050.04014.95
5.4.270.0060.02615.05
5.4.260.0100.02914.94
5.4.250.0100.02815.01
5.4.240.0070.04014.99
5.4.230.0070.04014.84
5.4.220.0020.02814.92
5.4.210.0050.04114.84
5.4.200.0030.04014.94
5.4.190.0060.02615.00
5.4.180.0030.03614.96
5.4.170.0050.04514.97
5.4.160.0030.03014.91
5.4.150.0040.03514.96
5.4.140.0040.04114.43
5.4.130.0070.01714.43
5.4.120.0020.03614.43
5.4.110.0030.02314.43
5.4.100.0070.04014.43
5.4.90.0050.02614.43
5.4.80.0050.03214.43
5.4.70.0070.04014.43
5.4.60.0040.03414.43
5.4.50.0090.03514.43
5.4.40.0070.03414.43
5.4.30.0030.04014.43
5.4.20.0080.03314.43
5.4.10.0060.02014.43
5.4.00.0080.03814.43
5.3.290.0050.03814.43
5.3.280.0020.04014.43
5.3.270.0070.03914.43
5.3.260.0040.04014.43
5.3.250.0080.03614.43
5.3.240.0100.02314.43
5.3.230.0070.02014.43
5.3.220.0050.03414.43
5.3.210.0110.03214.43
5.3.200.0070.02014.43
5.3.190.0070.02014.43
5.3.180.0020.04014.43
5.3.170.0060.04014.43
5.3.160.0070.03214.43
5.3.150.0030.04214.43
5.3.140.0090.02014.43
5.3.130.0040.03214.43
5.3.120.0080.02014.43
5.3.110.0070.03014.43
5.3.100.0050.03314.43
5.3.90.0030.02314.43
5.3.80.0050.02414.43
5.3.70.0040.02114.43
5.3.60.0050.03614.43
5.3.50.0050.02714.43
5.3.40.0030.02214.43
5.3.30.0060.04114.43
5.3.20.0100.03814.43
5.3.10.0060.02314.43
5.3.00.0080.03414.43
5.2.170.0070.03214.43
5.2.160.0070.02514.43
5.2.150.0030.03514.43
5.2.140.0040.03314.43
5.2.130.0080.01714.43
5.2.120.0050.02614.43
5.2.110.0080.03114.43
5.2.100.0070.03214.43
5.2.90.0090.02914.43
5.2.80.0030.03514.43
5.2.70.0040.03414.43
5.2.60.0040.03814.43
5.2.50.0110.02914.43
5.2.40.0070.03214.43
5.2.30.0090.03014.43
5.2.20.0000.03114.43
5.2.10.0050.02014.43
5.2.00.0060.03014.43
5.1.60.0070.02814.43
5.1.50.0100.02214.43
5.1.40.0050.02414.43
5.1.30.0040.01814.43
5.1.20.0030.03014.43
5.1.10.0050.02714.43
5.1.00.0040.03114.43
5.0.50.0030.01314.43
5.0.40.0050.01714.43
5.0.30.0030.03414.43
5.0.20.0020.01914.43
5.0.10.0050.01814.43
5.0.00.0020.03114.43
4.4.90.0070.01314.43
4.4.80.0070.01514.43
4.4.70.0030.02014.43
4.4.60.0050.01714.43
4.4.50.0030.01714.43
4.4.40.0010.02114.43
4.4.30.0070.01314.43
4.4.20.0050.01814.43
4.4.10.0030.01514.43
4.4.00.0000.03114.43
4.3.110.0000.01914.43
4.3.100.0030.01514.43
4.3.90.0020.01214.43
4.3.80.0010.02814.43
4.3.70.0020.01714.43
4.3.60.0050.01614.43
4.3.50.0000.01514.43
4.3.40.0020.02714.43
4.3.30.0030.01014.43
4.3.20.0010.01014.43
4.3.10.0000.01714.43
4.3.00.0020.01814.43