3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $a->foo = 'hello'; var_dump(spl_object_hash($a)); $b = new stdClass; $b->foo = 'world'; var_dump(spl_object_hash($b)); $c = new stdClass; $c->foo = 'hello'; var_dump(spl_object_hash($c)); unset($c); // <= important $d = new stdClass; $d->foo = 'world'; var_dump(spl_object_hash($d));

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.40.0070.00718.61
8.3.30.0140.00018.66
8.3.20.0050.00318.49
8.3.10.0040.00418.81
8.3.00.0050.00319.25
8.2.170.0120.00322.96
8.2.160.0100.00718.71
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00421.13
8.2.110.0100.00021.00
8.2.100.0060.00617.78
8.2.90.0040.00417.50
8.2.80.0030.00617.97
8.2.70.0080.00417.50
8.2.60.0000.00819.55
8.2.50.0050.00318.07
8.2.40.0060.00319.22
8.2.30.0030.00617.63
8.2.20.0060.00317.57
8.2.10.0080.00017.49
8.2.00.0040.00417.67
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00417.36
8.1.230.0120.00019.61
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.75
8.1.160.0040.00418.91
8.1.150.0000.00718.62
8.1.140.0040.00417.42
8.1.130.0030.00317.38
8.1.120.0070.00017.32
8.1.110.0040.00417.33
8.1.100.0000.00717.34
8.1.90.0000.00717.45
8.1.80.0070.00017.39
8.1.70.0040.00417.38
8.1.60.0000.00817.52
8.1.50.0000.00817.45
8.1.40.0040.00417.50
8.1.30.0050.00317.54
8.1.20.0000.00717.47
8.1.10.0080.00017.59
8.1.00.0000.00717.47
8.0.300.0000.00818.87
8.0.290.0050.00316.63
8.0.280.0050.00318.56
8.0.270.0000.00717.18
8.0.260.0030.00316.67
8.0.250.0080.00016.85
8.0.240.0050.00316.89
8.0.230.0080.00016.82
8.0.220.0030.00316.75
8.0.210.0000.00716.73
8.0.200.0000.00716.77
8.0.190.0000.00816.88
8.0.180.0030.00316.73
8.0.170.0080.00016.89
8.0.160.0000.00716.72
8.0.150.0080.00016.65
8.0.140.0000.00716.83
8.0.130.0030.00313.21
8.0.120.0050.00316.68
8.0.110.0040.00416.64
8.0.100.0000.00816.70
8.0.90.0040.00416.89
8.0.80.0070.00716.76
8.0.70.0000.00716.66
8.0.60.0080.00016.66
8.0.50.0000.00816.71
8.0.30.0160.00417.16
8.0.20.0100.01017.15
8.0.10.0000.00716.79
8.0.00.0120.01116.60
7.4.330.0030.00312.86
7.4.320.0040.00416.45
7.4.300.0040.00416.54
7.4.290.0070.00416.55
7.4.280.0040.00416.42
7.4.270.0000.00916.52
7.4.260.0050.00013.20
7.4.250.0040.00416.44
7.4.240.0070.00016.45
7.4.230.0030.00316.56
7.4.220.0130.01316.33
7.4.210.0040.01116.48
7.4.200.0050.00216.56
7.4.190.0000.00716.67
7.4.160.0100.01416.28
7.4.150.0060.01216.43
7.4.140.0100.00917.86
7.4.130.0130.00616.42
7.4.120.0130.00316.20
7.4.110.0150.00316.27
7.4.100.0130.01016.38
7.4.90.0150.00916.41
7.4.80.0160.00019.39
7.4.70.0130.00616.47
7.4.60.0060.00916.37
7.4.50.0000.00916.54
7.4.40.0030.01416.14
7.4.30.0060.01116.29
7.4.00.0100.00615.13
7.3.330.0000.00813.09
7.3.320.0000.00713.10
7.3.310.0070.00016.05
7.3.300.0000.00716.18
7.3.290.0110.00416.19
7.3.280.0090.00916.24
7.3.270.0060.01216.15
7.3.260.0070.01016.61
7.3.240.0090.00916.40
7.3.230.0100.00716.57
7.3.210.0070.01316.23
7.3.200.0160.00016.24
7.3.190.0150.00316.38
7.3.180.0030.01516.46
7.3.170.0090.01216.17
7.3.160.0080.00816.43
7.3.120.0000.01514.88
7.2.330.0090.00916.67
7.2.320.0030.01716.60
7.2.310.0200.00316.52
7.2.300.0080.00916.59
7.2.290.0110.00516.38
7.2.60.1160.00915.09
7.2.00.0030.01019.13
7.1.200.0110.00415.73
7.1.100.0040.00718.20
7.1.70.0070.00417.20
7.1.60.0120.01219.25
7.1.50.0330.00734.42
7.1.00.0070.03022.43
7.0.200.0060.00316.73
7.0.140.0030.07721.99
7.0.120.0030.06722.04
7.0.60.0170.07320.04
7.0.50.0130.03317.89
7.0.40.0130.07017.72
7.0.30.0070.04017.79
7.0.20.0170.07717.79
7.0.10.0000.05317.75
7.0.00.0000.08317.79
5.6.280.0030.07320.89
5.6.210.0170.06020.66
5.6.200.0070.04018.09
5.6.190.0070.08018.20
5.6.180.0070.08018.07
5.6.170.0070.04018.18
5.6.160.0130.07718.18
5.6.150.0170.07318.12
5.6.140.0030.04318.12
5.6.130.0070.07718.21
5.6.120.0000.06318.22
5.6.110.0070.08718.10
5.6.100.0030.04318.10
5.6.90.0100.08018.21
5.6.80.0070.08317.50
5.6.70.0130.07017.56
5.6.60.0070.06717.57
5.6.50.0030.08017.60
5.6.40.0030.06017.50
5.6.30.0000.08717.58
5.6.20.0030.08017.52
5.6.10.0070.04017.46
5.6.00.0130.06017.49
5.5.350.0030.03320.43
5.5.340.0130.03317.98
5.5.330.0070.08017.89
5.5.320.0070.04717.92
5.5.310.0030.08018.00
5.5.300.0000.04317.98
5.5.290.0070.06018.02
5.5.280.0030.08317.96
5.5.270.0070.05717.93
5.5.260.0000.07017.94
5.5.250.0030.08017.82
5.5.240.0100.06717.40
5.5.230.0000.08317.34
5.5.220.0130.07017.29
5.5.210.0070.04717.33
5.5.200.0030.07317.23
5.5.190.0070.07317.23
5.5.180.0100.07317.33
5.5.160.0130.04317.27
5.5.150.0000.06017.23
5.5.140.0070.04017.32
5.5.130.0030.03717.29
5.5.120.0070.05317.33
5.5.110.0100.05317.23
5.5.100.0030.06317.23
5.5.90.0070.07717.26
5.5.80.0100.06017.18
5.5.70.0030.06717.21
5.5.60.0070.08017.20
5.5.50.0070.04317.21
5.5.40.0100.04717.26
5.5.30.0000.06317.14
5.5.20.0200.06717.16
5.5.10.0070.04717.20
5.5.00.0100.07317.25
5.4.450.0030.06019.33
5.4.440.0070.05719.22
5.4.430.0070.08019.27
5.4.420.0100.07719.30
5.4.410.0100.07019.27
5.4.400.0070.07718.97
5.4.390.0070.08019.03
5.4.380.0130.04319.13
5.4.370.0000.04318.98
5.4.360.0000.04318.98
5.4.350.0000.05719.05
5.4.340.0100.05019.14
5.4.320.0170.06019.09
5.4.310.0130.04018.95
5.4.300.0030.05018.84
5.4.290.0000.04019.11
5.4.280.0030.05019.01
5.4.270.0030.04019.09
5.4.260.0100.04319.03
5.4.250.0070.07718.93
5.4.240.0100.03319.09
5.4.230.0000.04318.98
5.4.220.0100.07018.98
5.4.210.0000.08319.03
5.4.200.0100.07319.02
5.4.190.0100.07318.99
5.4.180.0170.06719.04
5.4.170.0000.08319.00
5.4.160.0130.07318.93
5.4.150.0030.04718.95
5.4.140.0130.03016.29
5.4.130.0070.07016.17
5.4.120.0070.05016.27
5.4.110.0130.06716.17
5.4.100.0130.06316.23
5.4.90.0030.04016.17
5.4.80.0030.07316.21
5.4.70.0030.07316.50
5.4.60.0030.07016.23
5.4.50.0070.07316.33
5.4.40.0200.04316.30
5.4.30.0030.08016.30
5.4.20.0070.04716.27
5.4.10.0030.06716.25
5.4.00.0030.04715.77
5.3.290.0030.06714.63
5.3.280.0070.07714.55
5.3.270.0030.05714.57
5.3.260.0030.08014.44
5.3.250.0070.08014.45
5.3.240.0130.06714.54
5.3.230.0070.07714.57
5.3.220.0030.07314.39
5.3.210.0130.07014.42
5.3.200.0030.05314.49
5.3.190.0070.03714.38
5.3.180.0130.03014.50
5.3.170.0130.07014.64
5.3.160.0030.07714.51
5.3.150.0070.07314.39
5.3.140.0030.08314.52
5.3.130.0070.06314.49
5.3.120.0030.06314.42
5.3.110.0100.07314.54
5.3.100.0000.04014.00
5.3.90.0130.06713.95
5.3.80.0030.08314.00
5.3.70.0070.07314.00
5.3.60.0100.07013.96
5.3.50.0070.04713.90
5.3.40.0030.04313.76
5.3.30.0030.04713.88
5.3.20.0030.06013.77
5.3.10.0030.05713.60
5.3.00.0000.05713.60
5.2.170.0030.03011.08
5.2.160.0070.06011.11
5.2.150.0000.06011.12
5.2.140.0000.07010.92
5.2.130.0070.06011.08
5.2.120.0000.06711.00
5.2.110.0070.05711.06
5.2.100.0170.03311.04
5.2.90.0000.03311.05
5.2.80.0100.02310.91
5.2.70.0030.04010.92
5.2.60.0100.05711.04
5.2.50.0070.06011.00
5.2.40.0100.05711.00
5.2.30.0030.04310.97
5.2.20.0000.04010.99
5.2.10.0070.04310.75
5.2.00.0070.06010.73
5.1.60.0030.0609.96
5.1.50.0070.02710.07
5.1.40.0030.0479.95
5.1.30.0130.05010.37
5.1.20.0030.04310.34
5.1.10.0030.04710.14
5.1.00.0030.0379.90
5.0.50.0000.0438.59
5.0.40.0000.0238.38
5.0.30.0030.0308.30
5.0.20.0030.0478.25
5.0.10.0070.0338.22
5.0.00.0030.0408.20
4.4.90.0000.0207.96
4.4.80.0000.0377.96
4.4.70.0000.0307.96
4.4.60.0000.0407.96
4.4.50.0030.0377.96
4.4.40.0130.0407.96
4.4.30.0030.0237.96
4.4.20.0100.0107.96
4.4.10.0000.0377.96
4.4.00.0100.0477.96
4.3.110.0000.0237.96
4.3.100.0030.0377.96
4.3.90.0070.0277.96
4.3.80.0000.0307.96
4.3.70.0000.0177.96
4.3.60.0000.0237.96
4.3.50.0030.0207.96
4.3.40.0100.0477.96
4.3.30.0000.0337.96
4.3.20.0100.0177.96
4.3.10.0000.0407.96
4.3.00.0030.0307.96

preferences:
45.44 ms | 400 KiB | 5 Q