3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Devzone { public $about = 'PHP7'; public $performance = 'How well does PHP 7 perform?'; } $devzone = new Devzone(); echo $devzone->about . "\n"; echo $devzone->performance . "\n"; echo PHP_VERSION . "\n";

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.0070.01016.57
7.2.00.0000.01019.18
7.1.200.0060.00615.68
7.1.100.0890.00616.27
7.1.70.0000.01717.14
7.1.60.0040.01317.18
7.1.50.0090.00916.54
7.1.40.0040.00716.33
7.1.30.0060.01316.76
7.1.20.0110.00816.44
7.1.10.0170.00316.59
7.1.00.0060.00616.73
7.0.200.0090.00216.91
7.0.190.0000.01516.71
7.0.180.0120.00016.25
7.0.170.0080.00816.39
7.0.160.0080.00816.04
7.0.150.0100.00316.25
7.0.140.0130.00016.40
7.0.130.0070.00716.42
7.0.120.0140.01416.33
7.0.110.0030.01216.39
7.0.100.0100.00316.42
7.0.90.0000.01116.31
7.0.80.0070.00716.63
7.0.70.0100.00316.32
7.0.60.0040.00816.23
7.0.50.0080.00816.46
7.0.40.0070.01015.30
7.0.30.0130.00015.30
7.0.20.0040.00815.30
7.0.10.0030.01315.30
7.0.00.0060.00915.30
hhvm-3.17.30.0630.09796.28
hhvm-3.15.40.0450.11594.27
hhvm-3.13.20.0410.113100.49
hhvm-3.12.140.0370.01768.61
hhvm-3.11.10.0480.09199.14
hhvm-3.10.10.0520.10395.86
5.6.300.0030.05020.80
5.6.290.0070.04720.78
5.6.280.0110.05420.98
5.6.270.0100.08221.00
5.6.260.0100.07520.98
5.6.250.0070.04120.86
5.6.240.0000.05621.05
5.6.230.0070.04120.85
5.6.220.0130.03820.94
5.6.210.0000.05321.03
5.6.200.0040.04520.84
5.6.190.0070.04720.83
5.6.180.0040.04420.79
5.6.170.0190.04420.82
5.6.160.0180.07120.98
5.6.150.0030.05720.82
5.6.140.0030.08320.75
5.6.130.0070.05220.93
5.6.120.0030.04720.73
5.6.110.0070.05820.75
5.6.100.0120.03720.80
5.6.90.0030.05220.80
5.6.80.0040.05120.31
5.6.70.0040.04420.36
5.6.60.0070.05020.32
5.6.50.0130.07320.21
5.6.40.0120.03320.31
5.6.30.0100.04420.13
5.6.20.0100.04920.34
5.6.10.0120.03520.34
5.6.00.0140.04120.32
5.5.380.0130.03317.46
5.5.370.0100.03217.56
5.5.360.0030.04717.55
5.5.350.0070.04317.51
5.5.340.0070.03718.01
5.5.330.0000.04517.89
5.5.320.0030.04118.13
5.5.310.0060.03818.10
5.5.300.0000.04718.00
5.5.290.0000.08118.05
5.5.280.0030.04018.04
5.5.270.0070.03818.07
5.5.260.0100.05917.83
5.5.250.0070.07217.80
5.5.240.0040.04017.48
5.5.230.0030.04517.21
5.5.220.0030.07617.38
5.5.210.0030.04017.50
5.5.200.0000.04017.42
5.5.190.0070.03817.09
5.5.180.0060.04417.09
5.5.160.0070.04317.06
5.5.150.0060.03917.35
5.5.140.0030.04117.09
5.5.130.0070.05017.38
5.5.120.0000.04917.18
5.5.110.0030.04217.34
5.5.100.0100.04917.27
5.5.90.0090.03617.35
5.5.80.0030.03817.29
5.5.70.0030.03816.95
5.5.60.0070.04317.11
5.5.50.0030.04117.36
5.5.40.0030.04217.10
5.5.30.0100.03217.27
5.5.20.0060.04517.12
5.5.10.0100.04117.07
5.5.00.0070.04417.24
5.4.450.0000.05019.53
5.4.440.0130.05919.28
5.4.430.0030.05219.54
5.4.420.0030.03919.30
5.4.410.0100.06519.17
5.4.400.0110.03319.00
5.4.390.0000.06319.07
5.4.380.0070.04418.95
5.4.370.0070.05719.10
5.4.360.0030.06819.16
5.4.350.0070.03618.98
5.4.340.0000.04719.20
5.4.320.0070.03819.07
5.4.310.0120.03119.15
5.4.300.0030.04318.91
5.4.290.0070.04318.89
5.4.280.0100.03318.88
5.4.270.0100.04019.22
5.4.260.0060.03519.09
5.4.250.0100.03618.88
5.4.240.0090.03319.23
5.4.230.0030.03919.13
5.4.220.0000.04819.05
5.4.210.0090.03718.88
5.4.200.0100.03219.09
5.4.190.0130.03218.98
5.4.180.0070.03818.96
5.4.170.0040.05219.07
5.4.160.0210.03219.17
5.4.150.0040.05518.97
5.4.140.0130.03616.75
5.4.130.0000.04216.61
5.4.120.0160.03116.49
5.4.110.0040.04916.45
5.4.100.0080.04416.45
5.4.90.0130.03316.36
5.4.80.0150.02916.72
5.4.70.0120.04216.43
5.4.60.0090.04316.68
5.4.50.0080.03816.44
5.4.40.0030.05016.70
5.4.30.0130.04016.43
5.4.20.0120.03616.64
5.4.10.0130.03516.59
5.4.00.0160.03316.09
5.3.290.0030.04415.30
5.3.280.0130.03315.30
5.3.270.0160.03215.30
5.3.260.0070.03615.30
5.3.250.0100.03815.30
5.3.240.0130.03515.30
5.3.230.0120.04015.30
5.3.220.0100.03815.30
5.3.210.0070.03915.30
5.3.200.0070.04115.30
5.3.190.0030.04115.30
5.3.180.0070.03715.30
5.3.170.0030.04015.30
5.3.160.0040.04415.30
5.3.150.0040.04315.30
5.3.140.0040.03815.30
5.3.130.0040.04615.30
5.3.120.0000.04915.30
5.3.110.0100.03615.30
5.3.100.0030.03615.30
5.3.90.0000.03815.30
5.3.80.0000.04515.30
5.3.70.0060.03215.30
5.3.60.0070.03115.30
5.3.50.0070.03015.30
5.3.40.0060.04115.30
5.3.30.0060.03215.30
5.3.20.0040.03215.30
5.3.10.0000.03815.30
5.3.00.0090.02815.30
5.2.170.0030.05115.30
5.2.160.0070.02415.30
5.2.150.0030.02815.30
5.2.140.0030.02915.30
5.2.130.0000.04515.30
5.2.120.0030.03715.30
5.2.110.0120.03115.30
5.2.100.0030.02815.30
5.2.90.0030.02815.30
5.2.80.0030.03815.30
5.2.70.0030.02815.30
5.2.60.0090.02615.30
5.2.50.0110.02215.30
5.2.40.0030.06415.30
5.2.30.0100.05115.30
5.2.20.0100.04515.30
5.2.10.0060.02515.30
5.2.00.0060.02715.30
5.1.60.0000.03615.30
5.1.50.0030.04415.30
5.1.40.0030.02415.30
5.1.30.0030.02715.30
5.1.20.0030.02715.30
5.1.10.0030.02715.30
5.1.00.0040.04915.30
5.0.50.0000.03015.30
5.0.40.0070.04015.30
5.0.30.0000.03315.30
5.0.20.0070.01515.30
5.0.10.0030.02015.30
5.0.00.0060.02815.30
4.4.90.0030.01415.30
4.4.80.0060.01215.30
4.4.70.0000.01715.30
4.4.60.0000.02115.30
4.4.50.0070.01215.30
4.4.40.0000.03915.30
4.4.30.0030.01615.30
4.4.20.0030.01615.30
4.4.10.0000.02715.30
4.4.00.0000.05915.30
4.3.110.0000.02215.30
4.3.100.0050.01315.30
4.3.90.0000.02115.30
4.3.80.0030.02415.30
4.3.70.0000.01815.30
4.3.60.0000.01815.30
4.3.50.0060.01215.30
4.3.40.0030.02415.30
4.3.30.0060.01715.30
4.3.20.0000.02015.30
4.3.10.0000.02015.30
4.3.00.0000.01815.30