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"); $childclass->getName();

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.0090.00616.50
8.3.50.0070.01422.05
8.3.40.0150.00618.84
8.3.30.0110.00318.68
8.3.20.0050.00320.34
8.3.10.0080.00023.41
8.3.00.0030.00617.75
8.2.180.0090.01218.07
8.2.170.0090.00622.96
8.2.160.0100.00720.38
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00017.59
8.2.110.0040.00822.30
8.2.100.0040.00717.93
8.2.90.0030.00619.15
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00718.04
8.2.50.0000.00918.07
8.2.40.0000.00821.01
8.2.30.0000.00820.66
8.2.20.0000.00817.75
8.2.10.0000.00718.04
8.2.00.0000.00818.06
8.1.280.0070.00725.92
8.1.270.0000.00824.66
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00922.53
8.1.230.0070.00417.75
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0100.00017.36
8.1.190.0000.00916.99
8.1.180.0080.00018.10
8.1.170.0080.00020.18
8.1.160.0070.00022.02
8.1.150.0000.00718.93
8.1.140.0040.00419.64
8.1.130.0070.00017.74
8.1.120.0000.00817.50
8.1.110.0000.00717.39
8.1.100.0040.00417.50
8.1.90.0090.00017.49
8.1.80.0040.00417.46
8.1.70.0050.00217.47
8.1.60.0040.00417.51
8.1.50.0040.00417.59
8.1.40.0050.00317.41
8.1.30.0040.00417.56
8.1.20.0040.00417.59
8.1.10.0050.00317.64
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0080.00018.36
8.0.270.0000.00717.18
8.0.260.0040.00417.16
8.0.250.0040.00416.96
8.0.240.0000.00816.86
8.0.230.0070.00317.04
8.0.220.0070.00016.94
8.0.210.0000.00616.83
8.0.200.0060.00316.87
8.0.190.0060.00316.95
8.0.180.0040.00416.81
8.0.170.0030.00516.87
8.0.160.0050.00216.80
8.0.150.0000.00716.80
8.0.140.0080.00016.68
8.0.130.0030.00513.28
8.0.120.0000.00816.73
8.0.110.0040.00416.84
8.0.100.0000.00816.94
8.0.90.0070.00016.73
8.0.80.0120.00316.95
8.0.70.0040.00416.91
8.0.60.0080.00016.80
8.0.50.0040.00416.84
8.0.30.0130.00717.22
8.0.20.0100.00917.40
8.0.10.0050.00217.08
8.0.00.0090.00816.75
7.4.330.0030.00315.08
7.4.320.0030.00316.41
7.4.300.0030.00316.52
7.4.290.0040.00416.64
7.4.280.0070.00016.52
7.4.270.0050.00216.38
7.4.260.0070.00016.56
7.4.250.0030.00316.60
7.4.240.0020.00516.49
7.4.230.0070.00016.43
7.4.220.0060.01216.55
7.4.210.0050.00816.50
7.4.200.0070.00016.68
7.4.160.0120.00316.53
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0150.00916.55
7.4.120.0080.00816.61
7.4.110.0070.01016.58
7.4.100.0070.01016.59
7.4.90.0100.00716.61
7.4.80.0100.00719.39
7.4.70.0060.01016.63
7.4.60.0090.00616.48
7.4.50.0040.00416.48
7.4.40.0060.00916.41
7.4.30.0070.01016.33
7.4.00.0070.00715.13
7.3.330.0030.00513.38
7.3.320.0060.00013.23
7.3.310.0030.00316.39
7.3.300.0070.00016.31
7.3.290.0090.00716.37
7.3.280.0090.01216.41
7.3.270.0090.00917.40
7.3.260.0170.00016.39
7.3.240.0120.00816.36
7.3.230.0040.01416.39
7.3.210.0000.01616.64
7.3.200.0070.01116.45
7.3.190.0070.01016.54
7.3.180.0120.00416.39
7.3.170.0130.00316.27
7.3.160.0110.01116.38
7.3.120.0090.00914.84
7.3.110.0110.00714.88
7.3.100.0090.00614.57
7.3.90.0000.00914.83
7.3.80.0030.00614.89
7.3.70.0040.00414.98
7.3.60.0090.00614.99
7.3.50.0040.01114.75
7.3.40.0080.00315.01
7.3.30.0000.01614.89
7.3.20.0070.00716.38
7.3.10.0070.00916.67
7.3.00.0070.00416.58
7.2.330.0000.01716.34
7.2.320.0180.00316.66
7.2.310.0120.00316.79
7.2.300.0120.00616.45
7.2.290.0100.00616.45
7.2.240.0030.01215.06
7.2.230.0000.01815.26
7.2.220.0090.00614.82
7.2.210.0070.00314.62
7.2.200.0060.00615.20
7.2.190.0060.00614.79
7.2.180.0000.01014.65
7.2.170.0000.01414.91
7.2.160.0090.00314.73
7.2.150.0090.00616.68
7.2.140.0070.01017.05
7.2.130.0060.00816.86
7.2.120.0070.00916.94
7.2.110.0050.01216.79
7.2.100.0030.01216.81
7.2.90.0060.01016.92
7.2.80.0090.00616.89
7.2.70.0080.00816.75
7.2.60.0050.01017.06
7.2.50.0020.01416.90
7.2.40.0070.00517.00
7.2.30.0100.00616.87
7.2.20.0060.00617.01
7.2.10.0030.01116.87
7.2.00.0150.00817.72
7.1.330.0000.01515.50
7.1.320.0090.00315.90
7.1.310.0070.00315.77
7.1.300.0000.00815.84
7.1.290.0040.00815.86
7.1.280.0030.01015.83
7.1.270.0080.00315.75
7.1.260.0030.01016.00
7.1.250.0030.00915.80
7.1.100.0080.00317.95
7.1.70.0030.00617.09
7.1.60.0030.00717.25
7.1.50.0160.00617.02
7.1.00.0030.07722.33
7.0.200.0030.01416.79
7.0.60.0030.06319.93
7.0.50.0070.04017.86
7.0.40.0000.06320.27
7.0.30.0270.05320.07
7.0.20.1200.05720.28
7.0.10.0270.04020.26
7.0.00.0100.05020.25
5.6.280.0100.06020.82
5.6.210.0070.07320.48
5.6.200.0030.06018.28
5.6.190.0130.05020.48
5.6.180.0030.04020.64
5.6.170.0170.04020.57
5.6.160.0070.08720.47
5.6.150.0100.08318.15
5.6.140.0030.03718.29
5.6.130.0030.08718.28
5.6.120.0130.07321.16
5.6.110.0100.03321.02
5.6.100.0030.09321.09
5.6.90.0130.05321.01
5.6.80.0170.06720.43
5.6.70.3170.02720.39
5.5.350.0030.03720.42
5.5.340.0070.04018.07
5.5.330.0100.05320.35
5.5.320.0030.04320.24
5.5.310.0230.08020.27
5.5.300.0170.07018.01
5.5.290.0100.07717.94
5.5.280.0100.05720.89
5.5.270.0070.04020.88
5.5.260.0070.03720.98
5.5.250.0030.04020.67
5.5.240.0130.04720.16
5.4.450.0170.05319.36
5.4.440.0170.05719.59
5.4.430.0130.05719.60
5.4.420.0130.05719.60
5.4.410.0270.05019.29
5.4.400.0200.04719.28
5.4.390.0330.03718.84
5.4.380.0170.05019.15
5.4.370.0100.05719.02
5.4.360.0130.05319.36
5.4.350.0200.04719.23
5.4.340.0130.06719.38
5.4.320.0100.06018.93
5.4.310.0170.05018.84
5.4.300.0100.05719.24
5.4.290.0130.05319.28
5.4.280.0070.06019.11
5.4.270.0200.04719.23
5.4.260.0200.05719.05
5.4.250.0170.05019.27
5.4.240.0170.05319.23
5.4.230.0130.06319.36
5.4.220.0300.05319.15
5.4.210.0270.04319.24
5.4.200.0070.05719.27
5.4.190.0200.05719.21
5.4.180.0130.05018.83
5.4.170.0270.04019.13
5.4.160.0100.05719.25
5.4.150.0300.04018.82
5.4.140.0230.04316.57
5.4.130.0170.05316.60
5.4.120.0270.06016.77
5.4.110.0200.04716.63
5.4.100.0230.04316.33
5.4.90.0270.05016.66
5.4.80.0170.06016.46
5.4.70.0200.04316.61
5.4.60.0130.05716.17
5.4.50.0130.05016.42
5.4.40.0130.05016.45
5.4.30.0100.05316.57
5.4.20.0130.05716.61
5.4.10.0230.04316.61
5.4.00.0130.05015.79

preferences:
57.37 ms | 401 KiB | 5 Q