3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $name; private $age; //private access } class Employee extends Person{ public $id; public $salary; //class property } $emp = new Employee(); $emp->name="ABCD"; $emp->age_tmp = 30; $emp->id=101; $emp->salary=20000; echo "<br/> Name : ".$emp->name; echo "<br/> Age : ".$emp->age_tmp; ?>

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.0110.00716.75
8.3.50.0180.00016.39
8.3.40.0170.00718.97
8.3.30.0070.00718.89
8.3.20.0040.00420.39
8.3.10.0050.00323.65
8.3.00.0070.00023.53
8.2.180.0150.00616.36
8.2.170.0000.01422.96
8.2.160.0160.00322.96
8.2.150.0090.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00022.22
8.2.120.0000.00726.35
8.2.110.0030.00620.28
8.2.100.0090.00317.91
8.2.90.0090.00017.84
8.2.80.0040.00417.97
8.2.70.0030.00617.93
8.2.60.0050.00318.05
8.2.50.0000.00818.14
8.2.40.0000.00822.27
8.2.30.0040.00421.09
8.2.20.0000.00718.07
8.2.10.0040.00418.17
8.2.00.0040.00417.98
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.01519.00
8.1.230.0100.00320.95
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0000.01017.47
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0040.00418.32
8.1.160.0040.00418.75
8.1.150.0080.00018.88
8.1.140.0000.00717.63
8.1.130.0040.00418.90
8.1.120.0020.00517.47
8.1.110.0020.00517.43
8.1.100.0000.00717.46
8.1.90.0050.00517.37
8.1.80.0000.01117.32
8.1.70.0030.00317.36
8.1.60.0000.00917.56
8.1.50.0060.00317.34
8.1.40.0000.00717.52
8.1.30.0050.00217.62
8.1.20.0050.00317.50
8.1.10.0040.00417.48
8.1.00.0030.00617.53
8.0.300.0040.00419.64
8.0.290.0030.00816.62
8.0.280.0040.00418.50
8.0.270.0000.00717.26
8.0.260.0030.00318.46
8.0.250.0070.00016.98
8.0.240.0040.00417.00
8.0.230.0000.00716.88
8.0.220.0070.00016.77
8.0.210.0030.00616.90
8.0.200.0000.00717.01
8.0.190.0000.00716.83
8.0.180.0040.00416.99
8.0.170.0000.00716.90
8.0.160.0040.00416.92
8.0.150.0000.00716.91
8.0.140.0040.00416.85
8.0.130.0060.00013.36
8.0.120.0050.00216.81
8.0.110.0050.00316.84
8.0.100.0000.00816.89
8.0.90.0030.00416.79
8.0.80.0130.00616.80
8.0.70.0000.00816.73
8.0.60.0070.00016.71
8.0.50.0040.00416.79
8.0.30.0090.00917.13
8.0.20.0140.00817.40
8.0.10.0040.00416.98
8.0.00.0160.00616.86
7.4.330.0000.00516.66
7.4.320.0060.00016.55
7.4.300.0070.00016.45
7.4.290.0080.00016.33
7.4.280.0080.00016.45
7.4.270.0000.00916.57
7.4.260.0070.00016.41
7.4.250.0050.00316.50
7.4.240.0000.00716.47
7.4.230.0040.00416.61
7.4.220.0080.01216.46
7.4.210.0070.00716.54
7.4.200.0040.00416.62
7.4.160.0080.00816.36
7.4.150.0140.00317.40
7.4.140.0090.01117.86
7.4.130.0120.00616.51
7.4.120.0090.00916.44
7.4.110.0110.01116.42
7.4.100.0080.01416.38
7.4.90.0070.01016.32
7.4.80.0030.01319.39
7.4.70.0110.01116.45
7.4.60.0080.00816.31
7.4.50.0030.01216.51
7.4.40.0160.00016.30
7.4.30.0110.01116.50
7.4.00.0040.01114.99
7.3.330.0050.00013.26
7.3.320.0050.00013.22
7.3.310.0040.00416.24
7.3.300.0030.00316.23
7.3.290.0070.00816.22
7.3.280.0080.00816.25
7.3.270.0140.00417.40
7.3.260.0110.00816.37
7.3.250.0110.00716.29
7.3.240.0130.00816.35
7.3.230.0130.00916.63
7.3.210.0130.01016.49
7.3.200.0090.00616.42
7.3.190.0140.00316.41
7.3.180.0090.00916.40
7.3.170.0130.00316.43
7.3.160.0090.00616.44
7.3.120.0040.01114.82
7.3.110.0070.01014.96
7.3.100.0030.01315.07
7.3.90.0030.00614.75
7.3.80.0070.00715.02
7.3.70.0080.00414.94
7.3.60.0000.01214.61
7.3.50.0030.00914.59
7.3.40.0030.00914.80
7.3.30.0030.01014.90
7.3.20.0100.00316.62
7.3.10.0090.00916.41
7.3.00.0100.00716.68
7.2.330.0110.00716.72
7.2.320.0100.00616.48
7.2.310.0030.01916.77
7.2.300.0090.01216.64
7.2.290.0040.01416.48
7.2.240.0130.00315.14
7.2.230.0080.00514.77
7.2.220.0030.01314.98
7.2.210.0000.01414.86
7.2.200.0100.00615.03
7.2.190.0040.01415.00
7.2.180.0120.00615.13
7.2.170.0060.00915.05
7.2.160.0040.01114.88
7.2.150.0070.01016.77
7.2.140.0080.00816.94
7.2.130.0070.00716.92
7.2.120.0120.00316.79
7.2.110.0030.01216.87
7.2.100.0030.01017.02
7.2.90.0090.00916.64
7.2.80.0130.00017.06
7.2.70.0100.00716.95
7.2.60.0090.00716.97
7.2.50.0060.00916.81
7.2.40.0070.00716.82
7.2.30.0100.00616.87
7.2.20.0060.00916.66
7.2.10.0100.00316.80
7.2.00.0040.01116.77
7.1.330.0030.01015.79
7.1.320.0100.00015.90
7.1.310.0070.00715.80
7.1.300.0090.00615.71
7.1.290.0100.00715.59
7.1.280.0030.01315.73
7.1.270.0030.01315.74
7.1.260.0070.00715.63
7.1.250.0080.00615.71
7.1.200.0000.01115.70
7.1.110.0070.01018.01
7.1.100.0100.00917.95
7.1.90.0030.01318.00
7.1.80.0080.01218.07
7.1.70.0070.01017.21
7.1.60.0260.01335.01
7.1.50.0200.01234.62
7.1.40.0200.01534.49
7.1.30.0160.01834.25
7.1.20.0170.01734.41
7.1.10.0060.01216.45
7.1.00.0050.01216.66
7.0.250.0050.00917.85
7.0.240.0090.00917.86
7.0.230.0070.01017.82
7.0.220.0060.01017.80
7.0.210.0060.01016.52
7.0.200.0050.01116.72
7.0.190.0100.00616.58
7.0.180.0110.00416.06
7.0.170.0050.01116.20
7.0.160.0050.01216.32
7.0.150.0000.01816.31
7.0.140.0100.00516.29
7.0.130.0030.01216.42
7.0.120.0050.01016.58
7.0.110.0080.01116.36
7.0.100.0060.01216.23
7.0.90.0070.00916.37
7.0.80.0060.01016.32
7.0.70.0050.01016.29
7.0.60.0060.00816.05
7.0.50.0060.00916.37
7.0.40.0020.01216.46
7.0.30.0030.01216.51
7.0.20.0080.00816.33
7.0.10.0050.01216.30
7.0.00.0120.00716.28

preferences:
65.93 ms | 400 KiB | 5 Q