3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { private $data = []; public function __debugInfo() { return ['data_length' => count($this->data)]; } } $foo = new Foo(); var_dump($foo);
based on sq5lN

Here you find the average performance (time & memory) of each version. A greyed 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.0alpha10.0060.00312.58
7.2.60.0030.01316.87
7.2.00.0060.00619.37
7.1.100.0060.00618.04
7.1.70.0070.00016.78
7.1.60.0140.01019.46
7.1.50.0140.00717.02
7.1.00.0070.07322.54
7.0.200.0000.01016.80
7.0.140.0030.03322.12
7.0.60.0000.05019.96
7.0.50.0200.06317.83
7.0.40.0100.05320.18
7.0.30.0300.06320.20
7.0.20.0230.04020.33
7.0.10.0100.04320.10
7.0.00.0130.04720.06
5.6.280.0030.07321.13
5.6.210.0130.07720.72
5.6.200.0030.04018.12
5.6.190.0100.06720.58
5.6.180.0500.06320.61
5.6.170.0230.05320.50
5.6.160.0030.04020.49
5.6.150.0100.07718.18
5.6.140.0100.08018.15
5.6.130.0070.04018.16
5.6.120.0100.05320.96
5.6.110.0170.07020.98
5.6.100.0070.06321.14
5.6.90.0030.07320.98
5.6.80.0170.07320.38
5.5.350.0300.04320.38
5.5.340.0100.07717.98
5.5.330.0130.05020.30
5.5.320.0070.03320.27
5.5.310.0230.08320.26
5.5.300.0030.04718.01
5.5.290.0130.07718.02
5.5.280.0130.06720.65
5.5.270.0000.09320.96
5.5.260.0000.04320.88
5.5.250.0030.04020.58
5.5.240.0000.08020.16
5.4.450.0530.05019.30
5.4.440.0170.06019.70
5.4.430.0200.04719.55
5.4.420.0200.06319.41
5.4.410.0100.06019.25
5.4.400.0170.04719.26
5.4.390.0330.05718.56
5.4.380.0230.06018.50
5.4.370.0270.07318.68
5.4.360.0200.06318.69
5.4.350.0330.07018.50
5.4.340.0330.04018.68
5.4.320.0300.04718.65
5.4.310.0270.05018.45
5.4.300.0400.05718.68
5.4.290.0370.05718.57
5.4.280.0300.05018.72
5.4.270.0170.06318.75
5.4.260.0270.05018.62
5.4.250.0200.06318.68
5.4.240.0270.05318.54
5.4.230.0300.04718.70
5.4.220.0270.05318.67
5.4.210.0330.06318.67
5.4.200.0330.06316.64
5.4.190.0200.05318.75
5.4.180.0170.05718.66
5.4.170.0230.05318.53
5.4.160.0470.05018.61
5.4.150.0170.06018.71
5.4.140.0200.07716.33
5.4.130.0170.06316.30
5.4.120.0300.04316.29
5.4.110.0230.05016.30
5.4.100.0170.08016.33
5.4.90.0200.05316.29
5.4.80.0200.06316.35
5.4.70.0230.05316.24
5.4.60.0270.05016.29
5.4.50.0370.04016.41
5.4.40.0330.05016.22
5.4.30.0200.05016.26
5.4.20.0230.05016.22
5.4.10.0300.07016.18
5.4.00.0130.06015.71
5.3.290.0230.05314.70
5.3.280.0230.04714.72
5.3.270.0100.07014.59
5.3.260.0170.05714.79
5.3.250.0270.04714.62
5.3.240.0170.06014.64
5.3.230.0270.05314.71
5.3.220.0130.06314.50
5.3.210.0200.05714.78
5.3.200.0370.04014.67
5.3.190.0270.05014.58
5.3.180.0200.05314.59
5.3.170.0300.04714.72
5.3.160.0200.05314.73
5.3.150.0230.05314.61
5.3.140.0100.06014.71
5.3.130.0370.04714.56
5.3.120.0300.05314.54
5.3.110.0330.05014.72
5.3.100.0270.04714.26
5.3.90.0300.05014.04
5.3.80.0200.05714.00
5.3.70.0330.04014.12
5.3.60.0400.05014.04
5.3.50.0300.05713.97
5.3.40.0270.05013.96
5.3.30.0400.05313.91
5.3.20.0270.04313.73
5.3.10.0300.05013.82
5.3.00.0200.06313.66
5.2.170.0230.04311.25
5.2.160.0170.04011.17
5.2.150.0200.04011.26
5.2.140.0130.04711.17
5.2.130.0200.04711.20
5.2.120.0170.04011.16
5.2.110.0130.04311.14
5.2.100.0200.04011.20
5.2.90.0200.04711.20
5.2.80.0200.04011.33
5.2.70.0200.04011.19
5.2.60.0200.04011.06
5.2.50.0270.03711.04
5.2.40.0270.03310.97
5.2.30.0230.03711.02
5.2.20.0170.04311.02
5.2.10.0070.04710.88
5.2.00.0200.04310.75
5.1.60.0130.04010.06
5.1.50.0200.03310.17
5.1.40.0200.04310.04
5.1.30.0130.05710.39
5.1.20.0170.03710.53
5.1.10.0200.03010.10
5.1.00.0170.03310.08
5.0.50.0130.0278.57
5.0.40.0130.0278.44
5.0.30.0130.0408.24
5.0.20.0170.0238.21
5.0.10.0100.0308.36
5.0.00.0130.0408.29
4.4.90.0170.0175.88
4.4.80.0100.0205.92
4.4.70.0130.0205.95
4.4.60.0070.0235.91
4.4.50.0130.0175.89
4.4.40.0000.0435.91
4.4.30.0130.0175.91
4.4.20.0100.0205.94
4.4.10.0170.0135.95
4.4.00.0100.0335.89
4.3.110.0070.0235.92
4.3.100.0100.0205.83
4.3.90.0100.0275.82
4.3.80.0070.0375.80
4.3.70.0100.0235.91
4.3.60.0130.0175.80
4.3.50.0070.0235.83
4.3.40.0100.0335.75
4.3.30.0070.0234.60
4.3.20.0070.0234.54
4.3.10.0100.0174.48
4.3.00.0070.0236.71