3v4l.org

run code in 300+ PHP versions simultaneously
<?php class D { public $first = 'test'; public $second = 12; public $third = false; public $forth = '0xa'; public $fifth = null; } $o = new D(); var_dump(array_keys((array) $o));

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.00718.18
8.3.50.0080.00917.29
8.3.40.0090.00618.68
8.3.30.0150.00318.59
8.3.20.0040.00418.66
8.3.10.0120.00320.26
8.3.00.0060.00319.25
8.2.180.0040.01416.63
8.2.170.0110.00422.96
8.2.160.0080.00620.35
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.89
8.2.110.0070.00321.11
8.2.100.0090.00317.78
8.2.90.0000.00719.07
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0060.00617.98
8.2.20.0020.00517.60
8.2.10.0040.00417.49
8.2.00.0050.00317.53
8.1.280.0130.00325.92
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.29
8.1.230.0000.01121.04
8.1.220.0040.00418.77
8.1.210.0040.00418.90
8.1.200.0030.00617.21
8.1.190.0080.00017.41
8.1.180.0000.00918.10
8.1.170.0080.00018.71
8.1.160.0040.00418.82
8.1.150.0050.00318.58
8.1.140.0000.00717.29
8.1.130.0030.00517.83
8.1.120.0070.00017.46
8.1.110.0000.00717.42
8.1.100.0030.00317.43
8.1.90.0000.00817.36
8.1.80.0000.00717.45
8.1.70.0000.00717.42
8.1.60.0040.00417.61
8.1.50.0050.00517.45
8.1.40.0040.00417.36
8.1.30.0040.00417.68
8.1.20.0000.00817.57
8.1.10.0040.00417.48
8.1.00.0040.00417.33
8.0.300.0070.00019.77
8.0.290.0080.00316.75
8.0.280.0040.00418.28
8.0.270.0000.00717.09
8.0.260.0030.00316.74
8.0.250.0030.00516.90
8.0.240.0000.00716.82
8.0.230.0000.00716.90
8.0.220.0000.00716.82
8.0.210.0000.00716.73
8.0.200.0060.00016.87
8.0.190.0030.00316.89
8.0.180.0000.00716.90
8.0.170.0030.00616.83
8.0.160.0070.00016.91
8.0.150.0050.00316.89
8.0.140.0030.00516.78
8.0.130.0000.00513.29
8.0.120.0000.00716.76
8.0.110.0040.00416.64
8.0.100.0050.00216.62
8.0.90.0040.00416.81
8.0.80.0000.01516.77
8.0.70.0040.00416.79
8.0.60.0030.00516.88
8.0.50.0090.00016.62
8.0.30.0130.00617.09
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0070.01516.70
7.4.330.0030.00313.43
7.4.320.0030.00316.50
7.4.300.0030.00316.44
7.4.290.0070.00016.60
7.4.280.0050.00216.51
7.4.270.0030.00316.52
7.4.260.0000.00613.29
7.4.250.0000.00816.48
7.4.240.0000.00716.51
7.4.230.0030.00316.32
7.4.220.0090.01216.59
7.4.210.0110.00916.55
7.4.200.0000.00716.58
7.4.190.0000.00616.56
7.4.160.0120.00316.52
7.4.150.0120.01217.40
7.4.140.0060.01717.08
7.4.130.0120.00716.47
7.4.120.0130.00616.27
7.4.110.0140.00316.43
7.4.100.0140.00916.57
7.4.90.0100.00716.34
7.4.80.0060.01118.80
7.4.70.0060.01216.51
7.4.60.0060.00916.42
7.4.50.0040.00416.30
7.4.40.0080.00822.27
7.4.30.0080.00816.43
7.4.00.0040.01115.06
7.3.330.0070.00013.05
7.3.320.0030.00313.04
7.3.310.0000.00816.09
7.3.300.0060.00016.20
7.3.290.0090.01216.24
7.3.280.0070.01016.22
7.3.270.0130.00317.40
7.3.260.0080.00918.24
7.3.250.0130.00916.32
7.3.240.0040.01416.25
7.3.230.0120.00416.39
7.3.210.0130.00916.31
7.3.200.0160.00416.39
7.3.190.0090.01216.20
7.3.180.0060.01016.07
7.3.170.0100.01316.35
7.3.160.0080.00816.25
7.3.120.0040.01115.03
7.2.330.0120.00916.54
7.2.320.0080.00816.64
7.2.310.0090.01416.50
7.2.300.0140.00316.55
7.2.290.0070.01016.67
7.2.60.0030.01016.93
7.2.00.0000.01319.40
7.1.200.0000.01415.58
7.1.100.0030.00717.84
7.1.70.0070.00317.19
7.1.60.0100.01019.40
7.1.50.0060.01516.83
7.1.00.0070.06022.31
7.0.200.0050.00216.49
7.0.140.0000.07722.18
7.0.60.0100.06719.79
7.0.50.0070.07017.87
7.0.40.0030.08317.86
7.0.30.0030.05317.71
7.0.20.0030.08317.76
7.0.10.0070.08317.68
7.0.00.0100.08017.74
5.6.280.0000.07320.82
5.6.210.0030.08020.52
5.6.200.0230.06018.15
5.6.190.0070.07718.12
5.6.180.0070.04018.16
5.6.170.0000.08718.29
5.6.160.0100.06018.27
5.6.150.0170.04318.25
5.6.140.0130.07318.28
5.6.130.0030.05718.15
5.6.120.0070.04018.18
5.6.110.0100.08318.18
5.6.100.0070.07718.14
5.6.90.0070.08718.23
5.6.80.0070.05717.58
5.6.70.0100.03317.50
5.6.60.0130.05017.56
5.6.50.0100.07317.63
5.6.40.0030.04017.51
5.6.30.0100.05717.54
5.6.20.0070.07717.62
5.6.10.0070.06017.53
5.6.00.0230.03717.48
5.5.350.0100.08720.37
5.5.340.0130.07017.95
5.5.330.0070.08718.09
5.5.320.0130.08017.94
5.5.310.0170.07317.95
5.5.300.0100.07318.02
5.5.290.0000.04718.03
5.5.280.0100.03717.95
5.5.270.0070.07317.98
5.5.260.0170.07017.95
5.5.250.0100.08017.84
5.5.240.0030.04317.34
5.5.230.0070.07717.33
5.5.220.0100.06317.46
5.5.210.0070.07717.37
5.5.200.0100.03717.33
5.5.190.0070.04017.33
5.5.180.0030.04017.32
5.5.160.0070.08317.37
5.5.150.0030.04317.39
5.5.140.0070.03317.32
5.5.130.0070.06317.26
5.5.120.0100.07717.31
5.5.110.0100.07717.33
5.5.100.0100.06717.30
5.5.90.0100.04717.34
5.5.80.0100.06317.28
5.5.70.0070.04017.29
5.5.60.0030.03717.23
5.5.50.0030.05317.20
5.5.40.0030.06317.18
5.5.30.0130.06017.21
5.5.20.0100.06017.32
5.5.10.0100.06017.30
5.5.00.0030.04317.32
5.4.450.0030.05319.22
5.4.440.0070.05319.28
5.4.430.0000.08719.42
5.4.420.0100.08019.27
5.4.410.0030.08019.25
5.4.400.0070.05319.09
5.4.390.0130.07019.03
5.4.380.0070.07719.14
5.4.370.0070.07018.91
5.4.360.0070.07718.88
5.4.350.0030.08019.13
5.4.340.0000.06019.13
5.4.320.0100.04719.00
5.4.310.0000.04319.05
5.4.300.0100.07319.02
5.4.290.0170.06718.98
5.4.280.0070.07718.95
5.4.270.0030.08019.15
5.4.260.0000.05018.98
5.4.250.0070.04719.26
5.4.240.0070.04719.26
5.4.230.0000.04319.01
5.4.220.0100.07319.11
5.4.210.0170.06719.05
5.4.200.0100.07318.98
5.4.190.0070.05318.89
5.4.180.0170.06319.13
5.4.170.0070.04318.97
5.4.160.0100.07318.96
5.4.150.0030.08019.09
5.4.140.0030.07716.38
5.4.130.0200.06016.30
5.4.120.0070.07716.36
5.4.110.0070.08016.47
5.4.100.0100.07316.46
5.4.90.0130.07016.45
5.4.80.0170.03316.47
5.4.70.0070.07316.28
5.4.60.0030.04716.45
5.4.50.0000.06716.46
5.4.40.0170.04716.32
5.4.30.0070.06716.45
5.4.20.0030.03716.32
5.4.10.0070.05016.28
5.4.00.0030.04315.89
5.3.290.0070.04714.65
5.3.280.0030.04014.55
5.3.270.0070.08014.63
5.3.260.0030.07714.63
5.3.250.0070.06714.81
5.3.240.0070.06714.67
5.3.230.0070.06014.61
5.3.220.0070.06714.61
5.3.210.0070.07714.56
5.3.200.0000.08314.59
5.3.190.0070.08014.52
5.3.180.0100.07314.55
5.3.170.0030.07714.61
5.3.160.0100.06314.55
5.3.150.0070.07314.62
5.3.140.0030.08014.62
5.3.130.0100.04714.57
5.3.120.0030.08014.50
5.3.110.0100.05714.63
5.3.100.0030.07313.99
5.3.90.0030.05314.06
5.3.80.0070.07714.08
5.3.70.0100.07014.05
5.3.60.0100.04014.02
5.3.50.0070.07713.79
5.3.40.0070.07313.83
5.3.30.0030.07713.94
5.3.20.0030.04313.59
5.3.10.0030.07313.54
5.3.00.0070.06713.67
5.2.170.0070.05711.15
5.2.160.0030.05311.11
5.2.150.0300.01311.20
5.2.140.0100.05311.16
5.2.130.0100.05711.18
5.2.120.0030.06711.00
5.2.110.0000.06310.95
5.2.100.0070.06311.10
5.2.90.0030.05711.13
5.2.80.0000.05711.18
5.2.70.0070.06311.30
5.2.60.0070.05011.07
5.2.50.0070.03311.07
5.2.40.0030.06310.95
5.2.30.0000.05011.02
5.2.20.0030.06011.16
5.2.10.0070.05010.90
5.2.00.0070.04010.67
5.1.60.0070.02710.04
5.1.50.0070.05010.06
5.1.40.0030.0379.80
5.1.30.0070.05710.29
5.1.20.0000.03710.25
5.1.10.0100.03710.08
5.1.00.0000.05710.03
5.0.50.0000.0338.75
5.0.40.0000.0208.44
5.0.30.0030.0308.18
5.0.20.0000.0238.26
5.0.10.0030.0338.08
5.0.00.0070.0308.13
4.4.90.0030.0377.95
4.4.80.0000.0237.95
4.4.70.0000.0177.95
4.4.60.0000.0177.95
4.4.50.0070.0337.95
4.4.40.0000.0237.95
4.4.30.0030.0177.95
4.4.20.0030.0337.95
4.4.10.0000.0377.95
4.4.00.0030.0277.95
4.3.110.0000.0177.95
4.3.100.0000.0237.95
4.3.90.0000.0207.95
4.3.80.0000.0277.95
4.3.70.0030.0137.95
4.3.60.0030.0137.95
4.3.50.0030.0137.95
4.3.40.0000.0237.95
4.3.30.0030.0137.95
4.3.20.0000.0177.95
4.3.10.0000.0177.95
4.3.00.0000.0137.95

preferences:
53.2 ms | 401 KiB | 5 Q