3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class person { abstract protected function write_info(); public $LastName; public $FirstName; public $BirthDate; public function get_Age($today=NULL){ } } final class employee extends person{ public $EmployeeNumber; public $DateHired; public function write_info(){ echo "Writing ". $this->LastName . "'s info to emloyee dbase table"; } } final class student extends person{ public $StudentNumber; public $CourseName; public function write_info(){ echo "Writing ". $this->LastName . "'s info to student dbase table"; } } $personA = new employee; $personB = new student; $personA->FirstName="Joe"; $personA->LastName="body"; $personB->FirstName="Ben"; $personB->LastName="Dover"; $personA->write_info(); ?> OUTPUT:Writing Sbody's info to emloyee dbase table

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.0040.01518.30
8.3.50.0070.01116.36
8.3.40.0110.00418.70
8.3.30.0070.00718.85
8.3.20.0000.00819.11
8.3.10.0040.00423.61
8.3.00.0040.00423.56
8.2.180.0100.00718.29
8.2.170.0140.00022.96
8.2.160.0000.01618.91
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0000.00719.95
8.2.110.0000.00822.26
8.2.100.0060.00619.45
8.2.90.0040.00417.63
8.2.80.0030.00617.97
8.2.70.0040.00417.93
8.2.60.0080.00417.65
8.2.50.0030.00518.10
8.2.40.0060.00321.07
8.2.30.0040.00419.33
8.2.20.0040.00418.02
8.2.10.0030.00319.44
8.2.00.0000.00719.50
8.1.280.0100.01025.92
8.1.270.0000.00720.27
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0070.01423.92
8.1.230.0060.00618.93
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00917.38
8.1.190.0050.00317.36
8.1.180.0080.00018.10
8.1.170.0040.00418.67
8.1.160.0040.00418.78
8.1.150.0000.00718.78
8.1.140.0050.00319.66
8.1.130.0040.00419.02
8.1.120.0080.00017.50
8.1.110.0000.00917.51
8.1.100.0040.00417.45
8.1.90.0040.00417.46
8.1.80.0000.00717.52
8.1.70.0030.00517.49
8.1.60.0060.00317.57
8.1.50.0030.00517.50
8.1.40.0040.00417.52
8.1.30.0060.00917.66
8.1.20.0020.00517.66
8.1.10.0060.00317.52
8.1.00.0030.00617.38
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.36
8.0.270.0030.00317.28
8.0.260.0090.00017.27
8.0.250.0000.00717.04
8.0.240.0040.00416.98
8.0.230.0000.00716.93
8.0.220.0030.00516.91
8.0.210.0070.00016.80
8.0.200.0070.00317.02
8.0.190.0060.00317.00
8.0.180.0030.00616.95
8.0.170.0030.00616.93
8.0.160.0000.00716.88
8.0.150.0060.00316.80
8.0.140.0000.00716.80
8.0.130.0000.00713.36
8.0.120.0050.00316.88
8.0.110.0050.00316.88
8.0.100.0000.00716.77
8.0.90.0050.00216.81
8.0.80.0070.01116.91
8.0.70.0040.00416.83
8.0.60.0050.00216.84
8.0.50.0000.00716.88
8.0.30.0090.01117.11
8.0.20.0130.00917.40
8.0.10.0070.00017.03
8.0.00.0090.00916.99
7.4.330.0020.00215.55
7.4.320.0030.00616.55
7.4.300.0060.00016.43
7.4.290.0000.00716.62
7.4.280.0070.00016.37
7.4.270.0050.00316.63
7.4.260.0000.00716.59
7.4.250.0000.00716.58
7.4.240.0000.00816.56
7.4.230.0040.00416.69
7.4.220.0040.00416.49
7.4.210.0090.00716.52
7.4.200.0030.00316.36
7.4.160.0120.00916.55
7.4.140.0090.01017.86
7.4.130.0120.00616.57
7.4.120.0110.00816.49
7.4.110.0100.00716.38
7.4.100.0140.00416.59
7.4.90.0160.00716.59
7.4.80.0110.00719.39
7.4.70.0130.01016.59
7.4.60.0100.00616.63
7.4.50.0080.00816.56
7.4.40.0140.00316.49
7.4.00.0050.01214.93
7.3.330.0000.00613.14
7.3.320.0060.00013.14
7.3.310.0070.00016.30
7.3.300.0060.00016.18
7.3.290.0030.00316.32
7.3.280.0090.01016.30
7.3.260.0120.00816.40
7.3.240.0100.00916.33
7.3.230.0090.00916.61
7.3.210.0100.00716.36
7.3.200.0030.01516.43
7.3.190.0080.00816.59
7.3.180.0070.01016.45
7.3.170.0070.01016.39
7.3.160.0090.01316.59
7.3.120.0060.01314.68
7.3.110.0060.01315.02
7.3.100.0070.01014.91
7.3.90.0090.00014.79
7.3.80.0030.01215.08
7.3.70.0040.01114.90
7.3.60.0140.00014.57
7.3.50.0090.00614.76
7.3.40.0030.01315.00
7.3.30.0000.01114.68
7.3.20.0040.01116.64
7.3.10.0060.00616.51
7.3.00.0070.00716.45
7.2.330.0160.00316.81
7.2.320.0130.00616.61
7.2.310.0070.01116.69
7.2.300.0160.00616.64
7.2.290.0150.00816.61
7.2.250.0070.01015.05
7.2.240.0070.00715.03
7.2.230.0030.00715.36
7.2.220.0030.01015.17
7.2.210.0070.00715.16
7.2.200.0030.01215.00
7.2.190.0110.00714.96
7.2.180.0100.00614.86
7.2.170.0090.00615.18
7.2.110.0780.00316.40
7.2.80.0220.00714.46
7.2.70.0200.01314.79
7.2.60.0230.01214.56
7.2.50.0200.00914.55
7.2.40.0200.00714.77
7.2.30.0170.00714.98
7.2.20.0620.00014.71
7.2.10.0170.00714.79
7.2.00.0200.00314.87
7.1.330.0100.00315.55
7.1.320.0120.00315.61
7.1.310.0070.00715.59
7.1.300.0070.01015.58
7.1.290.0060.00315.58
7.1.280.0090.00615.37
7.1.270.0040.01115.48
7.1.260.0000.01115.50
7.1.200.0030.00615.82
7.1.190.0160.00813.35
7.1.180.0100.01013.39
7.1.170.0300.00313.56
7.1.160.0190.00613.53
7.1.150.0210.00913.68
7.1.140.0160.00813.90
7.1.130.0190.01013.59
7.1.120.0160.00713.72
7.1.110.0120.00913.76
7.1.100.0180.01513.66
7.1.90.0190.00713.30
7.1.80.0140.01013.68
7.1.70.0200.01113.84
7.1.60.0270.01031.64
7.1.50.0290.01131.71
7.1.40.0330.00631.79
7.1.30.0330.00731.71
7.1.20.0260.01631.77
7.1.10.0160.00513.67
7.1.00.0150.00613.57

preferences:
35.88 ms | 400 KiB | 5 Q