3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Doge { private $name; public function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } public function equalsWithSameType(self $other) { return ($other->name === $this->name); } public function equalsWithSubType(DogeCoin $sub) { return ($sub->name === $this->name); } public function equalsWithRandomType(SomethingElseCompletely $whatever_man) { return ($whatever_man->name === $this->name); } } class DogeCoin extends Doge { private $name; } class SomethingElseCompletely { private $name; } $first_doge = new Doge('a'); $second_doge = new Doge('a'); $doge_coin = new DogeCoin('a'); $something_else_completely = new SomethingElseCompletely('a'); var_dump($first_doge->equalsWithSameType($second_doge)); var_dump($first_doge->equalsWithSubType($doge_coin)); var_dump($first_doge->equalsWithRandomType($something_else_completely));

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.0120.00316.63
8.3.50.0160.00317.66
8.3.40.0150.00318.79
8.3.30.0080.01318.79
8.3.20.0080.00018.55
8.3.10.0040.00420.65
8.3.00.0040.00419.38
8.2.180.0040.01116.75
8.2.170.0070.00722.96
8.2.160.0100.00721.06
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.50
8.2.110.0040.00722.20
8.2.100.0040.00817.84
8.2.90.0000.00819.22
8.2.80.0040.00418.03
8.2.70.0000.01017.63
8.2.60.0080.00018.05
8.2.50.0040.00418.07
8.2.40.0000.00918.28
8.2.30.0020.00519.66
8.2.20.0000.00817.78
8.2.10.0000.00717.76
8.2.00.0000.00717.67
8.1.280.0030.01725.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.01020.68
8.1.230.0070.00420.97
8.1.220.0080.00018.77
8.1.210.0080.00418.77
8.1.200.0090.00017.35
8.1.190.0040.00417.41
8.1.180.0060.00318.10
8.1.170.0040.00418.90
8.1.160.0080.00018.77
8.1.150.0000.00818.59
8.1.140.0040.00417.41
8.1.130.0070.00017.91
8.1.120.0000.00717.46
8.1.110.0040.00417.33
8.1.100.0040.00417.31
8.1.90.0030.00517.41
8.1.80.0000.00817.46
8.1.70.0040.00417.33
8.1.60.0040.00417.63
8.1.50.0000.00917.43
8.1.40.0040.00417.53
8.1.30.0030.00517.60
8.1.20.0060.00317.71
8.1.10.0080.00017.52
8.1.00.0000.00817.51
8.0.300.0060.00320.01
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0070.00016.88
8.0.260.0070.00016.84
8.0.250.0000.00716.84
8.0.240.0020.00516.98
8.0.230.0030.00316.83
8.0.220.0000.00716.85
8.0.210.0000.00816.92
8.0.200.0000.00716.90
8.0.190.0070.00016.94
8.0.180.0000.00716.91
8.0.170.0000.00716.86
8.0.160.0040.00416.83
8.0.150.0000.00816.86
8.0.140.0090.00616.77
8.0.130.0050.00013.32
8.0.120.0040.00416.86
8.0.110.0030.00616.97
8.0.100.0040.00416.97
8.0.90.0000.00716.71
8.0.80.0070.00716.86
8.0.70.0040.00416.76
8.0.60.0050.00216.97
8.0.50.0050.00316.73
8.0.30.0170.00916.89
8.0.20.0140.00717.22
8.0.10.0040.00416.89
8.0.00.0070.01016.66
7.4.330.0050.00013.03
7.4.320.0030.00316.53
7.4.300.0000.00616.64
7.4.290.0040.00416.50
7.4.280.0040.00416.63
7.4.270.0030.00316.51
7.4.260.0000.00513.29
7.4.250.0000.00716.57
7.4.240.0070.00016.45
7.4.230.0000.00716.66
7.4.220.0070.01116.37
7.4.210.0090.00716.63
7.4.200.0040.00416.71
7.4.190.0000.00716.33
7.4.160.0090.00616.62
7.4.150.0090.01016.43
7.4.140.0050.01216.51
7.4.130.0120.00516.67
7.4.120.0130.00516.54
7.4.110.0100.00716.57
7.4.100.0090.00916.40
7.4.90.0100.00716.60
7.4.80.0110.00716.45
7.4.70.0070.01016.54
7.4.60.0140.00316.57
7.4.50.0070.00516.73
7.4.40.0090.00616.50
7.4.30.0030.01216.38
7.4.10.0070.00715.16
7.4.00.0070.00914.98
7.3.330.0030.00313.34
7.3.320.0050.00013.36
7.3.310.0070.00016.42
7.3.300.0030.00316.44
7.3.290.0000.01516.36
7.3.280.0050.01216.40
7.3.270.0150.00416.53
7.3.260.0040.01416.42
7.3.250.0070.01216.63
7.3.240.0050.01816.63
7.3.230.0100.00716.63
7.3.210.0140.00316.45
7.3.200.0030.01419.39
7.3.190.0070.00916.47
7.3.180.0100.00616.45
7.3.170.0060.01016.52
7.3.160.0120.01416.55
7.3.130.0100.00715.00
7.3.120.0070.00814.68
7.3.110.0060.01214.66
7.3.100.0030.01314.72
7.3.90.0030.00914.88
7.3.80.0060.00614.93
7.3.70.0030.00714.57
7.3.60.0030.00714.92
7.3.50.0030.01614.77
7.3.40.0080.00414.91
7.3.30.0060.00614.90
7.3.20.0030.01416.46
7.3.10.0040.00616.57
7.3.00.0030.01116.46
7.2.330.0100.01016.81
7.2.320.0170.00016.52
7.2.310.0150.00316.82
7.2.300.0080.00816.45
7.2.290.0130.00316.41
7.2.260.0100.00615.21
7.2.250.0100.00715.16
7.2.240.0140.00015.07
7.2.230.0080.00815.29
7.2.220.0070.01115.23
7.2.210.0030.00915.07
7.2.200.0070.01015.19
7.2.190.0090.00615.09
7.2.180.0060.00915.05
7.2.170.0030.00614.73
7.2.160.0060.00615.16
7.2.150.0030.00616.92
7.2.140.0100.01016.64
7.2.130.0070.00716.87
7.2.120.0110.00516.94
7.2.110.0050.01016.85
7.2.100.0060.00516.75
7.2.90.0030.01216.94
7.2.80.0070.00516.96
7.2.70.0080.00716.85
7.2.60.0060.00916.75
7.2.50.0070.01116.74
7.2.40.0060.00816.97
7.2.30.0060.00816.99
7.2.20.0040.00916.89
7.2.10.0040.01116.92
7.2.00.0020.01417.61
7.1.330.0040.01116.01
7.1.320.0090.00615.87
7.1.310.0100.00315.92
7.1.300.0070.00715.81
7.1.290.0060.00915.74
7.1.280.0040.00715.66
7.1.270.0070.00715.75
7.1.260.0090.00615.97
7.1.250.0030.00815.88
7.1.240.0060.00816.02
7.1.230.0110.00415.89
7.1.220.0060.00815.84
7.1.210.0000.01315.94
7.1.200.0060.00615.89
7.1.190.0100.00615.70
7.1.180.0040.01115.95
7.1.170.0060.00615.93
7.1.160.0030.01015.93
7.1.150.0060.01015.97
7.1.140.0000.01215.69
7.1.130.0060.00615.87
7.1.120.0040.00715.81
7.1.110.0000.01415.83
7.1.100.0050.00917.13
7.1.90.0060.00615.84
7.1.80.0060.01015.73
7.1.70.0040.00616.61
7.1.60.0100.00717.69
7.1.50.0030.01416.53
7.1.40.0000.01015.91
7.1.30.0080.00415.81
7.1.20.0080.00515.69
7.1.10.0110.00015.93
7.1.00.0070.01818.95
7.0.330.0070.00315.16
7.0.320.0120.00615.47
7.0.310.0030.00715.37
7.0.300.0040.00415.54
7.0.290.0030.00615.21
7.0.280.0070.01015.60
7.0.270.0090.00615.24
7.0.260.0040.00415.48
7.0.250.0030.00915.43
7.0.240.0030.00515.52
7.0.230.0060.00615.41
7.0.220.0040.00815.27
7.0.210.0050.00315.32
7.0.200.0150.00815.00
7.0.190.0040.01115.32
7.0.180.0040.00815.58
7.0.170.0090.00615.32
7.0.160.0050.00315.43
7.0.150.0060.00615.56
7.0.140.0050.04018.69
7.0.130.0130.00015.41
7.0.120.0020.04218.75
7.0.110.0000.01115.50
7.0.100.0030.00615.52
7.0.90.0060.00815.28
7.0.80.0090.00915.35
7.0.70.0100.00315.40
7.0.60.0070.04917.65
7.0.50.0080.04316.65
7.0.40.0090.02315.57
7.0.30.0080.04715.60
7.0.20.0070.03915.59
7.0.10.0130.03515.66
7.0.00.0080.04015.67
5.6.400.0060.00914.73
5.6.390.0030.01014.37
5.6.380.0070.00314.48
5.6.370.0130.00014.35
5.6.360.0060.00314.66
5.6.350.0060.00714.63
5.6.340.0060.00914.67
5.6.330.0000.01314.48
5.6.320.0120.00314.31
5.6.310.0040.00714.32
5.6.300.0070.00714.48
5.6.290.0030.00914.75
5.6.280.0020.04417.72
5.6.270.0090.00614.73
5.6.260.0030.00614.52
5.6.250.0040.00814.57
5.6.240.0030.01014.39
5.6.230.0120.00414.34
5.6.220.0000.01114.33
5.6.210.0070.02217.50
5.6.200.0050.04016.29
5.6.190.0080.02816.45
5.6.180.0070.04516.38
5.6.170.0060.04316.34
5.6.160.0140.03516.38
5.6.150.0040.04216.12
5.6.140.0040.03316.39
5.6.130.0080.04516.39
5.6.120.0020.02816.16
5.6.110.0070.04716.26
5.6.100.0090.04516.23
5.6.90.0080.04716.33
5.6.80.0030.02615.89
5.6.70.0040.03516.05
5.6.60.0050.02315.99
5.6.50.0090.03915.93
5.6.40.0050.04316.08
5.6.30.0060.04016.07
5.6.20.0040.02215.91
5.6.10.0050.02215.85
5.6.00.0030.02415.96
5.5.380.0060.00614.16
5.5.370.0000.01414.39
5.5.360.0000.01114.45
5.5.350.0220.04117.40
5.5.340.0050.04516.21
5.5.330.0070.04016.19
5.5.320.0060.04315.99
5.5.310.0120.03716.08
5.5.300.0100.03216.23
5.5.290.0070.02216.33
5.5.280.0070.02216.21
5.5.270.0050.04616.15
5.5.260.0080.04315.96
5.5.250.0060.03516.13
5.5.240.0060.02415.93
5.5.230.0030.02315.95
5.5.220.0060.02915.87
5.5.210.0020.04615.82
5.5.200.0030.02815.78
5.5.190.0100.04215.85
5.5.180.0130.03715.70
5.5.170.0100.00314.30
5.5.160.0090.03015.71
5.5.150.0030.03915.93
5.5.140.0060.02115.68
5.5.130.0080.04115.81
5.5.120.0050.04315.78
5.5.110.0070.04515.69
5.5.100.0070.02715.72
5.5.90.0100.03615.69
5.5.80.0120.03315.65
5.5.70.0050.04715.75
5.5.60.0130.03615.81
5.5.50.0080.02315.79
5.5.40.0000.04815.61
5.5.30.0070.04315.70
5.5.20.0080.03515.78
5.5.10.0110.04015.79
5.5.00.0020.03915.72
5.4.450.0030.02815.24
5.4.440.0050.02515.34
5.4.430.0070.03415.20
5.4.420.0100.04115.16
5.4.410.0070.04315.05
5.4.400.0030.03215.05
5.4.390.0100.01814.90
5.4.380.0060.02815.16
5.4.370.0040.02314.91
5.4.360.0060.03115.00
5.4.350.0100.03014.97
5.4.340.0070.02115.03
5.4.330.0040.00710.74
5.4.320.0100.02815.15
5.4.310.0070.02615.09
5.4.300.0120.03415.00
5.4.290.0100.04014.85
5.4.280.0070.02215.01
5.4.270.0110.03814.85
5.4.260.0160.03514.96
5.4.250.0090.03514.98
5.4.240.0030.04314.91
5.4.230.0060.03615.05
5.4.220.0020.04615.00
5.4.210.0030.03315.14
5.4.200.0080.03915.10
5.4.190.0120.03714.96
5.4.180.0090.02714.88
5.4.170.0060.02614.97
5.4.160.0050.02314.96
5.4.150.0040.04214.80
5.4.140.0050.02213.67
5.4.130.0070.02613.55
5.4.120.0090.02313.82
5.4.110.0020.02313.76
5.4.100.0070.04013.81
5.4.90.0060.03813.74
5.4.80.0070.03813.85
5.4.70.0050.01813.78
5.4.60.0080.03213.61
5.4.50.0090.03313.69
5.4.40.0100.03613.83
5.4.30.0020.02613.66
5.4.20.0050.04013.76
5.4.10.0050.02813.65
5.4.00.0090.03113.49
5.3.290.0030.04512.75
5.3.280.0020.04712.61
5.3.270.0080.04112.67
5.3.260.0070.03912.69
5.3.250.0060.04012.70
5.3.240.0100.03712.62
5.3.230.0020.02512.64
5.3.220.0060.03512.62
5.3.210.0030.02612.64
5.3.200.0100.02512.63
5.3.190.0060.03412.61
5.3.180.0060.03612.63
5.3.170.0030.02512.63
5.3.160.0080.03012.66
5.3.150.0080.04012.59
5.3.140.0070.03812.63
5.3.130.0070.04012.62
5.3.120.0030.04212.63
5.3.110.0030.03212.62
5.3.100.0050.03012.37
5.3.90.0080.03712.46
5.3.80.0020.04212.37
5.3.70.0050.03812.44
5.3.60.0080.03612.35
5.3.50.0060.02112.32
5.3.40.0070.03712.30
5.3.30.0060.03612.31
5.3.20.0030.04012.19
5.3.10.0100.02312.11
5.3.00.0050.04012.15
5.2.170.0130.04711.17
5.2.160.0070.03011.13
5.2.150.0000.04311.16
5.2.140.0070.03311.16
5.2.130.0070.06011.14
5.2.120.0000.05311.02
5.2.110.0000.05311.22
5.2.100.0030.04711.11
5.2.90.0000.03311.14
5.2.80.0100.05310.99
5.2.70.0000.05011.07
5.2.60.0000.05711.07
5.2.50.0030.03711.07
5.2.40.0070.02711.04
5.2.30.0030.03310.96
5.2.20.0030.03011.04
5.2.10.0070.05010.96
5.2.00.0170.03310.77
5.1.60.0070.04310.08
5.1.50.0070.03010.00
5.1.40.0070.05010.06
5.1.30.0100.05010.35
5.1.20.0070.03310.41
5.1.10.0030.03010.13
5.1.00.0030.0279.92
5.0.50.0070.0278.47
5.0.40.0030.0338.25
5.0.30.0070.0608.31
5.0.20.0000.0208.25
5.0.10.0030.0438.24
5.0.00.0000.0608.14
4.4.90.0070.0137.43
4.4.80.0030.0307.43
4.4.70.0070.0237.43
4.4.60.0030.0377.43
4.4.50.0030.0307.43
4.4.40.0030.0577.45
4.4.30.0030.0337.45
4.4.20.0030.0177.47
4.4.10.0030.0337.52
4.4.00.0130.0477.52
4.3.110.0000.0207.52
4.3.100.0030.0207.52
4.3.90.0000.0407.52
4.3.80.0030.0407.52
4.3.70.0000.0407.52
4.3.60.0030.0237.52
4.3.50.0000.0407.52
4.3.40.0030.0237.52
4.3.30.0000.0177.52
4.3.20.0070.0107.52
4.3.10.0030.0337.52
4.3.00.0030.0337.52

preferences:
56.88 ms | 401 KiB | 5 Q