3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php f((double)5); function f(double $d){ var_dump($d); }

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.50.0090.00614.67
7.3.40.0080.00714.59
7.3.30.0080.00814.60
7.3.20.0120.00715.64
7.3.10.0110.00715.70
7.3.00.0130.00715.71
7.2.180.0080.00814.88
7.2.170.0080.00814.82
7.2.160.0080.00814.82
7.2.150.0100.00915.87
7.2.140.0100.00715.88
7.2.130.0110.00615.88
7.2.120.0130.00815.86
7.2.110.0140.00815.85
7.2.100.0100.00715.88
7.2.90.0100.00815.91
7.2.80.0100.00815.90
7.2.70.0110.00715.83
7.2.60.0110.00715.84
7.2.50.0120.00815.90
7.2.40.0100.00715.91
7.2.30.0100.00715.90
7.2.20.0120.00615.89
7.2.10.0100.00715.81
7.2.00.0150.00615.84
7.1.280.0130.00714.73
7.1.270.0120.00714.71
7.1.260.0130.00714.73
7.1.250.0080.00614.75
7.1.240.0190.01014.94
7.1.230.0180.00514.90
7.1.220.0140.01214.49
7.1.210.0180.01214.86
7.1.200.0230.01014.35
7.1.190.0200.00814.46
7.1.180.0220.00914.85
7.1.170.0150.00914.93
7.1.160.0170.00914.96
7.1.150.0170.00914.85
7.1.140.0170.00914.46
7.1.130.0140.01014.50
7.1.120.0170.00614.53
7.1.110.0150.00814.51
7.1.100.0510.00414.47
7.1.90.0190.00414.56
7.1.80.0170.00714.51
7.1.70.0180.01014.41
7.1.60.0180.00614.47
7.1.50.0140.00914.56
7.1.40.0110.00714.33
7.1.30.0160.00814.51
7.1.20.0150.01014.41
7.1.10.0190.01114.37
7.1.00.0170.01014.52
7.0.330.0250.00614.54
7.0.320.0210.00614.46
7.0.310.0150.00914.03
7.0.300.0180.00714.56
7.0.290.0120.01114.52
7.0.280.0170.01014.44
7.0.270.0170.00914.11
7.0.260.0160.00614.26
7.0.250.0160.00514.22
7.0.240.0170.00814.17
7.0.230.0150.01014.27
7.0.220.0150.00714.18
7.0.210.0300.00814.18
7.0.200.0170.00514.17
7.0.190.0150.00714.26
7.0.180.0160.00714.18
7.0.170.0130.01114.26
7.0.160.0160.00914.13
7.0.150.0150.00914.14
7.0.140.0200.00714.17
7.0.130.0130.01114.19
7.0.120.0240.01114.10
7.0.110.0110.00914.22
7.0.100.0250.00714.21
7.0.90.0180.00814.24
7.0.80.0200.00614.18
7.0.70.0140.00714.19
7.0.60.0110.01013.98
7.0.50.0150.01114.04
7.0.40.0150.00914.17
7.0.30.0140.00514.18
7.0.20.0210.00714.20
7.0.10.0150.00814.27
7.0.00.0170.00714.32
hhvm-3.22.00.1640.17691.47
hhvm-3.21.30.1310.18789.06
hhvm-3.21.00.1400.21089.07
hhvm-3.20.20.1340.17289.80
hhvm-3.19.20.1370.18188.86
hhvm-3.18.50.1480.18787.45
hhvm-3.18.40.1280.19087.37
hhvm-3.17.30.1130.15486.63
hhvm-3.15.40.1210.15084.43
hhvm-3.13.20.1430.18395.72
hhvm-3.12.140.1220.18894.61
hhvm-3.11.10.1230.16886.30
hhvm-3.10.10.1160.15983.52
5.6.400.0170.00714.14
5.6.390.0140.01014.15
5.6.380.0200.00814.23
5.6.370.0170.01014.25
5.6.360.0110.01414.19
5.6.350.0170.01014.15
5.6.340.0180.00914.25
5.6.330.0180.01114.07
5.6.320.0130.00714.12
5.6.310.0130.01014.08
5.6.300.0130.01214.17
5.6.290.0140.00914.28
5.6.280.0120.00814.15
5.6.270.0130.00514.21
5.6.260.0160.01214.19
5.6.250.0110.01314.14
5.6.240.0120.00914.19
5.6.230.0190.00714.05
5.6.220.0150.01014.16
5.6.210.0130.01113.96
5.6.200.0160.00814.08
5.6.190.0110.00913.88
5.6.180.0160.00614.12
5.6.170.0150.00914.14
5.6.160.0100.01013.99
5.6.150.0130.00914.01
5.6.140.0170.00514.13
5.6.130.0140.00914.18
5.6.120.0140.00914.05
5.6.110.0140.00714.01
5.6.100.0150.01114.17
5.6.90.0140.01114.02
5.6.80.0160.00714.17
5.6.70.0090.01014.00
5.6.60.0110.01014.03
5.6.50.0120.01314.00
5.6.40.0120.01014.08
5.6.30.0100.01314.12
5.6.20.0140.00814.09
5.6.10.0140.00813.99
5.6.00.0120.00914.08
5.5.380.0170.00714.16
5.5.370.0170.00813.99
5.5.360.0120.00813.94
5.5.350.0120.01014.13
5.5.340.0100.01213.89
5.5.330.0120.00813.81
5.5.320.0110.00814.07
5.5.310.0150.00713.94
5.5.300.0120.00814.06
5.5.290.0140.00714.06
5.5.280.0120.00713.94
5.5.270.0120.00813.97
5.5.260.0160.00813.93
5.5.250.0170.00813.84
5.5.240.0140.00713.93
5.5.230.0110.01113.91
5.5.220.0130.01014.09
5.5.210.0130.00913.97
5.5.200.0120.01013.98
5.5.190.0120.00913.94
5.5.180.0170.00813.94
5.5.170.0140.00814.00
5.5.160.0130.01013.93
5.5.150.0150.00414.09
5.5.140.0170.00613.87
5.5.130.0140.00713.82
5.5.120.0150.00914.09
5.5.110.0170.00513.91
5.5.100.0170.00913.95
5.5.90.0100.01113.86
5.5.80.0120.00613.97
5.5.70.0150.00614.01
5.5.60.0170.00713.89
5.5.50.0150.00714.07
5.5.40.0150.00813.90
5.5.30.0160.00914.00
5.5.20.0120.01013.97
5.5.10.0130.00913.82
5.5.00.0130.00813.73
5.4.450.0090.00613.21
5.4.440.0090.00613.21
5.4.430.0120.00613.21
5.4.420.0100.00713.21
5.4.410.0150.00413.21
5.4.400.0090.00813.21
5.4.390.0110.00413.21
5.4.380.0110.00313.21
5.4.370.0080.00813.21
5.4.360.0120.00413.21
5.4.350.0110.00313.21
5.4.340.0110.00613.21
5.4.330.0100.00513.21
5.4.320.0160.00413.21
5.4.310.0120.00413.21
5.4.300.0100.00713.21
5.4.290.0110.00413.21
5.4.280.0070.00613.21
5.4.270.0110.00713.21
5.4.260.0100.00713.21
5.4.250.0100.00513.21
5.4.240.0100.00613.21
5.4.230.0090.00713.21
5.4.220.0110.00313.21
5.4.210.0120.00713.21
5.4.200.0110.00613.21
5.4.190.0090.00613.21
5.4.180.0110.00613.21
5.4.170.0110.00613.21
5.4.160.0100.00713.21
5.4.150.0120.00713.21
5.4.140.0100.00413.21
5.4.130.0120.00413.21
5.4.120.0120.00513.21
5.4.110.0100.00613.21
5.4.100.0100.00513.21
5.4.90.0100.00713.21
5.4.80.0120.00813.21
5.4.70.0100.00713.21
5.4.60.0100.00713.21
5.4.50.0090.00913.21
5.4.40.0120.00713.21
5.4.30.0140.00713.21
5.4.20.0130.00313.21
5.4.10.0090.00813.21
5.4.00.0110.00613.21
5.3.290.0110.00613.21
5.3.280.0090.00713.21
5.3.270.0090.00813.21
5.3.260.0090.00713.21
5.3.250.0100.00613.21
5.3.240.0100.00713.21
5.3.230.0100.00313.21
5.3.220.0080.00713.21
5.3.210.0090.00713.21
5.3.200.0100.00613.21
5.3.190.0120.00313.21
5.3.180.0100.00213.21
5.3.170.0130.00613.21
5.3.160.0100.00413.21
5.3.150.0110.00413.21
5.3.140.0090.00713.21
5.3.130.0090.00613.21
5.3.120.0110.00313.21
5.3.110.0060.00913.21
5.3.100.0100.00413.21
5.3.90.0070.00713.21
5.3.80.0100.00513.21
5.3.70.0110.00513.21
5.3.60.0100.00413.21
5.3.50.0060.00713.21
5.3.40.0070.00713.21
5.3.30.0100.00513.21
5.3.20.0090.00413.21
5.3.10.0100.00613.21
5.3.00.0110.00513.21
5.2.170.0080.00513.21
5.2.160.0070.00613.21
5.2.150.0080.00513.21
5.2.140.0110.00413.21
5.2.130.0080.00513.21
5.2.120.0080.00513.21
5.2.110.0080.00613.21
5.2.100.0060.00613.21
5.2.90.0060.00713.21
5.2.80.0080.00413.21
5.2.70.0080.00413.21
5.2.60.0050.00613.21
5.2.50.0120.00113.21
5.2.40.0050.00713.21
5.2.30.0070.00513.21
5.2.20.0080.00613.21
5.2.10.0070.00513.21
5.2.00.0080.00313.21
5.1.60.0090.00313.21
5.1.50.0060.00413.21
5.1.40.0050.00413.21
5.1.30.0070.00513.21
5.1.20.0060.00513.21
5.1.10.0060.00313.21
5.1.00.0080.00313.21
5.0.50.0060.00413.21
5.0.40.0060.00513.21
5.0.30.0070.00613.21
5.0.20.0060.00513.21
5.0.10.0050.00513.21
5.0.00.0050.00313.21
4.4.90.0030.00413.21
4.4.80.0040.00513.21
4.4.70.0070.00313.21
4.4.60.0040.00313.21
4.4.50.0050.00313.21
4.4.40.0060.00213.21
4.4.30.0060.00213.21
4.4.20.0040.00313.21
4.4.10.0030.00713.21
4.4.00.0050.00413.21
4.3.110.0030.00413.21
4.3.100.0050.00413.21
4.3.90.0050.00413.21
4.3.80.0050.00413.21
4.3.70.0040.00313.21
4.3.60.0020.00713.21
4.3.50.0060.00313.21
4.3.40.0030.00713.21
4.3.30.0040.00413.21
4.3.20.0020.00513.21
4.3.10.0020.00313.21
4.3.00.0020.00413.21