3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class first { protected $someArray = array(); } class second extends first { protected $someArray = array(); protected $someValue = null; public function __construct($someValue) { $this->someValue = $someValue; } } $objFirst = new second('123'); $objSecond = new second('321'); var_dump ($objFirst == $objSecond); print_r($objFirst); var_dump ($objFirst == $objSecond);

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.1.130.0040.00419.24
8.1.120.0030.00717.46
8.1.110.0000.00817.36
8.1.100.0050.00317.46
8.1.90.0040.00417.50
8.1.80.0040.00417.45
8.1.70.0070.00017.41
8.1.60.0030.00617.61
8.1.50.0050.00217.48
8.1.40.0040.00417.43
8.1.30.0040.00417.56
8.1.20.0040.00417.63
8.1.10.0030.00517.54
8.1.00.0030.00617.48
8.0.260.0050.00216.82
8.0.250.0040.00416.95
8.0.240.0000.00817.00
8.0.230.0000.00716.91
8.0.220.0000.00716.87
8.0.210.0030.00316.78
8.0.200.0040.00416.92
8.0.190.0000.00816.84
8.0.180.0000.00716.87
8.0.170.0040.00416.87
8.0.160.0050.00316.76
8.0.150.0000.00716.81
8.0.140.0030.00616.86
8.0.130.0000.00613.36
8.0.120.0000.00716.70
8.0.110.0040.00416.78
8.0.100.0050.00316.74
8.0.90.0000.00716.78
8.0.80.0060.00916.88
8.0.70.0000.00716.77
8.0.60.0080.00016.89
8.0.50.0030.00516.87
8.0.30.0070.01017.06
8.0.20.0140.00617.40
8.0.10.0040.00416.84
8.0.00.0140.00816.71
7.4.330.0050.00016.76
7.4.320.0000.00616.59
7.4.300.0000.00616.56
7.4.290.0040.00416.65
7.4.280.0000.00716.49
7.4.270.0070.00016.56
7.4.260.0050.00013.30
7.4.250.0050.00316.53
7.4.240.0040.00316.45
7.4.230.0040.00416.48
7.4.220.0060.01616.55
7.4.210.0090.00816.59
7.4.200.0000.00716.70
7.4.190.0030.00316.41
7.4.160.0130.01016.31
7.4.150.0070.01317.40
7.4.140.0110.00617.86
7.4.130.0120.00516.58
7.4.120.0090.01216.61
7.4.110.0140.00316.49
7.4.100.0090.01116.43
7.4.90.0110.01116.44
7.4.80.0100.00619.39
7.4.70.0080.00916.50
7.4.60.0120.00416.49
7.4.50.0060.00316.31
7.4.40.0040.00922.77
7.4.30.0140.00316.42
7.4.00.0060.01015.07
7.3.330.0000.00513.06
7.3.320.0060.00013.35
7.3.310.0070.00016.29
7.3.300.0000.00716.19
7.3.290.0100.00716.23
7.3.280.0230.00616.24
7.3.270.0120.00617.40
7.3.260.0140.00416.21
7.3.250.0070.01316.38
7.3.240.0090.01316.54
7.3.230.0100.00716.39
7.3.210.0030.01316.17
7.3.200.0160.00319.39
7.3.190.0120.00716.33
7.3.180.0140.00716.47
7.3.170.0090.00616.34
7.3.160.0140.01016.28
7.3.120.0060.01214.53
7.3.10.0070.00716.58
7.3.00.0060.00316.38
7.2.330.0110.00716.62
7.2.320.0100.01316.73
7.2.310.0030.01316.70
7.2.300.0060.01116.52
7.2.290.0080.00816.56
7.2.130.0040.01116.72
7.2.120.0090.00616.55
7.2.110.0120.00316.76
7.2.100.0040.00816.59
7.2.90.0080.00416.92
7.2.80.0100.00316.73
7.2.70.0070.00716.79
7.2.60.0070.00816.90
7.2.50.0140.00316.79
7.2.40.0030.01316.64
7.2.30.0030.01316.66
7.2.20.0090.00916.84
7.2.10.0030.00716.89
7.2.00.0070.00917.84
7.1.250.0100.00615.51
7.1.200.0090.00315.88
7.1.100.0080.00318.27
7.1.70.0150.00017.07
7.1.60.0000.01117.22
7.1.50.0000.01016.99
7.1.40.0150.00016.55
7.1.30.0090.00316.77
7.1.20.0000.01816.74
7.1.10.0000.00916.48
7.1.00.0060.00916.64
7.0.200.0000.00716.72
7.0.190.0030.00516.84
7.0.180.0000.01016.57
7.0.170.0000.01316.36
7.0.160.0000.00816.37
7.0.150.0060.00316.23
7.0.140.0070.00316.46
7.0.130.0000.00716.29
7.0.120.0000.00716.39
7.0.110.0070.00016.33
7.0.100.0070.01016.47
7.0.90.0040.00416.39
7.0.80.0070.00716.34
7.0.70.0060.00916.39
7.0.60.0000.00716.21
7.0.50.0030.00616.56
7.0.40.0030.00815.09
7.0.30.0000.01015.09
7.0.20.0000.01015.09
7.0.10.0030.01915.09
7.0.00.0060.00615.09
5.6.300.0070.04220.58
5.6.290.0070.04021.00
5.6.280.0060.09120.97
5.6.270.0000.04420.98
5.6.260.0000.04820.97
5.6.250.0030.06520.79
5.6.240.0030.05421.05
5.6.230.0030.06520.82
5.6.220.0030.07120.80
5.6.210.0060.03921.07
5.6.200.0100.04020.99
5.6.190.0030.04121.00
5.6.180.0030.04021.05
5.6.170.0130.07221.05
5.6.160.0000.08620.79
5.6.150.0160.03620.99
5.6.140.0030.05820.86
5.6.130.0030.05220.92
5.6.120.0030.05420.82
5.6.110.0060.05520.98
5.6.100.0000.04620.94
5.6.90.0100.04420.97
5.6.80.0100.03920.32
5.6.70.0030.04120.21
5.6.60.0030.04020.40
5.6.50.0030.08220.41
5.6.40.0070.07620.21
5.6.30.0070.04120.27
5.6.20.0070.04120.28
5.6.10.0030.04520.28
5.6.00.0000.04220.08
5.5.380.0030.03817.64
5.5.370.0070.04317.54
5.5.360.0000.06917.65
5.5.350.0000.04417.60
5.5.340.0070.04518.10
5.5.330.0030.04718.10
5.5.320.0060.06217.84
5.5.310.0130.07617.70
5.5.300.0000.08918.05
5.5.290.0070.03718.01
5.5.280.0000.06918.11
5.5.270.0060.05718.00
5.5.260.0070.03718.08
5.5.250.0100.03417.51
5.5.240.0000.04217.24
5.5.230.0060.03917.55
5.5.220.0030.08317.41
5.5.210.0070.07517.40
5.5.200.0030.03817.44
5.5.190.0000.05117.18
5.5.180.0100.04417.45
5.5.160.0030.04017.45
5.5.150.0000.03917.39
5.5.140.0030.03917.52
5.5.130.0000.03917.35
5.5.120.0030.03617.39
5.5.110.0070.03717.07
5.5.100.0030.04217.43
5.5.90.0160.04317.38
5.5.80.0000.04217.33
5.5.70.0030.04217.34
5.5.60.0030.03917.35
5.5.50.0030.03817.42
5.5.40.0000.04417.34
5.5.30.0100.03717.35
5.5.20.0060.03917.09
5.5.10.0130.04017.35
5.5.00.0000.04317.23
5.4.450.0070.07019.39
5.4.440.0000.05419.42
5.4.430.0060.04119.30
5.4.420.0070.07919.21
5.4.410.0030.04219.14
5.4.400.0000.04418.91
5.4.390.0100.03118.98
5.4.380.0000.04019.25
5.4.370.0030.08418.95
5.4.360.0000.05318.89
5.4.350.0030.04019.07
5.4.340.0030.03819.07
5.4.320.0030.04318.95
5.4.310.0000.04819.07
5.4.300.0090.03518.98
5.4.290.0000.04219.20
5.4.280.0030.04519.20
5.4.270.0030.05319.08
5.4.260.0070.03319.20
5.4.250.0030.03819.07
5.4.240.0000.04219.23
5.4.230.0130.05019.14
5.4.220.0000.04418.97
5.4.210.0000.04318.98
5.4.200.0000.04019.11
5.4.190.0060.03818.88
5.4.180.0070.03719.16
5.4.170.0030.03719.11
5.4.160.0000.04719.02
5.4.150.0030.03819.18
5.4.140.0030.03716.63
5.4.130.0060.03516.60
5.4.120.0000.04216.63
5.4.110.0000.03916.68
5.4.100.0060.03616.76
5.4.90.0030.03416.75
5.4.80.0000.03916.74
5.4.70.0000.03816.78
5.4.60.0030.03616.60
5.4.50.0000.04116.45
5.4.40.0030.07516.64
5.4.30.0030.04116.59
5.4.20.0000.04916.45
5.4.10.0030.04316.66
5.4.00.0070.03516.18
5.3.290.0030.04115.09
5.3.280.0260.03315.09
5.3.270.0070.04515.09
5.3.260.0130.03415.09
5.3.250.0070.06515.09
5.3.240.0030.04215.09
5.3.230.0170.03615.09
5.3.220.0000.04415.09
5.3.210.0070.03215.09
5.3.200.0070.03315.09
5.3.190.0000.04415.09
5.3.180.0040.03915.09
5.3.170.0030.04115.09
5.3.160.0030.03515.09
5.3.150.0030.03715.09
5.3.140.0000.03915.09
5.3.130.0030.03715.09
5.3.120.0000.04415.09
5.3.110.0100.03815.09
5.3.100.0030.03315.09
5.3.90.0030.03915.09
5.3.80.0070.03415.09
5.3.70.0000.04515.09
5.3.60.0030.03815.09
5.3.50.0030.03715.09
5.3.40.0000.04015.09
5.3.30.0060.03415.09
5.3.20.0000.03615.09
5.3.10.0070.03315.09
5.3.00.0030.03315.09
5.2.170.0000.03315.09
5.2.160.0030.03015.09
5.2.150.0070.02715.09
5.2.140.0060.03915.09
5.2.130.0070.02215.09
5.2.120.0070.02415.09
5.2.110.0040.03515.09
5.2.100.0000.03115.09
5.2.90.0000.03815.09
5.2.80.0070.03415.09
5.2.70.0140.03015.09
5.2.60.0040.02815.09
5.2.50.0000.03015.09
5.2.40.0030.05015.09
5.2.30.0030.05215.09
5.2.20.0060.04115.09
5.2.10.0030.03415.09
5.2.00.0000.03215.09
5.1.60.0000.02915.09
5.1.50.0030.02515.09
5.1.40.0030.02515.09
5.1.30.0000.03015.09
5.1.20.0070.02315.09
5.1.10.0000.02915.09
5.1.00.0000.03015.09
5.0.50.0070.01715.09
5.0.40.0000.02415.09
5.0.30.0030.02815.09
5.0.20.0030.01915.09
5.0.10.0040.02215.09
5.0.00.0000.03115.09
4.4.90.0060.01615.09
4.4.80.0040.01515.09
4.4.70.0030.01515.09
4.4.60.0030.01415.09
4.4.50.0030.01315.09
4.4.40.0000.02715.09
4.4.30.0000.01915.09
4.4.20.0000.01815.09
4.4.10.0060.01215.09
4.4.00.0000.02915.09
4.3.110.0000.01815.09
4.3.100.0000.01915.09
4.3.90.0000.01715.09
4.3.80.0070.02015.09
4.3.70.0000.02215.09
4.3.60.0030.01315.09
4.3.50.0030.01615.09
4.3.40.0070.02015.09
4.3.30.0000.01915.09
4.3.20.0030.01615.09
4.3.10.0030.01315.09
4.3.00.0030.01315.09

preferences:
34.68 ms | 406 KiB | 5 Q