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); } } class DogeCoin extends Doge { private $name; public function foo(Doge $d){ return ($d->name === $this->name); } } $first_doge = new Doge('a'); $doge_coin = new DogeCoin('a'); $doge_coin->foo($first_doge);

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.01518.55
8.3.50.0100.00621.20
8.3.40.0120.00918.83
8.3.30.0070.00720.29
8.3.20.0000.00720.36
8.3.10.0000.00821.88
8.3.00.0050.00322.44
8.2.180.0100.01016.63
8.2.170.0090.00622.96
8.2.160.0090.00620.52
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.41
8.2.110.0090.00022.21
8.2.100.0060.00619.39
8.2.90.0080.00019.14
8.2.80.0070.00019.28
8.2.70.0000.00917.50
8.2.60.0030.00717.91
8.2.50.0050.00318.07
8.2.40.0030.00518.12
8.2.30.0030.00517.93
8.2.20.0040.00419.36
8.2.10.0070.00017.65
8.2.00.0070.00017.60
8.1.280.0180.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.99
8.1.230.0000.01119.21
8.1.220.0070.00017.74
8.1.210.0050.00518.77
8.1.200.0060.00317.36
8.1.190.0040.00417.40
8.1.180.0000.00820.30
8.1.170.0000.00918.52
8.1.160.0000.00722.05
8.1.150.0030.00518.54
8.1.140.0000.00717.44
8.1.130.0100.00017.79
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0000.00817.42
8.1.90.0040.00417.30
8.1.80.0030.00517.44
8.1.70.0030.00317.38
8.1.60.0040.00417.57
8.1.50.0000.00717.49
8.1.40.0000.00717.48
8.1.30.0050.00317.63
8.1.20.0030.00517.66
8.1.10.0020.00517.56
8.1.00.0000.01117.50
8.0.300.0000.00718.77
8.0.290.0040.00417.16
8.0.280.0070.00018.30
8.0.270.0000.00717.23
8.0.260.0030.00316.91
8.0.250.0000.00717.00
8.0.240.0030.00616.87
8.0.230.0040.00416.91
8.0.220.0030.00316.90
8.0.210.0030.00316.80
8.0.200.0000.00616.85
8.0.190.0000.00716.93
8.0.180.0070.00416.89
8.0.170.0000.00716.87
8.0.160.0000.00716.94
8.0.150.0020.00516.87
8.0.140.0070.00016.75
8.0.130.0030.00313.31
8.0.120.0040.00416.85
8.0.110.0000.00816.91
8.0.100.0040.00416.89
8.0.90.0070.00016.72
8.0.80.0070.01016.89
8.0.70.0040.00416.88
8.0.60.0040.00416.86
8.0.50.0000.00816.70
8.0.30.0130.00817.03
8.0.20.0070.01217.40
8.0.10.0030.00516.81
8.0.00.0090.01016.62
7.4.330.0030.00315.00
7.4.320.0060.00016.44
7.4.300.0000.00716.40
7.4.290.0000.00716.42
7.4.280.0000.00716.45
7.4.270.0030.00316.65
7.4.260.0040.00416.48
7.4.250.0080.00016.47
7.4.240.0030.00516.56
7.4.230.0000.00716.50
7.4.220.0060.00916.68
7.4.210.0060.00816.53
7.4.200.0030.00316.50
7.4.190.0030.00316.69
7.4.160.0170.00616.36
7.4.150.0130.00317.40
7.4.140.0100.01217.86
7.4.130.0090.00916.52
7.4.120.0100.00816.64
7.4.110.0070.01016.30
7.4.100.0100.01016.68
7.4.90.0130.00316.39
7.4.80.0090.01219.39
7.4.70.0110.01416.51
7.4.60.0060.01016.47
7.4.50.0000.00716.39
7.4.40.0060.01222.77
7.4.30.0100.01016.34
7.4.00.0060.00914.98
7.3.330.0000.00613.20
7.3.320.0000.00613.21
7.3.310.0040.00416.28
7.3.300.0000.00716.38
7.3.290.0070.00716.30
7.3.280.0100.00716.33
7.3.270.0090.00917.40
7.3.260.0100.01016.38
7.3.250.0150.01016.42
7.3.240.0090.00916.63
7.3.230.0150.00316.48
7.3.210.0030.01416.28
7.3.200.0100.00719.39
7.3.190.0090.01316.59
7.3.180.0100.00616.16
7.3.170.0060.01016.27
7.3.160.0180.00316.28
7.3.120.0060.01014.97
7.3.10.0140.01016.17
7.3.00.0110.01416.16
7.2.330.0110.00516.49
7.2.320.0060.01016.71
7.2.310.0090.01316.81
7.2.300.0100.01016.57
7.2.290.0090.00816.38
7.2.130.0150.00916.01
7.2.120.0180.00416.45
7.2.110.0040.01216.28
7.2.100.0170.00716.39
7.2.90.0100.01116.14
7.2.80.0050.01116.27
7.2.70.0140.00516.47
7.2.60.0090.00616.60
7.2.50.0080.00816.43
7.2.40.0100.01016.60
7.2.30.0060.00916.30
7.2.20.0040.01516.64
7.2.10.0090.01216.69
7.2.00.0160.00616.72
7.1.250.0160.00815.59
7.1.200.0040.00715.64
7.1.70.0000.01217.26
7.1.60.0100.01419.21
7.1.50.0120.00916.54
7.1.00.0000.06722.42
7.0.200.0300.00714.50
7.0.140.0070.07022.10
7.0.60.0100.08719.90
7.0.50.0070.08317.88
7.0.40.0130.03720.11
7.0.30.0500.07720.23
7.0.20.0270.07720.10
7.0.10.0130.08320.11
7.0.00.0070.08320.25
5.6.280.0030.07320.90
5.6.210.0100.07020.61
5.6.200.0030.05018.18
5.6.190.0170.06020.50
5.6.180.0370.07020.64
5.6.170.0200.07020.57
5.6.160.0070.06020.39
5.6.150.0070.06318.27
5.6.140.0030.04018.16
5.6.130.0030.08018.15
5.6.120.0130.07020.99
5.6.110.0070.08321.05
5.6.100.0030.04320.96
5.6.90.0070.07321.01
5.6.80.0100.07020.54
5.6.70.4470.03720.41
5.5.350.0070.08020.53
5.5.340.0000.05318.07
5.5.330.0100.08020.21
5.5.320.0200.08320.25
5.5.310.0200.06720.25
5.5.300.0100.06717.97
5.5.290.0100.05717.97
5.5.280.0070.08020.91
5.5.270.0100.06020.87
5.5.260.0070.08720.77
5.5.250.0070.08320.79
5.5.240.0070.03720.18
5.4.450.2170.05019.28
5.4.440.2100.04319.16
5.4.430.2100.04019.47
5.4.420.2200.04319.45
5.4.410.2030.05019.27
5.4.400.2100.03718.98
5.4.390.0070.06319.07
5.4.380.0070.04019.08
5.4.370.0070.03318.99
5.4.360.1330.03319.19
5.4.350.1800.04019.22
5.4.340.2130.05318.86
5.4.320.2430.04019.25
5.4.310.2370.04019.05
5.4.300.1900.04019.00
5.4.290.2100.03719.09
5.4.280.1930.04019.08
5.4.270.1900.03719.05
5.4.260.1870.04019.08
5.4.250.0330.04019.31
5.4.240.0000.04719.21
5.4.230.0070.03319.13
5.4.220.2270.05318.88
5.4.210.2130.05019.30
5.4.200.1930.03718.94
5.4.190.2000.03318.97
5.4.180.2730.02318.83
5.4.170.2130.03718.85
5.4.160.1900.03719.04
5.4.150.2070.04019.05
5.4.140.2030.03016.47
5.4.130.1770.03716.56
5.4.120.0230.03016.56
5.4.110.0000.04316.32
5.4.100.0170.04016.60
5.4.90.1930.03316.24
5.4.80.1900.03716.22
5.4.70.1600.03316.61
5.4.60.1870.04316.36
5.4.50.1470.03716.18
5.4.40.2030.03716.42
5.4.30.1670.03316.16
5.4.20.1730.03716.53
5.4.10.1930.03016.35
5.4.00.2100.03715.95
5.3.290.0070.03714.68
5.3.280.0000.04014.52
5.3.270.0430.04314.73
5.3.260.0070.03714.52
5.3.250.0070.04314.61
5.3.240.0500.04014.65
5.3.230.1570.03014.75
5.3.220.1730.03714.56
5.3.210.1630.03714.79
5.3.200.1830.04014.49
5.3.190.1630.03714.61
5.3.180.1900.03014.54
5.3.170.1730.03714.59
5.3.160.1800.03014.61
5.3.150.1970.04714.54
5.3.140.1700.04014.62
5.3.130.0070.03314.64
5.3.120.0030.03714.63
5.3.110.0600.03314.78
5.3.100.1400.03714.27
5.3.90.2030.04314.00
5.3.80.1970.03313.96
5.3.70.1900.04013.93
5.3.60.2000.04014.23
5.3.50.1830.03713.88
5.3.40.2030.03014.07
5.3.30.1770.04013.84
5.3.20.2270.03313.62
5.3.10.1900.03313.71
5.3.00.1900.03713.55
5.2.170.1500.03011.07
5.2.160.1800.03711.23
5.2.150.1830.02711.13
5.2.140.1570.02311.25
5.2.130.1730.03711.03
5.2.120.1770.03311.00
5.2.110.1870.03011.04
5.2.100.1800.03311.07
5.2.90.1770.04011.04
5.2.80.1700.03311.04
5.2.70.1630.03311.34
5.2.60.1500.04310.96
5.2.50.1430.02010.93
5.2.40.0070.03010.91
5.2.30.0030.03011.04
5.2.20.0030.02711.08
5.2.10.0000.03010.77
5.2.00.1300.02710.65
5.1.60.1230.03010.16
5.1.50.1400.0179.90
5.1.40.1270.0239.92
5.1.30.1430.02310.27
5.1.20.1330.02710.59
5.1.10.1230.02710.01
5.1.00.1330.0279.98
5.0.50.0870.0338.75
5.0.40.0670.0178.75
5.0.30.0630.0338.75
5.0.20.0670.0178.75
5.0.10.0700.0238.75
5.0.00.0730.0408.75
4.4.90.0670.0238.75
4.4.80.0600.0178.75
4.4.70.0630.0178.75
4.4.60.0670.0178.75
4.4.50.0030.0138.75
4.4.40.0000.0278.75
4.4.30.0030.0138.75
4.4.20.0030.0138.75
4.4.10.0000.0208.75
4.4.00.0000.0238.75
4.3.110.0070.0108.75
4.3.100.0000.0208.75
4.3.90.0630.0138.75
4.3.80.0600.0278.75
4.3.70.0670.0138.75
4.3.60.0700.0178.75
4.3.50.0070.0238.75
4.3.40.0030.0338.75
4.3.30.0000.0178.75
4.3.20.0000.0178.75
4.3.10.0070.0108.75
4.3.00.0000.0178.75

preferences:
40.36 ms | 401 KiB | 5 Q