3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Interfaze { public function hello($name); } 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.00816.63
8.3.50.0150.00722.03
8.3.40.0140.00418.61
8.3.30.0000.01518.54
8.3.20.0080.00020.25
8.3.10.0050.00223.65
8.3.00.0030.00517.63
8.2.180.0090.01218.30
8.2.170.0120.00322.96
8.2.160.0160.00320.23
8.2.150.0060.00325.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.38
8.2.110.0080.00322.26
8.2.100.0110.00017.68
8.2.90.0070.00019.09
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0100.00017.92
8.2.50.0000.00818.07
8.2.40.0040.00421.04
8.2.30.0000.00720.73
8.2.20.0000.00717.75
8.2.10.0030.00518.13
8.2.00.0040.00418.05
8.1.280.0140.00025.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.52
8.1.230.0090.00317.43
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.24
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0040.00420.38
8.1.160.0050.00321.98
8.1.150.0000.00718.93
8.1.140.0000.00819.60
8.1.130.0030.00317.72
8.1.120.0000.00717.43
8.1.110.0040.00417.35
8.1.100.0000.00717.50
8.1.90.0040.00417.50
8.1.80.0000.00717.49
8.1.70.0070.00017.47
8.1.60.0040.00417.49
8.1.50.0000.00917.54
8.1.40.0000.00817.56
8.1.30.0050.00317.58
8.1.20.0080.00017.64
8.1.10.0000.00817.57
8.1.00.0000.00717.50
8.0.300.0020.00518.77
8.0.290.0030.00516.75
8.0.280.0000.00718.33
8.0.270.0040.00417.17
8.0.260.0030.00317.16
8.0.250.0040.00416.94
8.0.240.0040.00416.82
8.0.230.0060.00317.02
8.0.220.0000.00716.91
8.0.210.0050.00316.73
8.0.200.0000.00716.97
8.0.190.0060.00316.89
8.0.180.0080.00016.80
8.0.170.0040.00416.86
8.0.160.0030.00316.91
8.0.150.0000.00716.70
8.0.140.0000.00716.89
8.0.130.0060.00013.39
8.0.120.0030.00616.89
8.0.110.0040.00416.86
8.0.100.0040.00416.89
8.0.90.0040.00416.71
8.0.80.0030.01216.84
8.0.70.0040.00416.75
8.0.60.0030.00616.69
8.0.50.0050.00216.71
8.0.30.0090.00816.79
8.0.20.0090.00917.40
8.0.10.0000.00717.00
8.0.00.0080.00916.80
7.4.330.0030.00315.08
7.4.320.0030.00316.45
7.4.300.0030.00316.65
7.4.290.0030.00316.42
7.4.280.0080.00016.50
7.4.270.0040.00416.40
7.4.260.0000.00716.54
7.4.250.0040.00416.57
7.4.240.0000.00716.55
7.4.230.0030.00316.42
7.4.220.0060.01216.69
7.4.210.0040.00916.55
7.4.200.0050.00216.68
7.4.160.0070.01016.34
7.4.150.0150.00717.40
7.4.140.0080.00917.86
7.4.130.0140.00316.61
7.4.120.0120.01016.49
7.4.110.0110.00616.62
7.4.100.0110.00616.52
7.4.90.0030.01316.49
7.4.80.0120.00619.39
7.4.70.0120.00816.58
7.4.60.0090.00616.47
7.4.50.0040.00416.25
7.4.40.0060.00916.52
7.4.30.0100.01316.30
7.4.00.0030.01414.76
7.3.330.0070.00013.36
7.3.320.0050.00013.36
7.3.310.0070.00016.32
7.3.300.0000.00716.23
7.3.290.0070.00816.30
7.3.280.0090.00816.36
7.3.270.0100.00717.40
7.3.260.0100.00716.61
7.3.250.0080.00916.51
7.3.240.0120.00516.33
7.3.230.0070.01016.54
7.3.210.0060.01016.30
7.3.200.0080.01116.15
7.3.190.0110.00916.75
7.3.180.0080.00916.58
7.3.170.0060.00916.64
7.3.160.0140.00616.30
7.2.330.0090.00916.72
7.2.320.0120.00916.70
7.2.310.0060.01716.64
7.2.300.0190.00016.45
7.2.290.0100.00716.83
7.2.00.0300.01319.45
7.1.100.0000.01117.95
7.1.70.0040.01817.21
7.1.60.0130.01319.13
7.1.50.0100.01016.63
7.1.00.0070.07322.40
7.0.200.0020.00516.76
7.0.60.0070.04019.92
7.0.50.0030.08017.84
7.0.40.0100.07720.18
7.0.30.0230.04720.24
7.0.20.0330.07720.20
7.0.10.0300.07320.10
7.0.00.0070.06020.25
5.6.280.0000.06720.87
5.6.210.0070.06720.73
5.6.200.0070.03718.25
5.6.190.0000.04720.63
5.6.180.0030.06720.42
5.6.170.0230.05020.55
5.6.160.0070.08320.50
5.6.150.0130.07718.14
5.6.140.0000.06718.21
5.6.130.0100.06718.18
5.6.120.0070.05720.99
5.6.110.0100.07721.09
5.6.100.0100.08021.00
5.6.90.0100.08021.11
5.6.80.0030.08320.53
5.6.70.4330.03320.38
5.5.350.0030.06320.45
5.5.340.0100.07718.04
5.5.330.0070.03720.47
5.5.320.0070.08720.23
5.5.310.0170.04720.37
5.5.300.0100.05017.99
5.5.290.0100.07017.95
5.5.280.0030.04720.66
5.5.270.0070.03720.88
5.5.260.0100.03720.88
5.5.250.0130.07320.63
5.5.240.0100.07320.13
5.4.450.0330.05319.42
5.4.440.0230.05319.57
5.4.430.0230.04719.60
5.4.420.0370.06719.16
5.4.410.0200.04319.42
5.4.400.0070.05719.25
5.4.390.0170.04719.14
5.4.380.0330.06019.28
5.4.370.0130.05719.25
5.4.360.0300.05719.35
5.4.350.0100.05319.00
5.4.340.0470.06319.06
5.4.320.0030.06019.05
5.4.310.0200.05018.88
5.4.300.0100.05719.24
5.4.290.0170.06319.06
5.4.280.0200.06019.14
5.4.270.0100.05319.27
5.4.260.0130.04718.86
5.4.250.0170.04719.09
5.4.240.0170.04718.98
5.4.230.0100.05019.36
5.4.220.0130.05019.36
5.4.210.0330.05318.97
5.4.200.0070.05319.22
5.4.190.0200.05319.35
5.4.180.0070.05319.36
5.4.170.0130.05719.27
5.4.160.0200.04318.84
5.4.150.0130.05019.34
5.4.140.0130.04716.79
5.4.130.0130.05316.56
5.4.120.0130.05716.61
5.4.110.0100.05016.48
5.4.100.0130.04316.24
5.4.90.0100.05316.69
5.4.80.0100.05016.48
5.4.70.0100.07316.65
5.4.60.0170.05316.59
5.4.50.0000.05716.59
5.4.40.0000.05716.49
5.4.30.0070.05016.50
5.4.20.0500.07316.54
5.4.10.0130.05316.59
5.4.00.0030.05315.97

preferences:
51.14 ms | 401 KiB | 5 Q