3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public $bar; public $baz; } $a = new Foo(); $b = &$a; $a->bar = 42; $b->baz = 43; var_dump($a, $b);

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.00.0190.00616.29
7.2.130.0070.01116.87
7.2.120.0110.00416.55
7.2.110.0030.00716.97
7.2.100.0130.00316.73
7.2.90.0160.00316.57
7.2.80.0140.00316.70
7.2.70.0070.00716.98
7.2.60.0090.00916.82
7.2.50.0130.00716.72
7.2.40.0040.00816.63
7.2.30.0100.00616.62
7.2.20.0030.00917.00
7.2.10.0170.01016.87
7.2.00.0050.00918.21
7.1.250.0070.00715.60
7.1.240.0140.00415.51
7.1.230.0060.01015.46
7.1.220.0110.00715.75
7.1.210.0180.00015.68
7.1.200.0070.00515.61
7.1.190.0060.00915.71
7.1.180.0130.00015.57
7.1.170.0000.00915.65
7.1.160.0120.00015.77
7.1.150.0110.00415.59
7.1.140.0120.00315.57
7.1.130.0170.00815.86
7.1.120.0120.01015.88
7.1.110.0210.00015.68
7.1.100.0090.00716.79
7.1.90.0170.00715.80
7.1.80.0140.00715.72
7.1.70.0080.01116.33
7.1.60.0090.01417.46
7.1.50.0040.01515.65
7.1.40.0080.00815.55
7.1.30.0070.01015.72
7.1.20.0070.00715.84
7.1.10.0080.00615.82
7.1.00.0070.04319.04
7.0.330.0100.00715.13
7.0.320.0060.00615.11
7.0.310.0090.00615.23
7.0.300.0070.01015.24
7.0.290.0100.00315.07
7.0.280.0030.00515.32
7.0.270.0120.00915.40
7.0.260.0130.00815.40
7.0.250.0140.00615.07
7.0.240.0180.00815.27
7.0.230.0130.01015.28
7.0.220.0170.00615.23
7.0.210.0120.00815.38
7.0.200.0100.00715.15
7.0.190.0150.00315.40
7.0.180.0170.00615.33
7.0.170.0120.00915.48
7.0.160.0070.00715.29
7.0.150.0140.00715.31
7.0.140.0120.00815.10
7.0.130.0130.01015.54
7.0.120.0060.00615.45
7.0.110.0170.00315.45
7.0.100.0050.00815.36
7.0.90.0190.00315.37
7.0.80.0170.00314.95
7.0.70.0200.00015.28
7.0.60.2420.02417.61
7.0.50.0140.03317.81
7.0.40.0180.03016.80
7.0.30.0120.03516.97
7.0.20.0170.02816.94
7.0.10.0120.03916.93
7.0.00.0410.03516.76
5.6.380.0040.01114.41
5.6.370.0060.00314.19
5.6.360.0030.00914.47
5.6.350.0040.00814.31
5.6.340.0060.00614.38
5.6.330.0030.01314.14
5.6.320.0000.01314.50
5.6.310.0070.00713.91
5.6.300.0060.00614.23
5.6.290.0000.01313.98
5.6.280.0020.04017.66
5.6.270.0040.00714.60
5.6.260.0080.00314.47
5.6.250.0060.00614.09
5.6.240.0090.00614.32
5.6.230.0110.00014.27
5.6.220.0000.01114.16
5.6.210.0100.01917.36
5.6.200.0090.04016.28
5.6.190.0130.03217.64
5.6.180.0120.03217.57
5.6.170.0140.03317.78
5.6.160.0260.03117.61
5.6.150.0340.03317.74
5.6.140.0330.02917.75
5.6.130.0330.03317.57
5.6.120.0100.03117.63
5.6.110.0070.03417.54
5.6.100.0280.03717.58
5.6.90.0300.03317.70
5.6.80.0290.03517.33
5.6.70.0220.03517.31
5.6.60.0340.02817.30
5.6.50.0240.03317.41
5.6.40.0250.03317.21
5.6.30.0360.03117.38
5.6.20.0250.03117.33
5.6.10.0220.03217.28
5.6.00.0230.03317.25
5.5.380.0000.00710.95
5.5.370.0080.00311.14
5.5.360.0060.00310.83
5.5.350.2170.02015.58
5.5.340.0050.02614.51
5.5.330.0150.03015.98
5.5.320.0110.04015.89
5.5.310.0130.03015.89
5.5.300.0300.03215.99
5.5.290.0390.02615.95
5.5.280.0050.03315.92
5.5.270.0090.03016.12
5.5.260.0120.03615.74
5.5.250.0220.03315.82
5.5.240.0300.03715.74
5.5.230.0280.03515.61
5.5.220.0330.03415.79
5.5.210.0270.02915.80
5.5.200.0250.03315.37
5.5.190.0330.03615.62
5.5.180.0330.02515.79
5.5.170.0030.00910.65
5.5.160.0250.02815.72
5.5.150.0250.02815.71
5.5.140.0240.03015.46
5.5.130.0280.02815.67
5.5.120.0230.03015.57
5.5.110.0260.02815.81
5.5.100.0280.03115.60
5.5.90.0300.03015.68
5.5.80.0370.02815.74
5.5.70.0290.03515.47
5.5.60.0230.04115.72
5.5.50.0280.02315.67
5.5.40.0250.02615.52
5.5.30.0270.02715.51
5.5.20.0350.02815.50
5.5.10.0220.04015.54
5.5.00.0320.03215.71