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"; $this->name = $name; } public function getName() { return $this->name; } } 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.40.0070.00718.68
8.3.30.0040.01118.71
8.3.20.0080.00020.22
8.3.10.0000.00823.45
8.3.00.0030.00619.26
8.2.170.0170.00322.96
8.2.160.0100.01020.36
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00317.49
8.2.110.0040.00822.25
8.2.100.0120.00017.93
8.2.90.0040.00419.13
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00918.03
8.2.50.0030.00518.07
8.2.40.0000.00821.07
8.2.30.0050.00220.71
8.2.20.0030.00517.71
8.2.10.0040.00418.00
8.2.00.0060.00318.00
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00322.48
8.1.230.0080.00417.64
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.36
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00820.39
8.1.160.0000.00721.94
8.1.150.0060.00318.94
8.1.140.0000.00819.56
8.1.130.0030.00517.63
8.1.120.0030.00317.46
8.1.110.0000.00717.51
8.1.100.0000.00817.50
8.1.90.0000.00717.52
8.1.80.0030.00517.37
8.1.70.0070.00017.37
8.1.60.0040.00417.46
8.1.50.0040.00417.49
8.1.40.0040.00417.43
8.1.30.0040.00417.70
8.1.20.0040.00417.71
8.1.10.0040.00417.51
8.1.00.0070.00017.56
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0030.00317.28
8.0.260.0060.00017.20
8.0.250.0000.00716.97
8.0.240.0030.00616.84
8.0.230.0050.00516.96
8.0.220.0030.00316.88
8.0.210.0070.00016.86
8.0.200.0030.00316.81
8.0.190.0000.00816.98
8.0.180.0000.00816.98
8.0.170.0040.00416.91
8.0.160.0030.00316.95
8.0.150.0030.00316.86
8.0.140.0000.00716.83
8.0.130.0060.00013.39
8.0.120.0000.00816.88
8.0.110.0040.00416.75
8.0.100.0040.00416.80
8.0.90.0000.00716.80
8.0.80.0130.00716.89
8.0.70.0050.00216.78
8.0.60.0030.00616.86
8.0.50.0000.00716.84
8.0.30.0100.00816.90
8.0.20.0110.00817.41
8.0.10.0030.00516.98
8.0.00.0120.00516.63
7.4.330.0020.00215.08
7.4.320.0040.00416.63
7.4.300.0030.00316.53
7.4.290.0030.00316.65
7.4.280.0040.00416.52
7.4.270.0050.00216.59
7.4.260.0030.00316.60
7.4.250.0080.00016.44
7.4.240.0030.00316.61
7.4.230.0030.00316.60
7.4.220.0130.00616.64
7.4.210.0140.00016.55
7.4.200.0040.00416.36
7.4.160.0120.00316.61
7.4.150.0070.01117.40
7.4.140.0130.00817.86
7.4.130.0110.01116.45
7.4.120.0120.00416.55
7.4.110.0100.00716.45
7.4.100.0120.00616.54
7.4.90.0100.00716.51
7.4.80.0030.01419.39
7.4.70.0110.00516.46
7.4.60.0000.01516.59
7.4.50.0000.00516.52
7.4.40.0110.00616.44
7.4.30.0160.00616.55
7.4.00.0070.00715.26
7.3.330.0040.00313.34
7.3.320.0030.00313.32
7.3.310.0000.00716.18
7.3.300.0000.00716.27
7.3.290.0080.00816.27
7.3.280.0100.00816.34
7.3.270.0090.01017.40
7.3.260.0130.01016.32
7.3.250.0110.00616.35
7.3.240.0120.00616.34
7.3.230.0130.00416.48
7.3.210.0090.00616.62
7.3.200.0080.00816.36
7.3.190.0080.00816.30
7.3.180.0090.00616.27
7.3.170.0060.00916.46
7.3.160.0150.00316.62
7.2.330.0110.01116.62
7.2.320.0080.00816.41
7.2.310.0130.00316.70
7.2.300.0090.00916.64
7.2.290.0120.00616.57
7.1.200.0070.00315.89
7.1.100.0040.00717.85
7.1.70.0080.00317.36
7.1.60.0140.01019.13
7.1.50.0070.01516.87
7.1.00.0030.07722.54
7.0.200.0000.01016.81
7.0.60.0070.04019.80
7.0.50.0030.04017.73
7.0.40.0130.08020.27
7.0.30.0300.04020.09
7.0.20.0270.08020.07
7.0.10.0330.05720.23
7.0.00.0100.06020.14
5.6.280.0070.05021.05
5.6.210.0070.06020.57
5.6.200.0030.04318.25
5.6.190.0070.09020.79
5.6.180.0470.07720.57
5.6.170.0270.07720.44
5.6.160.0030.04320.61
5.6.150.0100.08318.18
5.6.140.0030.04018.11
5.6.130.0030.07718.23
5.6.120.0070.05321.11
5.6.110.0030.04021.00
5.6.100.0070.05721.11
5.6.90.0070.06321.13
5.6.80.0070.04020.29
5.6.70.2970.03020.36
5.5.350.0030.03020.44
5.5.340.0030.04017.98
5.5.330.0070.09020.35
5.5.320.0030.07720.42
5.5.310.0230.07320.23
5.5.300.0070.05018.08
5.5.290.0070.08318.02
5.5.280.0130.07020.77
5.5.270.0030.04320.81
5.5.260.0170.07720.89
5.5.250.0070.03720.69
5.5.240.0070.07720.16
5.4.450.0500.06319.17
5.4.440.0730.06319.45
5.4.430.0870.03719.57
5.4.420.0700.05719.57
5.4.410.0770.05719.06
5.4.400.0700.05019.12
5.4.390.0570.06019.09
5.4.380.0800.05319.27
5.4.370.0800.04019.12
5.4.360.0770.04719.10
5.4.350.0730.04718.98
5.4.340.0730.07019.15
5.4.320.0700.05718.98
5.4.310.0700.05319.10
5.4.300.0700.05719.28
5.4.290.0670.05719.22
5.4.280.0600.05018.86
5.4.270.0770.04319.14
5.4.260.0830.05319.14
5.4.250.0670.04319.14
5.4.240.0630.04719.27
5.4.230.0630.04719.36
5.4.220.0670.05319.35
5.4.210.0700.07319.28
5.4.200.0730.05719.27
5.4.190.0600.05319.00
5.4.180.0600.04719.24
5.4.170.0630.06019.25
5.4.160.0730.04719.25
5.4.150.0500.07018.96
5.4.140.0770.06716.59
5.4.130.0800.04316.33
5.4.120.0530.05316.78
5.4.110.0530.05716.65
5.4.100.0500.05016.63
5.4.90.0700.04716.67
5.4.80.0670.05016.65
5.4.70.0770.04716.32
5.4.60.0700.04316.60
5.4.50.0670.04016.40
5.4.40.0600.05716.59
5.4.30.0630.06716.23
5.4.20.0470.05316.44
5.4.10.0470.05316.54
5.4.00.0570.04715.75

preferences:
52.65 ms | 400 KiB | 5 Q