3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $_foo = 'foo'; public function isMatch() { return $this->_foo == self::$_foo; } } class Bar extends Foo { protected $_foo = 'bar'; } $a = new Bar(); var_dump($a->isMatch());

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.0160.00018.29
8.3.50.0120.00721.14
8.3.40.0070.00718.79
8.3.30.0060.00918.75
8.3.20.0050.00320.38
8.3.10.0070.00023.52
8.3.00.0040.00422.46
8.2.180.0100.01325.92
8.2.170.0150.00018.99
8.2.160.0030.01022.96
8.2.150.0030.00525.66
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0000.00917.63
8.2.110.0050.00519.15
8.2.100.0060.00617.63
8.2.90.0090.00019.10
8.2.80.0030.00517.97
8.2.70.0100.00017.50
8.2.60.0090.00018.03
8.2.50.0080.00018.07
8.2.40.0060.00321.18
8.2.30.0040.00419.77
8.2.20.0030.00617.57
8.2.10.0040.00418.04
8.2.00.0040.00417.93
8.1.280.0090.00925.92
8.1.270.0080.00020.13
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.26
8.1.230.0030.00917.42
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0000.00818.36
8.1.160.0020.00521.94
8.1.150.0000.00718.84
8.1.140.0030.00517.33
8.1.130.0000.00717.58
8.1.120.0030.00517.40
8.1.110.0000.00717.43
8.1.100.0040.00417.29
8.1.90.0040.00417.39
8.1.80.0000.00717.45
8.1.70.0070.00017.38
8.1.60.0070.00017.57
8.1.50.0030.00517.41
8.1.40.0050.00217.42
8.1.30.0050.00317.47
8.1.20.0040.00417.55
8.1.10.0030.00517.47
8.1.00.0060.00317.58
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0000.00718.30
8.0.270.0070.00017.25
8.0.260.0040.00417.20
8.0.250.0040.00416.88
8.0.240.0030.00316.95
8.0.230.0030.00316.87
8.0.220.0030.00316.91
8.0.210.0040.00416.81
8.0.200.0060.00016.96
8.0.190.0030.00516.88
8.0.180.0020.00516.77
8.0.170.0030.00616.91
8.0.160.0000.00716.90
8.0.150.0040.00416.82
8.0.140.0040.00416.76
8.0.130.0030.00313.28
8.0.120.0030.00516.90
8.0.110.0030.00516.82
8.0.100.0050.00216.71
8.0.90.0000.00816.85
8.0.80.0030.01116.89
8.0.70.0050.00216.93
8.0.60.0040.00416.84
8.0.50.0080.00016.95
8.0.30.0080.00717.10
8.0.20.0080.01017.40
8.0.10.0000.00717.08
8.0.00.0100.00716.71
7.4.330.0030.00315.08
7.4.320.0060.00016.37
7.4.300.0000.00816.56
7.4.290.0070.00016.57
7.4.280.0040.00416.49
7.4.270.0040.00416.50
7.4.260.0000.00816.58
7.4.250.0000.00816.54
7.4.240.0030.00316.55
7.4.230.0000.00716.61
7.4.220.0100.00716.71
7.4.210.0090.00616.56
7.4.200.0000.00716.39
7.4.160.0060.00916.77
7.4.150.0060.01217.40
7.4.140.0100.00717.86
7.4.130.0150.00616.62
7.4.120.0070.01016.35
7.4.110.0070.01016.48
7.4.100.0100.01016.56
7.4.90.0060.01016.52
7.4.80.0070.01419.39
7.4.70.0140.00416.70
7.4.60.0060.00916.46
7.4.50.0050.00316.35
7.4.40.0110.00716.53
7.4.30.0130.00716.64
7.4.00.0000.01614.89
7.3.330.0060.00313.22
7.3.320.0030.00313.38
7.3.310.0000.00816.34
7.3.300.0000.00716.34
7.3.290.0080.00716.32
7.3.280.0060.01216.33
7.3.270.0090.00917.40
7.3.260.0080.00816.49
7.3.250.0080.01216.49
7.3.240.0120.00316.50
7.3.230.0100.00716.46
7.3.210.0030.01516.58
7.3.200.0130.01019.39
7.3.190.0100.00716.35
7.3.180.0120.00316.41
7.3.170.0140.00316.57
7.3.160.0100.00716.33
7.3.10.0070.01016.33
7.3.00.0060.00616.84
7.2.330.0070.01716.38
7.2.320.0060.01116.58
7.2.310.0030.01416.48
7.2.300.0120.00416.56
7.2.290.0060.01216.66
7.2.130.0040.00716.70
7.2.120.0030.01016.86
7.2.110.0040.00716.79
7.2.100.0060.00316.80
7.2.90.0060.00616.85
7.2.80.0080.00316.82
7.2.70.0000.00816.85
7.2.60.0070.00716.91
7.2.50.0090.00016.91
7.2.40.0000.01216.88
7.2.30.0040.00816.98
7.2.20.0040.01116.77
7.2.10.0030.00516.92
7.2.00.0030.00918.09
7.1.250.0070.00315.74
7.1.200.0030.00615.59
7.1.100.0070.00718.25
7.1.70.0000.00817.19
7.1.60.0100.01420.03
7.1.50.0190.00316.86
7.1.00.0070.07322.44
7.0.200.0040.00416.72
7.0.60.0030.08319.91
7.0.50.0070.05717.84
7.0.40.0070.09020.27
7.0.30.0130.05020.06
7.0.20.0100.04720.09
7.0.10.0300.07720.08
7.0.00.0030.04720.10
5.6.280.0030.07021.02
5.6.210.0070.09020.47
5.6.200.0100.06718.29
5.6.190.0100.09020.55
5.6.180.0300.04020.52
5.6.170.0230.06020.41
5.6.160.0100.07720.50
5.6.150.0100.04318.15
5.6.140.0170.07018.14
5.6.130.0030.08018.18
5.6.120.0000.08721.00
5.6.110.0130.05020.96
5.6.100.0130.08721.02
5.6.90.0070.08720.96
5.6.80.0100.07020.39
5.6.70.0270.04320.34
5.5.350.0030.04320.43
5.5.340.0030.08318.07
5.5.330.0130.07320.47
5.5.320.0270.07320.24
5.5.310.0300.06020.23
5.5.300.0000.04018.08
5.5.290.0130.07017.95
5.5.280.0030.04320.88
5.5.270.0170.07720.79
5.5.260.0100.07320.84
5.5.250.0100.06320.58
5.5.240.0100.07320.26
5.4.450.0830.05719.31
5.4.440.0830.06019.70
5.4.430.1070.04019.33
5.4.420.0800.06019.47
5.4.410.1130.04319.32
5.4.400.0770.05719.26
5.4.390.0800.06719.38
5.4.380.1100.04719.25
5.4.370.0800.05318.87
5.4.360.0900.04719.15
5.4.350.1000.04318.84
5.4.340.0870.05019.23
5.4.320.0730.06019.26
5.4.310.0730.05719.30
5.4.300.1000.04019.11
5.4.290.0870.04319.12
5.4.280.0870.04718.87
5.4.270.0700.06719.22
5.4.260.0870.04718.97
5.4.250.0830.05319.27
5.4.240.0870.04719.11
5.4.230.0830.05019.05
5.4.220.0800.05319.21
5.4.210.0800.05319.30
5.4.200.0800.05016.72
5.4.190.0870.05019.32
5.4.180.0830.05019.11
5.4.170.0700.05718.93
5.4.160.0730.05019.05
5.4.150.0730.06719.25
5.4.140.0500.05716.55
5.4.130.0100.04716.58
5.4.120.0030.05716.54
5.4.110.0570.04316.58
5.4.100.0770.06016.37
5.4.90.0830.06016.54
5.4.80.0870.05016.52
5.4.70.0870.04716.55
5.4.60.0070.06716.52
5.4.50.0070.07016.53
5.4.40.0070.06716.53
5.4.30.0370.05716.43
5.4.20.0230.06716.21

preferences:
60.61 ms | 401 KiB | 5 Q