3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $_foo = 'foo'; public function isMatch() { var_dump($this->_foo); var_dump(parent::$_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.0120.00318.45
8.3.50.0140.00821.15
8.3.40.0060.00918.54
8.3.30.0100.00318.71
8.3.20.0040.00420.42
8.3.10.0000.00823.51
8.3.00.0080.00022.58
8.2.180.0090.00616.38
8.2.170.0120.00322.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.38
8.2.110.0070.01120.46
8.2.100.0060.00617.59
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0080.00017.91
8.2.50.0050.00318.07
8.2.40.0080.00021.04
8.2.30.0060.00319.72
8.2.20.0050.00317.56
8.2.10.0050.00317.92
8.2.00.0000.00717.84
8.1.280.0110.00425.92
8.1.270.0040.00420.38
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00522.03
8.1.230.0040.00722.63
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0060.00318.65
8.1.160.0070.00021.82
8.1.150.0070.00018.73
8.1.140.0000.00717.31
8.1.130.0040.00417.44
8.1.120.0030.00417.30
8.1.110.0030.00517.30
8.1.100.0040.00417.24
8.1.90.0070.00017.34
8.1.80.0040.00417.31
8.1.70.0000.00717.19
8.1.60.0000.00717.48
8.1.50.0040.00417.30
8.1.40.0070.00017.33
8.1.30.0030.00517.56
8.1.20.0000.00717.48
8.1.10.0100.00017.27
8.1.00.0030.00517.22
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0000.00718.19
8.0.270.0000.00716.75
8.0.260.0000.00717.03
8.0.250.0000.00716.76
8.0.240.0050.00216.91
8.0.230.0030.00516.71
8.0.220.0000.00716.68
8.0.210.0000.00816.74
8.0.200.0030.00516.87
8.0.190.0000.00816.77
8.0.180.0040.00416.92
8.0.170.0030.00616.82
8.0.160.0030.00316.87
8.0.150.0050.00316.80
8.0.140.0000.00716.84
8.0.130.0060.00313.21
8.0.120.0030.00616.70
8.0.110.0030.00316.71
8.0.100.0040.00416.86
8.0.90.0000.00816.75
8.0.80.0090.00616.86
8.0.70.0040.00316.93
8.0.60.0040.00416.88
8.0.50.0050.00216.75
8.0.30.0100.01016.79
8.0.20.0080.01017.40
8.0.10.0040.00416.81
8.0.00.0130.00616.63
7.4.330.0050.00015.08
7.4.320.0060.00016.57
7.4.300.0000.00616.62
7.4.290.0000.00716.50
7.4.280.0070.00016.58
7.4.270.0000.00716.53
7.4.260.0040.00416.62
7.4.250.0080.00016.53
7.4.240.0020.00516.50
7.4.230.0030.00316.60
7.4.220.0110.00716.70
7.4.210.0100.00716.54
7.4.200.0000.00716.51
7.4.160.0070.01016.58
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0090.01316.47
7.4.120.0140.00516.45
7.4.110.0170.00016.45
7.4.100.0160.00416.41
7.4.90.0100.01416.52
7.4.80.0060.01319.39
7.4.70.0160.00016.53
7.4.60.0060.00916.43
7.4.50.0030.00316.42
7.4.40.0090.01516.66
7.4.30.0110.01116.69
7.4.00.0070.00714.55
7.3.330.0080.00013.40
7.3.320.0000.00713.18
7.3.310.0000.00616.27
7.3.300.0030.00316.34
7.3.290.0110.00516.34
7.3.280.0090.01016.34
7.3.270.0110.01117.40
7.3.260.0100.00716.51
7.3.250.0090.00916.40
7.3.240.0120.00616.29
7.3.230.0100.00716.39
7.3.210.0130.00316.43
7.3.200.0080.00816.38
7.3.190.0000.01716.57
7.3.180.0060.00916.53
7.3.170.0130.00716.38
7.3.160.0160.00716.43
7.2.330.0140.00516.63
7.2.320.0100.00716.78
7.2.310.0070.01716.57
7.2.300.0070.01416.75
7.2.290.0000.01716.56
7.2.60.0030.01016.61
7.2.00.0030.01019.45
7.1.200.0090.00915.73
7.1.100.0040.01218.18
7.1.70.0000.01417.16
7.1.60.0090.01520.03
7.1.50.0100.00516.45
7.1.00.0000.07722.44
7.0.200.0000.00816.72
7.0.60.0430.06319.79
7.0.50.0170.07017.89
7.0.40.0100.04320.09
7.0.30.0470.04020.24
7.0.20.0170.05720.08
7.0.10.0100.05020.22
7.0.00.0100.08320.25
5.6.280.0030.03721.04
5.6.210.0030.08320.57
5.6.200.0070.06318.18
5.6.190.0100.05020.66
5.6.180.0170.04320.46
5.6.170.0270.05020.62
5.6.160.0170.07020.46
5.6.150.0070.07718.24
5.6.140.0030.05318.14
5.6.130.0070.03718.17
5.6.120.0070.08320.99
5.6.110.0030.08321.09
5.6.100.0100.05021.11
5.6.90.0100.07021.18
5.6.80.0100.03020.37
5.5.350.0070.06320.43
5.5.340.0030.05017.99
5.5.330.0170.08020.21
5.5.320.0270.04320.30
5.5.310.0270.08020.34
5.5.300.0030.04718.08
5.5.290.0100.07718.08
5.5.280.0070.04320.75
5.5.270.0070.08020.64
5.5.260.0000.07320.87
5.5.250.0030.08320.59
5.5.240.0130.07320.26
5.4.450.0830.06019.63
5.4.440.0830.06019.56
5.4.430.0700.06319.33
5.4.420.1100.07019.58
5.4.410.1070.04719.48
5.4.400.0800.06719.07
5.4.390.0770.06319.15
5.4.380.0930.04719.31
5.4.370.1430.05319.23
5.4.360.0830.07319.29
5.4.350.0900.06719.06
5.4.340.0900.05019.23
5.4.320.0630.06718.84
5.4.310.0700.05719.25
5.4.300.0670.06019.27
5.4.290.1000.06318.87
5.4.280.1000.06319.12
5.4.270.0970.05319.16
5.4.260.0770.05319.22
5.4.250.0830.05019.22
5.4.240.0800.06019.05
5.4.230.0970.05319.00
5.4.220.0870.05719.23
5.4.210.0870.04718.91
5.4.200.0700.04716.82
5.4.190.0770.05318.91
5.4.180.0800.05019.22
5.4.170.0730.05319.15
5.4.160.0770.05319.12
5.4.150.0700.06019.09
5.4.140.0670.05016.57
5.4.130.0930.04716.40
5.4.120.0770.05716.36
5.4.110.1070.05316.35
5.4.100.0870.05316.53
5.4.90.0900.04716.55
5.4.80.0800.04016.57
5.4.70.1000.05316.36
5.4.60.0000.04016.53
5.4.50.0000.07316.52
5.4.40.0270.03316.43
5.4.30.0330.06316.48
5.4.20.0230.03716.52

preferences:
42.91 ms | 401 KiB | 5 Q