3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Interfaze { public function hello($name); public function getName(); } class ParentClazz implements Interfaze { public function __construct($name) { $this->hello($name); } public function hello($name) { echo "Hello, $name!\n"; } } class ChildClazz extends ParentClazz { public function __construct($name) { echo "Loaded from the child class.\n"; parent::__construct($name); } } $childclass = new ChildClazz("Payton");

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.01116.62
8.3.50.0100.01121.94
8.3.40.0110.00418.69
8.3.30.0070.00718.54
8.3.20.0000.00820.29
8.3.10.0020.00523.58
8.3.00.0060.00317.50
8.2.180.0090.01218.41
8.2.170.0120.00622.96
8.2.160.0100.00720.35
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00017.50
8.2.110.0090.00020.47
8.2.100.0110.00017.66
8.2.90.0040.00419.09
8.2.80.0000.00917.97
8.2.70.0050.00317.63
8.2.60.0030.00517.91
8.2.50.0080.00018.07
8.2.40.0050.00321.11
8.2.30.0070.00020.61
8.2.20.0040.00417.71
8.2.10.0050.00217.91
8.2.00.0080.00017.91
8.1.280.0120.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0170.00322.19
8.1.230.0110.00023.92
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0000.01017.22
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0040.00420.31
8.1.160.0020.00522.03
8.1.150.0040.00418.79
8.1.140.0000.00819.53
8.1.130.0050.00317.69
8.1.120.0000.00717.44
8.1.110.0000.00817.29
8.1.100.0000.00717.32
8.1.90.0040.00417.36
8.1.80.0030.00317.30
8.1.70.0040.00417.46
8.1.60.0030.00617.50
8.1.50.0080.00017.47
8.1.40.0080.00017.51
8.1.30.0030.00517.64
8.1.20.0070.00017.62
8.1.10.0000.00817.29
8.1.00.0040.00417.31
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00818.29
8.0.270.0030.00317.11
8.0.260.0030.00317.25
8.0.250.0040.00416.81
8.0.240.0050.00516.97
8.0.230.0030.00516.82
8.0.220.0030.00316.76
8.0.210.0030.00316.93
8.0.200.0040.00416.99
8.0.190.0000.00817.00
8.0.180.0000.00716.92
8.0.170.0030.00516.88
8.0.160.0000.00716.81
8.0.150.0000.00816.72
8.0.140.0000.00716.87
8.0.130.0000.00613.28
8.0.120.0000.00816.75
8.0.110.0040.00416.89
8.0.100.0040.00416.89
8.0.90.0030.00416.77
8.0.80.0090.00616.85
8.0.70.0000.00816.88
8.0.60.0040.00416.71
8.0.50.0040.00417.00
8.0.30.0140.00517.11
8.0.20.0120.00817.40
8.0.10.0030.00516.84
8.0.00.0090.00716.83
7.4.330.0060.00015.08
7.4.320.0000.00616.40
7.4.300.0000.00616.45
7.4.290.0030.00316.34
7.4.280.0000.00716.52
7.4.270.0000.00716.39
7.4.260.0000.00716.38
7.4.250.0030.00316.41
7.4.240.0020.00516.44
7.4.230.0070.00016.52
7.4.220.0070.01316.46
7.4.210.0060.00916.41
7.4.200.0040.00416.34
7.4.160.0120.00316.35
7.4.150.0030.01717.40
7.4.140.0070.01417.86
7.4.130.0080.01116.30
7.4.120.0080.00816.46
7.4.110.0040.01416.42
7.4.100.0120.00916.28
7.4.90.0130.00316.55
7.4.80.0130.01019.39
7.4.70.0090.00616.57
7.4.60.0090.00616.68
7.4.50.0000.00816.15
7.4.40.0060.01016.36
7.4.30.0060.01516.32
7.4.00.0070.00714.86
7.3.330.0030.00313.20
7.3.320.0030.00213.20
7.3.310.0070.00016.20
7.3.300.0000.00716.24
7.3.290.0060.01116.23
7.3.280.0120.00816.25
7.3.270.0070.01017.40
7.3.260.0090.00916.30
7.3.240.0100.00716.40
7.3.230.0060.01116.42
7.3.210.0060.00916.23
7.3.200.0080.00816.14
7.3.190.0100.00716.32
7.3.180.0110.00616.29
7.3.170.0150.00316.27
7.3.160.0070.01316.23
7.3.10.0060.00616.36
7.3.00.0010.01016.60
7.2.330.0100.00716.41
7.2.320.0070.01316.27
7.2.310.0130.00316.66
7.2.300.0150.00316.25
7.2.290.0070.01016.58
7.2.130.0040.00916.75
7.2.120.0090.00416.71
7.2.110.0010.01116.74
7.2.100.0090.00716.56
7.2.90.0050.01016.75
7.2.80.0070.00716.76
7.2.70.0100.00716.71
7.2.60.0150.00316.52
7.2.50.0070.00816.88
7.2.40.0060.00716.69
7.2.30.0020.01016.62
7.2.20.0050.00916.72
7.2.10.0090.00716.66
7.2.00.0090.00517.37
7.1.250.0070.00615.52
7.1.200.0000.01515.60
7.1.100.0030.01317.84
7.1.70.0030.00717.12
7.1.60.0090.01519.13
7.1.50.0070.01316.86
7.1.00.0000.08022.37
7.0.200.0080.00316.61
7.0.60.0130.06719.92
7.0.50.0100.04717.86
7.0.40.0000.05020.20
7.0.30.0270.04720.09
7.0.20.0270.06720.23
7.0.10.0200.06320.01
7.0.00.0070.08320.23
5.6.280.0000.07021.16
5.6.210.0070.06020.70
5.6.200.0070.08018.15
5.6.190.0030.07320.45
5.6.180.0500.07320.52
5.6.170.0230.04320.54
5.6.160.0070.07720.43
5.6.150.0030.06318.15
5.6.140.0030.08018.16
5.6.130.0000.05018.19
5.6.120.0070.05321.04
5.6.110.0100.07720.99
5.6.100.0130.06020.98
5.6.90.0070.07020.96
5.6.80.0170.05720.44
5.6.70.4500.03320.45
5.5.350.0070.06320.45
5.5.340.0070.08018.02
5.5.330.0030.04320.47
5.5.320.0030.04320.42
5.5.310.0130.06320.34
5.5.300.0000.08718.04
5.5.290.0000.04317.96
5.5.280.0100.06020.66
5.5.270.0130.08020.68
5.5.260.0070.06320.80
5.5.250.0100.07720.59
5.5.240.0100.03320.13
5.4.450.0530.05319.58
5.4.440.0700.04019.57
5.4.430.0530.05719.47
5.4.420.0570.05719.44
5.4.410.0670.06719.34
5.4.400.0570.07719.07
5.4.390.0730.06719.14
5.4.380.0770.06019.12
5.4.370.0630.06319.28
5.4.360.0870.06719.25
5.4.350.0530.05319.01
5.4.340.0670.07019.22
5.4.320.0570.05719.25
5.4.310.0700.05019.25
5.4.300.0830.05019.25
5.4.290.0770.06318.86
5.4.280.0770.04318.97
5.4.270.0570.05018.85
5.4.260.0570.04719.27
5.4.250.0570.05019.11
5.4.240.0570.04719.15
5.4.230.0570.05019.00
5.4.220.0570.05019.13
5.4.210.0600.04719.11
5.4.200.0500.05319.00
5.4.190.0530.05319.09
5.4.180.0500.05319.13
5.4.170.0670.06319.22
5.4.160.0700.04719.26
5.4.150.0530.05719.09
5.4.140.0600.05716.56
5.4.130.0500.05016.39
5.4.120.0500.05316.67
5.4.110.0700.05316.65
5.4.100.0530.05016.58
5.4.90.0670.04716.30
5.4.80.0730.05016.45
5.4.70.0870.06016.46
5.4.60.0570.05716.50
5.4.50.0600.05316.16
5.4.40.0570.05716.17
5.4.30.0630.05716.50
5.4.20.0470.05716.54
5.4.10.0570.04716.16
5.4.00.0570.05015.79

preferences:
41.3 ms | 401 KiB | 5 Q