3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Some\Name\Space; use stdClass; $x = new \stdClass; $x->name = "Foobar"; $x->getTheFuckOut = function(){ return "Foo"; }; var_dump( $x->getTheFuckOut );

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.00916.84
7.2.50.0120.00016.89
7.1.200.0090.00915.43
7.1.70.0000.01217.17
7.1.60.0030.02119.82
7.1.50.0070.01416.95
7.1.00.0030.07722.44
7.0.200.0630.00014.73
7.0.140.0000.07722.08
7.0.60.0070.08320.02
7.0.50.0000.05317.88
7.0.40.0070.04020.13
7.0.30.0470.07020.22
7.0.20.0170.04320.23
7.0.10.0000.09020.09
7.0.00.0000.04320.22
5.6.280.0070.07021.07
5.6.210.0070.07020.49
5.6.200.0100.07718.29
5.6.190.0070.08320.41
5.6.180.3100.04320.46
5.6.170.0270.08020.60
5.6.160.0070.03720.56
5.6.150.0030.08318.29
5.6.140.0070.05718.18
5.6.130.0070.03718.18
5.6.120.0130.06721.07
5.6.110.0070.07320.96
5.6.100.0030.05021.11
5.6.90.0170.07321.00
5.6.80.0030.08320.29
5.6.70.4130.03720.50
5.5.350.0100.04720.44
5.5.340.0130.07317.92
5.5.330.0000.06020.41
5.5.320.3400.04320.35
5.5.310.0300.05320.31
5.5.300.0070.07017.98
5.5.290.0030.04017.99
5.5.280.0100.05020.68
5.5.270.0130.05320.76
5.5.260.0070.08320.72
5.5.250.0170.07320.78
5.5.240.0200.08720.36
5.4.450.0270.05319.19
5.4.440.0470.04319.14
5.4.430.0130.04319.16
5.4.420.0170.03319.55
5.4.410.0430.04019.04
5.4.400.0400.03718.84
5.4.390.0300.03718.95
5.4.380.0400.05018.72
5.4.370.0430.05018.82
5.4.360.0270.05318.83
5.4.350.0330.05018.74
5.4.340.0300.05018.71
5.4.320.0060.03612.50
5.4.310.0120.04812.50
5.4.300.0100.03212.51
5.4.290.0090.03512.50
5.4.280.0080.03312.37
5.4.270.0040.03812.38
5.4.260.0080.03712.37
5.4.250.0030.04012.38
5.4.240.0040.03712.38
5.4.230.0050.03812.37
5.4.220.0050.03712.37
5.4.210.0100.04212.37
5.4.200.0050.03812.37
5.4.190.0060.03612.36
5.4.180.0050.03712.37
5.4.170.0050.03712.38
5.4.160.0080.03412.36
5.4.150.0060.03612.36
5.4.140.0060.03712.05
5.4.130.0080.04012.04
5.4.120.0060.03412.00
5.4.110.0070.03311.99
5.4.100.0030.03711.99
5.4.90.0060.03911.99
5.4.80.0060.03811.99
5.4.70.0070.03311.99
5.4.60.0060.03411.98
5.4.50.0040.03711.98
5.4.40.0060.03511.97
5.4.30.0050.03611.97
5.4.20.0070.03411.97
5.4.10.0070.03311.97
5.4.00.0050.03811.46
5.3.290.0050.04112.80
5.3.280.0070.03712.71
5.3.270.0070.03712.73
5.3.260.0070.04512.72
5.3.250.0080.03512.72
5.3.240.0040.04012.72
5.3.230.0060.04712.70
5.3.220.0050.03812.68
5.3.210.0030.04212.68
5.3.200.0100.03412.68
5.3.190.0100.04712.68
5.3.180.0070.03512.68
5.3.170.0040.03912.67
5.3.160.0130.04512.68
5.3.150.0070.03912.67
5.3.140.0040.03912.66
5.3.130.0020.04312.66
5.3.120.0060.04512.66
5.3.110.0040.04112.66
5.3.100.0060.03612.12
5.3.90.0040.03812.08
5.3.80.0060.03612.07
5.3.70.0060.03512.08
5.3.60.0090.03312.06
5.3.50.0030.03812.00
5.3.40.0040.03812.00
5.3.30.0030.04311.96
5.3.20.0060.03611.74
5.3.10.0030.03711.70
5.3.00.0050.03811.70
5.2.170.0060.0309.14
5.2.160.0030.0319.15
5.2.150.0050.0359.15
5.2.140.0020.0339.14
5.2.130.0040.0309.11
5.2.120.0020.0319.11
5.2.110.0070.0289.11
5.2.100.0050.0299.11
5.2.90.0060.0309.11
5.2.80.0010.0339.10
5.2.70.0030.0329.09
5.2.60.0070.0279.06
5.2.50.0050.0419.03
5.2.40.0060.0289.00
5.2.30.0040.0368.97
5.2.20.0070.0268.96
5.2.10.0040.0288.89
5.2.00.0040.0298.75
5.1.60.0030.0258.04
5.1.50.0020.0268.04
5.1.40.0080.0258.02
5.1.30.0040.0268.36
5.1.20.0040.0278.39
5.1.10.0020.0288.12
5.1.00.0050.0268.11
5.0.50.0030.0226.59
5.0.40.0020.0216.45
5.0.30.0040.0306.27
5.0.20.0070.0176.23
5.0.10.0010.0316.21
5.0.00.0030.0316.20
4.4.90.0050.0204.78
4.4.80.0040.0144.75
4.4.70.0040.0154.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0040.0254.70
4.4.30.0040.0174.76
4.4.20.0020.0174.84
4.4.10.0040.0154.85
4.4.00.0030.0314.76
4.3.110.0060.0194.67
4.3.100.0040.0214.66
4.3.90.0010.0174.63
4.3.80.0050.0244.58
4.3.70.0050.0194.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0030.0153.27
4.3.20.0010.0193.25
4.3.10.0020.0203.22
4.3.00.0070.01315.11