3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Doge { private $name = "Testing"; public function __construct($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 foo(Doge $d){ return ($d->name === $this->name); } } class DogeCoin extends Doge { private $name = "Testing"; } $doge = new Doge('a'); $doge_coin = new DogeCoin('a'); var_dump($doge->foo($doge_coin));

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.0100.01018.18
8.3.50.0100.01021.27
8.3.40.0090.00618.84
8.3.30.0100.00320.17
8.3.20.0040.00420.29
8.3.10.0080.00022.13
8.3.00.0000.00822.37
8.2.180.0090.01218.54
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.41
8.2.110.0090.00022.05
8.2.100.0060.00619.21
8.2.90.0080.00019.17
8.2.80.0000.00819.03
8.2.70.0060.00317.25
8.2.60.0060.00318.04
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0000.00817.91
8.2.20.0040.00417.61
8.2.10.0050.00317.53
8.2.00.0070.00017.61
8.1.280.0170.00325.92
8.1.270.0030.01224.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00923.97
8.1.230.0080.00419.10
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0040.00417.41
8.1.180.0040.00420.27
8.1.170.0040.00418.52
8.1.160.0070.00022.05
8.1.150.0040.00418.58
8.1.140.0000.00817.40
8.1.130.0050.00317.75
8.1.120.0070.00017.45
8.1.110.0040.00417.38
8.1.100.0030.00517.29
8.1.90.0030.00317.40
8.1.80.0000.00817.39
8.1.70.0050.00317.30
8.1.60.0100.00017.61
8.1.50.0030.00517.41
8.1.40.0080.00017.41
8.1.30.0000.00817.66
8.1.20.0090.00017.55
8.1.10.0040.00417.60
8.1.00.0110.00017.52
8.0.300.0000.00818.77
8.0.290.0000.00717.05
8.0.280.0030.00318.39
8.0.270.0050.00217.11
8.0.260.0000.00716.74
8.0.250.0060.00017.03
8.0.240.0070.00316.84
8.0.230.0000.00716.86
8.0.220.0070.00016.90
8.0.210.0000.00716.89
8.0.200.0070.00016.84
8.0.190.0040.00416.99
8.0.180.0050.00516.90
8.0.170.0000.00716.92
8.0.160.0000.00716.90
8.0.150.0030.00516.87
8.0.140.0070.00016.89
8.0.130.0000.00513.32
8.0.120.0050.00316.74
8.0.110.0040.00416.88
8.0.100.0040.00416.91
8.0.90.0040.00316.78
8.0.80.0110.00516.92
8.0.70.0070.00016.96
8.0.60.0000.00716.91
8.0.50.0040.00416.77
8.0.30.0160.00917.10
8.0.20.0130.00917.40
8.0.10.0040.00417.00
8.0.00.0100.01016.71
7.4.330.0000.00515.00
7.4.320.0060.00016.61
7.4.300.0000.00716.46
7.4.290.0030.00416.63
7.4.280.0000.00716.63
7.4.270.0070.00016.53
7.4.260.0040.00416.64
7.4.250.0000.00716.59
7.4.240.0040.00416.60
7.4.230.0070.00016.63
7.4.220.0090.00816.69
7.4.210.0050.00916.56
7.4.200.0030.00316.26
7.4.190.0070.00016.49
7.4.160.0080.01416.57
7.4.150.0140.00317.40
7.4.140.0060.01517.86
7.4.130.0080.01116.49
7.4.120.0080.00816.46
7.4.110.0090.00916.61
7.4.100.0190.00016.30
7.4.90.0090.00816.37
7.4.80.0090.00919.39
7.4.70.0100.01016.53
7.4.60.0060.00916.56
7.4.50.0060.00316.43
7.4.40.0050.00522.77
7.4.30.0100.01016.50
7.4.00.0060.01214.68
7.3.330.0070.00013.30
7.3.320.0030.00313.32
7.3.310.0070.00016.36
7.3.300.0070.00016.25
7.3.290.0100.00716.31
7.3.280.0110.00616.31
7.3.270.0000.01717.40
7.3.260.0050.01416.52
7.3.250.0080.01316.40
7.3.240.0090.00916.48
7.3.230.0120.00616.39
7.3.210.0060.01116.25
7.3.200.0130.00319.39
7.3.190.0120.00916.36
7.3.180.0170.00016.36
7.3.170.0060.00916.33
7.3.160.0060.00916.56
7.3.120.0070.01014.95
7.3.110.0000.00914.84
7.3.100.0060.00914.51
7.3.90.0000.01315.00
7.3.80.0040.00714.60
7.3.70.0030.00614.62
7.3.60.0030.01014.65
7.3.50.0090.00614.73
7.3.40.0030.01014.60
7.3.30.0070.00714.85
7.3.20.0000.01216.62
7.3.10.0070.01016.51
7.3.00.0100.00716.64
7.2.330.0150.00616.64
7.2.320.0100.00716.53
7.2.310.0070.01416.64
7.2.300.0170.00016.66
7.2.290.0080.00816.65
7.2.240.0040.00814.83
7.2.230.0040.00815.13
7.2.220.0060.00615.09
7.2.210.0030.01314.86
7.2.200.0080.00815.09
7.2.190.0100.00314.92
7.2.180.0090.00615.07
7.2.170.0070.00714.97
7.2.160.0030.01415.09
7.2.150.0030.01016.64
7.2.140.0090.00616.88
7.2.130.0000.01416.66
7.2.120.0040.01016.84
7.2.110.0070.00716.89
7.2.100.0100.00316.64
7.2.90.0120.00416.63
7.2.80.0070.01017.03
7.2.70.0030.01316.91
7.2.60.0050.00916.79
7.2.50.0110.00416.66
7.2.40.0040.00816.60
7.2.30.0120.00316.83
7.2.20.0060.00616.53
7.2.10.0140.00016.82
7.2.00.0070.00917.84
7.1.330.0070.00715.76
7.1.320.0080.00815.48
7.1.310.0000.01515.79
7.1.300.0070.00715.39
7.1.290.0040.00815.76
7.1.280.0040.00715.66
7.1.270.0140.00315.78
7.1.260.0090.00015.43
7.1.250.0070.00315.73
7.1.200.0030.01015.41
7.1.100.0040.01117.99
7.1.70.0050.00317.30
7.1.60.0060.01919.21
7.1.50.0100.01016.64
7.1.00.0030.07322.37
7.0.200.0030.00516.71
7.0.140.0030.07721.95
7.0.60.0070.08719.95
7.0.50.0100.07717.88
7.0.40.0100.08720.09
7.0.30.0270.07320.23
7.0.20.0300.06720.30
7.0.10.0030.04720.08
7.0.00.0070.06720.14
5.6.280.0000.07721.07
5.6.210.0100.03320.57
5.6.200.0070.09018.15
5.6.190.0030.05320.54
5.6.180.0500.06020.33
5.6.170.0370.06720.62
5.6.160.0070.08020.55
5.6.150.0000.06318.21
5.6.140.0070.06018.18
5.6.130.0170.04718.17
5.6.120.0100.08320.96
5.6.110.0070.04021.14
5.6.100.0000.04321.03
5.6.90.0000.08721.08
5.6.80.0030.07020.43
5.5.350.0370.05720.33
5.5.340.0070.08318.07
5.5.330.0000.06020.40
5.5.320.0330.06320.51
5.5.310.0200.05020.25
5.5.300.0070.08717.99
5.5.290.0100.06317.97
5.5.280.0030.08020.77
5.5.270.0030.05720.66
5.5.260.0170.06720.88
5.5.250.0000.08320.69
5.5.240.0000.04020.35
5.4.450.0930.06319.16
5.4.440.0100.07019.56
5.4.430.0030.06019.32
5.4.420.0100.05719.62
5.4.410.0100.05318.95
5.4.400.0300.03318.67
5.4.390.0130.04718.59
5.4.380.0030.06018.76
5.4.370.0130.05018.48
5.4.360.0130.05018.50
5.4.350.0090.03512.02
5.4.340.0050.03912.02
5.4.320.0080.03412.51
5.4.310.0070.03712.50
5.4.300.0040.03812.50
5.4.290.0080.03512.50
5.4.280.0050.03912.40
5.4.270.0090.04012.40
5.4.260.0080.03812.40
5.4.250.0030.05018.93
5.4.240.0030.05018.63
5.4.230.0100.05318.90
5.4.220.0100.05018.77
5.4.210.0070.06018.94
5.4.200.0070.06018.77
5.4.190.0030.05318.92
5.4.180.0000.05718.88
5.4.170.0170.05718.93
5.4.160.0030.05719.01
5.4.150.0070.05318.96
5.4.140.0100.04316.44
5.4.130.0070.05316.46
5.4.120.0070.04716.34
5.4.110.0070.06016.64
5.4.100.0070.04716.55
5.4.90.0000.05316.55
5.4.80.0070.05016.54
5.4.70.0000.05316.60
5.4.60.0030.06016.56
5.4.50.0070.05016.39
5.4.40.0000.05316.48
5.4.30.0070.04716.36
5.4.20.0070.04716.38
5.4.10.0070.05716.45
5.4.00.0070.04715.97
5.3.290.0040.04012.80
5.3.280.0070.04714.68
5.3.270.0130.04714.73
5.3.260.0070.06314.59
5.3.250.0070.05314.59
5.3.240.0000.05314.69
5.3.230.0030.07314.68
5.3.220.0030.05014.55
5.3.210.0030.05714.65
5.3.200.0100.06014.55
5.3.190.0030.05014.73
5.3.180.0130.04314.43
5.3.170.0070.04714.74
5.3.160.0030.05014.65
5.3.150.0030.07314.54
5.3.140.0000.06714.64
5.3.130.0070.06014.64
5.3.120.0130.06314.64
5.3.110.0100.04714.38
5.3.100.0030.06714.01
5.3.90.0130.06014.02
5.3.80.0100.06014.09
5.3.70.0070.06314.10
5.3.60.0070.06014.08
5.3.50.0030.04713.92
5.3.40.0100.04314.13
5.3.30.0070.04713.74
5.3.20.0070.06313.68
5.3.10.0100.05713.74
5.3.00.0030.06713.82
5.2.170.0070.05311.33
5.2.160.0070.04711.17
5.2.150.0070.04311.01
5.2.140.0070.05311.27
5.2.130.0070.04311.12
5.2.120.0070.05011.09
5.2.110.0130.04311.25
5.2.100.0070.05011.12
5.2.90.0000.04711.18
5.2.80.0070.04010.92
5.2.70.0070.04310.93
5.2.60.0000.04311.21
5.2.50.0030.04311.00
5.2.40.0000.04010.98
5.2.30.0100.03711.05
5.2.20.0030.05311.05
5.2.10.0070.03310.82
5.2.00.0100.05010.70
5.1.60.0070.03710.24
5.1.50.0100.03310.24
5.1.40.0070.03010.24
5.1.30.0030.03710.41
5.1.20.0070.03310.24
5.1.10.0070.04010.24
5.1.00.0070.04710.24
5.0.50.0070.02710.24
5.0.40.0030.03310.24
5.0.30.0070.05310.24
5.0.20.0030.03310.24
5.0.10.0000.03310.24
5.0.00.0070.05010.24
4.4.90.0100.01710.24
4.4.80.0070.01710.24
4.4.70.0000.03010.24
4.4.60.0030.02010.24
4.4.50.0000.02310.24
4.4.40.0000.03310.24
4.4.30.0070.01710.24
4.4.20.0030.02010.24
4.4.10.0000.03310.24
4.4.00.0030.04010.24
4.3.110.0100.02310.24
4.3.100.0030.02710.24
4.3.90.0070.02010.24
4.3.80.0030.04010.24
4.3.70.0100.02010.24
4.3.60.0070.01710.24
4.3.50.0030.03010.24
4.3.40.0070.04010.24
4.3.30.0070.02710.24
4.3.20.0000.03310.24
4.3.10.0030.02310.24
4.3.00.0070.0236.60

preferences:
40.48 ms | 401 KiB | 5 Q