3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public B $c; } $class = new ReflectionClass(A::class); $defaults = $class->getDefaultProperties(); var_dump($defaults); var_dump(array_key_exists('c', $defaults));

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.20.1310.00514.38
7.3.10.1750.00814.34
7.3.00.1630.00714.56
7.2.150.2220.00614.56
7.2.140.1710.00414.80
7.2.130.1940.00714.69
7.2.120.2060.00714.73
7.2.110.2270.00714.78
7.2.100.2110.00514.73
7.2.90.1960.00814.76
7.2.80.2430.00714.72
7.2.70.1750.00714.78
7.2.60.1480.01214.76
7.2.50.1650.00614.74
7.2.40.1480.00714.74
7.2.30.1540.00814.73
7.2.20.1540.00714.76
7.2.10.1530.00814.76
7.2.00.1730.00714.62
7.1.250.1100.00213.45
7.1.240.0590.00713.56
7.1.230.0650.00313.76
7.1.220.0630.00413.83
7.1.210.0690.00613.71
7.1.200.0900.00313.53
7.1.190.0630.00713.69
7.1.180.0660.01013.55
7.1.170.0630.00313.72
7.1.160.0620.01013.65
7.1.150.0460.00713.67
7.1.140.0560.00313.52
7.1.130.0680.00313.68
7.1.120.0740.00613.81
7.1.110.0820.01013.56
7.1.100.0520.00613.69
7.1.90.0800.01013.55
7.1.80.0660.00713.76
7.1.70.0520.01013.63
7.1.60.0920.01013.71
7.1.50.0520.00313.50
7.1.40.0550.00713.56
7.1.30.0720.00713.71
7.1.20.0640.00713.43
7.1.10.0660.00013.70
7.1.00.0730.01313.35
7.0.330.0800.00713.36
7.0.320.0690.01213.09
7.0.310.0830.01313.01
7.0.300.0690.00913.28
7.0.290.0820.01013.34
7.0.280.0660.00313.04
7.0.270.0620.00313.38
7.0.260.0820.01413.39
7.0.250.0780.01213.52
7.0.240.0720.00313.39
7.0.230.0770.00413.64
7.0.220.0720.01913.25
7.0.210.0700.00613.30
7.0.200.0760.01013.19
7.0.190.0690.00613.31
7.0.180.0650.00613.42
7.0.170.0580.00013.30
7.0.160.0750.01013.43
7.0.150.0790.00712.95
7.0.140.0660.00713.58
7.0.130.0710.00013.52
7.0.120.0660.01313.27
7.0.110.0720.00913.37
7.0.100.0690.01313.45
7.0.90.0750.01013.34
7.0.80.0690.00313.61
7.0.70.0800.01313.13
7.0.60.0690.00613.23
7.0.50.0760.01013.09
7.0.40.0650.00713.13
7.0.30.0610.00613.25
7.0.20.0670.01712.95
7.0.10.0660.01313.14
7.0.00.1100.01013.30
hhvm-3.22.00.1770.22990.33
hhvm-3.21.30.1480.21791.13
hhvm-3.21.00.1530.19890.53
hhvm-3.20.20.1270.20190.95
hhvm-3.19.20.0930.20290.04
hhvm-3.18.50.1630.23088.80
hhvm-3.18.40.1280.19788.87
hhvm-3.17.30.0830.19087.91
hhvm-3.15.40.0880.13485.20
hhvm-3.13.20.1070.16996.88
hhvm-3.12.140.1300.14195.90
hhvm-3.11.10.1580.20087.79
hhvm-3.10.10.1210.15484.64
5.6.380.0090.01214.15
5.6.370.0160.00814.14
5.6.360.0150.00414.04
5.6.350.0110.00614.03
5.6.340.0120.00813.79
5.6.330.0090.00914.32
5.6.320.0190.00814.14
5.6.310.0240.00314.04
5.6.300.0070.01113.75
5.6.290.0140.00714.04
5.6.280.0140.00714.04
5.6.270.0130.00614.21
5.6.260.0120.01013.99
5.6.250.0140.00614.04
5.6.240.0110.00914.14
5.6.230.0060.00914.02
5.6.220.0070.01013.71
5.6.210.0100.01413.55
5.6.200.0000.01613.59
5.6.190.0080.01513.50
5.6.180.0180.00513.74
5.6.170.0150.00813.54
5.6.160.0090.00913.63
5.6.150.0110.00413.52
5.6.140.0130.01314.01
5.6.130.0110.01113.67
5.6.120.0030.01213.47
5.6.110.0000.01413.70
5.6.100.0100.00213.64
5.6.90.0150.00913.69
5.6.80.0040.01113.75
5.6.70.0070.01413.75
5.6.60.0100.00713.58
5.6.50.0100.01413.76
5.6.40.0090.00914.09
5.6.30.0150.00013.72
5.6.20.0140.00314.05
5.6.10.0150.00613.91
5.6.00.0110.00813.94
5.5.380.0140.00310.63
5.5.370.0140.00010.80
5.5.360.0180.00611.05
5.5.350.0080.00810.94
5.5.340.0120.00410.78
5.5.330.0070.00711.01
5.5.320.0080.00610.84
5.5.310.0170.00311.07
5.5.300.0060.01110.61
5.5.290.0140.00011.06
5.5.280.0090.00910.85
5.5.270.0090.00311.07
5.5.260.0100.00510.79
5.5.250.0120.01210.89
5.5.240.0130.00011.00
5.5.230.0080.01010.93
5.5.220.0170.00710.86
5.5.210.0120.00310.87
5.5.200.0100.00710.95
5.5.190.0190.00610.57
5.5.180.0020.01010.95
5.5.170.0140.00710.87
5.5.160.0110.00410.72
5.5.150.0060.01110.80
5.5.140.0140.00310.61
5.5.130.0100.00410.68
5.5.120.0110.00710.78
5.5.110.0100.00510.79
5.5.100.0080.00410.87
5.5.90.0040.01111.07
5.5.80.0080.00810.44
5.5.70.0110.00210.79
5.5.60.0100.00710.95
5.5.50.0100.00310.71
5.5.40.0090.00910.91
5.5.30.0100.00310.83
5.5.20.0110.00810.87
5.5.10.0120.01010.84
5.5.00.0040.01110.90
5.4.450.0120.00810.83
5.4.440.0030.01010.77
5.4.430.0060.00610.85
5.4.420.0000.01410.88
5.4.410.0090.00610.52
5.4.400.0070.00710.95
5.4.390.0120.00610.98
5.4.380.0090.00910.70
5.4.370.0090.00510.88
5.4.360.0130.00411.01
5.4.350.0100.00310.70
5.4.340.0120.00010.71
5.4.330.0090.00910.84
5.4.320.0140.00010.83
5.4.310.0080.01110.40
5.4.300.0070.00710.89
5.4.290.0140.00010.82
5.4.280.0110.00310.45
5.4.270.0050.00910.75
5.4.260.0040.01110.89
5.4.250.0160.00010.64
5.4.240.0080.01010.75
5.4.230.0090.00710.64
5.4.220.0040.01510.79
5.4.210.0140.00310.77
5.4.200.0060.00610.54
5.4.190.0090.00610.43
5.4.180.0150.00310.37
5.4.170.0100.00711.10
5.4.160.0150.00010.42
5.4.150.0120.00810.52
5.4.140.0050.00510.56
5.4.130.0060.00610.72
5.4.120.0120.01210.63
5.4.110.0140.00910.60
5.4.100.0060.00610.73
5.4.90.0150.00310.82
5.4.80.0070.00710.45
5.4.70.0090.00910.72
5.4.60.0080.00410.79
5.4.50.0140.00010.43
5.4.40.0140.00310.80
5.4.30.0120.00010.67
5.4.20.0110.00010.80
5.4.10.0060.00610.74
5.4.00.0110.00010.76
5.3.290.0040.01010.37
5.3.280.0110.00610.20
5.3.270.0050.0099.99
5.3.260.0160.00010.14
5.3.250.0100.00710.25
5.3.240.0110.00410.00
5.3.230.0180.00610.29
5.3.220.0110.0069.94
5.3.210.0080.00410.26
5.3.200.0100.01010.15
5.3.190.0050.00510.07
5.3.180.0120.00510.48
5.3.170.0150.00410.41
5.3.160.0140.00010.41
5.3.150.0080.00510.48
5.3.140.0080.00810.14
5.3.130.0090.00310.38
5.3.120.0070.00410.34
5.3.110.0090.00410.12
5.3.100.0000.01310.30
5.3.90.0090.00610.13
5.3.80.0190.00310.19
5.3.70.0030.01210.04
5.3.60.0080.00810.40
5.3.50.0080.00210.34
5.3.40.0060.0079.98
5.3.30.0140.00710.22
5.3.20.0110.00410.25
5.3.10.0070.0079.78
5.3.00.0080.00410.05
5.2.170.0050.0059.32
5.2.160.0100.0039.43
5.2.150.0030.0069.39
5.2.140.0100.0059.36
5.2.130.0110.0009.15
5.2.120.0100.0009.29
5.2.110.0100.0009.33
5.2.100.0120.0039.07
5.2.90.0090.0039.17
5.2.80.0090.0039.20
5.2.70.0040.0059.23
5.2.60.0070.0049.15
5.2.50.0050.0059.23
5.2.40.0070.0029.25
5.2.30.0080.0048.99
5.2.20.0060.0069.09
5.2.10.0120.0039.00
5.2.00.0050.0058.89
5.1.60.0120.0008.33
5.1.50.0110.0008.26
5.1.40.0060.0098.38
5.1.30.0070.0078.54
5.1.20.0110.0008.42
5.1.10.0110.0038.26
5.1.00.0100.0028.26
5.0.50.0040.0088.26
5.0.40.0030.0038.26
5.0.30.0060.0068.26
5.0.20.0070.0008.26
5.0.10.0050.0028.26
5.0.00.0030.0038.26
4.4.90.0110.0008.26
4.4.80.0040.0028.26
4.4.70.0020.0048.26
4.4.60.0030.0108.26
4.4.50.0040.0048.26
4.4.40.0070.0008.26
4.4.30.0050.0058.26
4.4.20.0000.0078.26
4.4.10.0030.0038.26
4.4.00.0060.0008.26
4.3.110.0000.0058.26
4.3.100.0050.0028.26
4.3.90.0000.0078.26
4.3.80.0030.0038.26
4.3.70.0000.0068.26
4.3.60.0050.0058.26
4.3.50.0100.0008.26
4.3.40.0050.0038.26
4.3.30.0060.0008.26
4.3.20.0070.0008.26
4.3.10.0080.0008.26
4.3.00.0110.0008.26