3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f(&$a) {} function &g($a) { $v = $a; return $v; } $a = function() {}; f(intval(true));

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.0060.00616.81
7.2.00.1110.00717.38
7.1.200.0090.00015.59
7.1.100.0000.01118.01
7.1.70.0040.00417.25
7.1.60.0180.00719.40
7.1.50.0100.01316.86
7.1.00.0030.07722.36
7.0.200.0080.00016.63
7.0.140.0070.07022.12
7.0.120.0070.07022.09
7.0.60.0000.04320.02
7.0.50.0070.07717.87
7.0.40.0100.08017.80
7.0.30.0070.05017.94
7.0.20.0100.07717.72
7.0.10.0100.08017.70
7.0.00.0070.08017.81
5.6.210.0030.04720.70
5.6.200.0000.04318.20
5.6.190.0030.05718.29
5.6.180.0070.08018.15
5.6.170.0170.07718.18
5.6.160.0270.03718.14
5.6.150.0100.03718.20
5.6.140.0030.05318.18
5.6.130.0070.05018.21
5.6.120.0170.07318.13
5.6.110.0070.04018.28
5.6.100.0130.07318.27
5.6.90.0000.04718.16
5.6.80.0030.04317.56
5.6.70.0000.04317.50
5.6.60.0030.04317.55
5.6.50.0100.07017.54
5.6.40.0030.04017.54
5.6.30.0030.04017.50
5.6.20.0030.04317.54
5.6.10.0030.05717.55
5.6.00.0070.07717.50
5.5.350.0130.07720.35
5.5.340.0000.04317.99
5.5.330.0070.05317.98
5.5.320.0100.08018.09
5.5.310.0100.03717.93
5.5.300.0100.03317.98
5.5.290.0100.07717.98
5.5.280.0070.07317.94
5.5.270.0030.06317.95
5.5.260.0130.06318.01
5.5.250.0070.06717.79
5.5.240.0030.04317.45
5.5.230.0100.08017.34
5.5.220.0100.07317.35
5.5.210.0100.06017.41
5.5.200.0070.08017.31
5.5.190.0030.04717.42
5.5.180.0000.04317.34
5.5.160.0100.05317.32
5.5.150.0070.03717.31
5.5.140.0130.03017.27
5.5.130.0070.04717.48
5.5.120.0070.07317.34
5.5.110.0030.06317.32
5.5.100.0100.06017.25
5.5.90.0130.07017.23
5.5.80.0100.07717.32
5.5.70.0030.06717.22
5.5.60.0070.07317.16
5.5.50.0070.05717.24
5.5.40.0130.07317.32
5.5.30.0030.05017.32
5.5.20.0030.06717.32
5.5.10.0030.08017.32
5.5.00.0130.07017.32
5.4.450.0030.04019.39
5.4.440.0070.04019.37
5.4.430.0130.03019.41
5.4.420.0070.03719.35
5.4.410.0070.04319.17
5.4.400.0070.04019.04
5.4.390.0100.07018.95
5.4.380.0100.05019.01
5.4.370.0030.04319.05
5.4.360.0000.07019.02
5.4.350.0030.06319.04
5.4.340.0000.04319.01
5.4.320.0030.06019.12
5.4.310.0100.07319.05
5.4.300.0070.05019.04
5.4.290.0070.05719.04
5.4.280.0100.03319.00
5.4.270.0000.05018.88
5.4.260.0030.08019.27
5.4.250.0130.03019.02
5.4.240.0100.04718.88
5.4.230.0170.06719.02
5.4.220.0070.07718.97
5.4.210.0100.06319.04
5.4.200.0000.08719.00
5.4.190.0100.06719.25
5.4.180.0070.04718.88
5.4.170.0100.07718.97
5.4.160.0070.07019.06
5.4.150.0070.03719.01
5.4.140.0130.04016.41
5.4.130.0030.06316.41
5.4.120.0170.07016.34
5.4.110.0170.06716.46
5.4.100.0070.07316.52
5.4.90.0070.07016.45
5.4.80.0200.04316.42
5.4.70.0000.07716.41
5.4.60.0070.04716.43
5.4.50.0030.04316.38
5.4.40.0070.03316.50
5.4.30.0070.05716.42
5.4.20.0030.03716.26
5.4.10.0030.03716.43
5.4.00.0070.03715.90
5.3.290.0070.04314.52
5.3.280.0070.08014.65
5.3.270.0100.06714.56
5.3.260.0100.07714.67
5.3.250.0000.04314.57
5.3.240.0030.07014.57
5.3.230.0030.06014.65
5.3.220.0170.06314.54
5.3.210.0070.07714.55
5.3.200.0030.05314.67
5.3.190.0170.04014.62
5.3.180.0070.07014.64
5.3.170.0070.07314.57
5.3.160.0170.06314.58
5.3.150.0000.07314.56
5.3.140.0030.08014.58
5.3.130.0100.07014.59
5.3.120.0100.05314.77
5.3.110.0030.03714.60
5.3.100.0000.04014.07
5.3.90.0030.03314.06
5.3.80.0030.03714.02
5.3.70.0000.04013.90
5.3.60.0030.03313.98
5.3.50.0000.03713.85
5.3.40.0070.03713.85
5.3.30.0030.03313.91
5.3.20.0030.03313.59
5.3.10.0070.03013.86
5.3.00.0030.03713.48
5.2.170.0000.03711.19
5.2.160.0000.03311.19
5.2.150.0000.03011.21
5.2.140.0030.02711.15
5.2.130.0000.03011.10
5.2.120.0000.03011.12
5.2.110.0030.03011.00
5.2.100.0070.02311.14
5.2.90.0000.03010.99
5.2.80.0030.02710.99
5.2.70.0000.03011.20
5.2.60.0030.02711.12
5.2.50.0030.03011.23
5.2.40.0030.02710.90
5.2.30.0070.02311.00
5.2.20.0000.03011.01
5.2.10.0000.03010.85
5.2.00.0030.02710.71
5.1.60.0000.02310.21
5.1.50.0000.0239.97
5.1.40.0000.02310.02
5.1.30.0000.02710.30
5.1.20.0030.02310.40
5.1.10.0030.02710.07
5.1.00.0000.02710.05
5.0.50.0000.0208.38
5.0.40.0000.0208.41
5.0.30.0000.0308.21
5.0.20.0030.0208.25
5.0.10.0070.0138.21
5.0.00.0000.0308.13
4.4.90.0000.0137.57
4.4.80.0000.0177.57
4.4.70.0000.0177.57
4.4.60.0000.0177.57
4.4.50.0000.0137.57
4.4.40.0070.0177.57
4.4.30.0030.0137.57
4.4.20.0070.0137.57
4.4.10.0000.0137.57
4.4.00.0000.0237.57
4.3.110.0000.0137.57
4.3.100.0000.0137.57
4.3.90.0000.0137.57
4.3.80.0000.0237.57
4.3.70.0000.0177.57
4.3.60.0000.0137.57
4.3.50.0000.0177.57
4.3.40.0000.0277.57
4.3.30.0000.0137.57
4.3.20.0030.0177.57
4.3.10.0000.0177.57
4.3.00.0000.0137.57