3v4l.org

run code in 300+ PHP versions simultaneously
<? class Post { public function __construct() { echo $this->getKeywords(); echo "\r\n"; echo $this->getDescription(); echo "\r\n"; echo $this->getTitle(); echo "\r\n"; } public function getKeywords() { return 'POST:keywords'; } protected function getDescription() { return 'POST:description'; } private function getTitle() { return 'POST:title'; } } class News extends Post { public function __construct() { parent::__construct(); } public function getKeywords() { return 'News:keywords'; } protected function getDescription() { return 'News:description'; } private function getTitle() { return 'News:title'; } } //1 случай $Object = new News(); //2 случай echo $Object->getKeywords(); echo "\r\n"; echo $Object->getTitle(); echo "\r\n"; echo $Object->getDescription(); echo "\r\n";

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.40.0000.01518.47
8.3.30.0100.00318.67
8.3.20.0050.00220.04
8.3.10.0040.00423.61
8.3.00.0040.00421.72
8.2.170.0140.00022.96
8.2.160.0070.00720.52
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00521.11
8.2.120.0040.00426.35
8.2.110.0040.00719.39
8.2.100.0090.00317.80
8.2.90.0000.00819.26
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0000.00818.09
8.2.40.0040.00422.07
8.2.30.0050.00219.21
8.2.20.0070.00017.54
8.2.10.0000.00717.85
8.2.00.0030.00317.86
8.1.270.0090.00922.00
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00023.88
8.1.230.0060.00617.64
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00818.56
8.1.160.0000.00720.62
8.1.150.0040.00420.60
8.1.140.0040.00419.42
8.1.130.0050.00217.48
8.1.120.0040.00417.35
8.1.110.0000.00817.27
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0000.00817.28
8.1.70.0030.00317.38
8.1.60.0040.00417.34
8.1.50.0040.00417.34
8.1.40.0040.00417.41
8.1.30.0040.00417.46
8.1.20.0040.00417.51
8.1.10.0070.00017.35
8.1.00.0040.00417.42
8.0.300.0000.00718.84
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0000.00717.09
8.0.260.0000.00617.05
8.0.250.0060.00016.79
8.0.240.0040.00416.66
8.0.230.0030.00316.88
8.0.220.0070.00016.67
8.0.210.0030.00316.77
8.0.200.0030.00316.85
8.0.190.0040.00416.71
8.0.180.0040.00416.68
8.0.170.0040.00416.68
8.0.160.0000.00716.77
8.0.150.0000.00716.60
8.0.140.0000.00716.70
8.0.130.0030.00313.25
8.0.120.0080.00016.77
8.0.110.0000.00716.71
8.0.100.0040.00416.55
8.0.90.0050.00216.78
8.0.80.0140.00016.69
8.0.70.0000.00716.53
8.0.60.0000.00716.80
8.0.50.0050.00316.73
8.0.30.0120.00316.88
8.0.20.0100.00817.40
8.0.10.0030.00516.84
8.0.00.0100.00716.54
7.4.330.0050.00016.81
7.4.320.0000.00616.35
7.4.300.0000.00816.38
7.4.290.0030.00316.46
7.4.280.0080.00016.36
7.4.270.0000.00716.52
7.4.260.0030.00316.25
7.4.250.0000.00716.33
7.4.240.0050.00316.51
7.4.230.0000.00716.46
7.4.220.0000.01816.47
7.4.210.0070.00916.40
7.4.200.0000.00716.45
7.4.160.0090.00616.34
7.4.150.0100.00717.40
7.4.140.0130.01117.86
7.4.130.0100.00716.43
7.4.120.0090.00716.32
7.4.110.0000.01716.27
7.4.100.0140.00316.51
7.4.90.0120.00816.31
7.4.80.0030.02319.39
7.4.70.0040.01316.38
7.4.60.0110.00616.41
7.4.50.0060.00916.54
7.4.40.0080.00816.23
7.4.30.0190.00316.54
7.4.00.0060.00614.45
7.3.330.0020.00213.36
7.3.320.0000.00513.19
7.3.310.0050.00215.96
7.3.300.0070.00016.13
7.3.290.0000.00616.03
7.3.280.0100.00716.16
7.3.270.0150.00317.40
7.3.260.0070.01016.36
7.3.250.0050.01216.26
7.3.240.0100.00716.32
7.3.230.0060.01116.39
7.3.210.0080.00816.10
7.3.200.0030.01319.39
7.3.190.0060.00916.19
7.3.180.0090.00616.07
7.3.170.0130.00916.27
7.3.160.0060.00916.17
7.2.330.0060.01216.63
7.2.320.0160.00016.25
7.2.310.0090.01216.36
7.2.300.0030.01316.25
7.2.290.0130.00316.61
7.2.60.0060.01016.99
7.2.00.0060.00619.55
7.1.200.0060.00615.63
7.1.100.0040.00717.84
7.1.70.0070.00016.88
7.1.60.0100.01319.40
7.1.50.0100.01016.84
7.1.00.0130.07022.36
7.0.200.1150.00714.69
7.0.60.0100.07721.73
7.0.50.0100.06317.87
7.0.40.0170.08020.05
7.0.30.0300.05020.27
7.0.20.0330.06320.21
7.0.10.0030.06320.15
7.0.00.0130.07720.33
5.6.280.0030.05721.13
5.6.210.0100.05320.57
5.6.200.0030.05018.27
5.6.190.0030.09020.77
5.6.180.0200.04720.48
5.6.170.0300.07720.43
5.6.160.0070.03720.52
5.6.150.0070.04318.28
5.6.140.0030.04018.14
5.6.130.0030.04018.29
5.6.120.0130.05320.98
5.6.110.0070.08721.10
5.6.100.0100.08021.04
5.6.90.0070.06321.01
5.6.80.0100.06720.39
5.5.350.0000.08320.40
5.5.340.0030.06018.09
5.5.330.0000.09720.44
5.5.320.0230.04320.23
5.5.310.0230.06320.51
5.5.300.0000.04318.09
5.5.290.0100.04017.98
5.5.280.0070.04320.79
5.5.270.0030.07020.65
5.5.260.0070.08020.88
5.5.250.0100.07720.63
5.5.240.0100.08020.17

preferences:
35.54 ms | 400 KiB | 5 Q