3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace CParent { class Helper{} class Test{ /** * @var Helper */ public $helper; public function __construnct() { $this->helper = new Helper(); } } } namespace Child { class Helper{} class Test extends \CParent\Test {} } namespace { $qwe = new Child\Test(); get_class($qwe->helper); }

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.70.0110.00418.56
8.3.60.0100.00318.39
8.3.50.0070.01122.06
8.3.40.0070.00719.00
8.3.30.0070.00719.14
8.3.20.0000.00820.29
8.3.10.0000.00823.48
8.3.00.0060.00319.38
8.2.180.0160.00618.31
8.2.170.0070.00722.96
8.2.160.0140.00420.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0070.00022.21
8.2.110.0100.00020.52
8.2.100.0000.01117.70
8.2.90.0000.00819.23
8.2.80.0030.00617.97
8.2.70.0030.00517.38
8.2.60.0060.00318.04
8.2.50.0060.00618.07
8.2.40.0080.00019.86
8.2.30.0000.00819.66
8.2.20.0030.00517.68
8.2.10.0080.00018.00
8.2.00.0060.00317.58
8.1.280.0100.00325.92
8.1.270.0070.01123.96
8.1.260.0000.00826.35
8.1.250.0020.00528.09
8.1.240.0040.00422.23
8.1.230.0070.00417.45
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.36
8.1.190.0080.00017.53
8.1.180.0090.00018.10
8.1.170.0080.00018.52
8.1.160.0000.00821.95
8.1.150.0000.00718.52
8.1.140.0040.00417.29
8.1.130.0000.00717.73
8.1.120.0040.00417.28
8.1.110.0000.00817.35
8.1.100.0000.00817.32
8.1.90.0040.00417.26
8.1.80.0060.00317.44
8.1.70.0000.00717.32
8.1.60.0000.00817.57
8.1.50.0040.00417.47
8.1.40.0000.00817.42
8.1.30.0060.00317.61
8.1.20.0050.00317.66
8.1.10.0000.00817.52
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.37
8.0.270.0040.00417.11
8.0.260.0070.00017.10
8.0.250.0030.00316.95
8.0.240.0030.00316.97
8.0.230.0080.00016.91
8.0.220.0030.00516.76
8.0.210.0070.00016.76
8.0.200.0000.00616.88
8.0.190.0080.00016.81
8.0.180.0040.00416.96
8.0.170.0040.00416.82
8.0.160.0040.00416.90
8.0.150.0070.00016.82
8.0.140.0070.00016.75
8.0.130.0000.00613.29
8.0.120.0040.00416.79
8.0.110.0040.00416.84
8.0.100.0080.00016.74
8.0.90.0040.00416.89
8.0.80.0000.02016.89
8.0.70.0040.00416.82
8.0.60.0040.00416.70
8.0.50.0040.00416.93
8.0.30.0070.01217.02
8.0.20.0080.01017.40
8.0.10.0000.00817.07
8.0.00.0080.01216.72
7.4.330.0030.00315.05
7.4.320.0070.00016.43
7.4.300.0030.00316.54
7.4.290.0000.00716.51
7.4.280.0040.00716.34
7.4.270.0000.00716.55
7.4.260.0060.00316.57
7.4.250.0000.00716.30
7.4.240.0050.00216.51
7.4.230.0030.00316.36
7.4.220.0140.00316.40
7.4.210.0060.00916.52
7.4.200.0000.00716.46
7.4.190.0030.00316.49
7.4.160.0080.00816.44
7.4.150.0030.01317.40
7.4.140.0120.01017.86
7.4.130.0080.00916.48
7.4.120.0130.00616.50
7.4.110.0100.00616.50
7.4.100.0140.00316.34
7.4.90.0160.00716.34
7.4.80.0030.01919.39
7.4.70.0060.00916.45
7.4.60.0080.01116.24
7.4.50.0030.00616.38
7.4.40.0070.01016.35
7.4.30.0090.01116.49
7.4.00.0090.00914.96
7.3.330.0000.00713.23
7.3.320.0060.00013.10
7.3.310.0040.00416.11
7.3.300.0030.00316.29
7.3.290.0070.00816.25
7.3.280.0080.00816.23
7.3.270.0070.01017.40
7.3.260.0090.01616.25
7.3.250.0060.01216.27
7.3.240.0090.01016.15
7.3.230.0130.00616.39
7.3.210.0100.00716.42
7.3.200.0060.01219.39
7.3.190.0160.00716.49
7.3.180.0130.00316.30
7.3.170.0120.00416.27
7.3.160.0090.00616.27
7.3.120.0080.00814.84
7.3.10.0090.00616.30
7.3.00.0110.00716.43
7.2.330.0140.00616.31
7.2.320.0130.01016.64
7.2.310.0090.00916.59
7.2.300.0100.00716.56
7.2.290.0100.01016.37
7.2.130.0100.00616.64
7.2.120.0130.00416.70
7.2.110.0080.01116.76
7.2.100.0070.00916.75
7.2.90.0100.00616.74
7.2.80.0100.01116.80
7.2.70.0110.00616.84
7.2.60.0060.01116.69
7.2.50.0080.00616.81
7.2.40.0130.00316.68
7.2.30.0060.01116.71
7.2.20.0100.00716.83
7.2.10.0100.00416.84
7.2.00.0050.00917.68
7.1.250.0060.00615.60
7.1.200.0040.00815.59
7.1.100.0060.00918.12
7.1.70.0120.00317.11
7.1.60.0170.00719.46
7.1.50.0100.01016.80
7.1.00.0030.07322.57
7.0.200.0520.00714.30
7.0.140.0000.06722.18
7.0.60.0070.08319.93
7.0.50.0130.07717.81
7.0.40.0030.07320.40
7.0.30.0430.04720.25
7.0.20.0200.04320.30
7.0.10.0070.04020.26
7.0.00.0030.04320.22
5.6.280.0070.06720.93
5.6.210.0070.07020.66
5.6.200.0070.08718.29
5.6.190.0070.08320.76
5.6.180.0530.07020.48
5.6.170.0370.07020.47
5.6.160.0030.09020.52
5.6.150.0000.08318.14
5.6.140.0130.07718.19
5.6.130.0070.08318.27
5.6.120.0100.08321.02
5.6.110.0230.06320.96
5.6.100.0070.08021.13
5.6.90.0030.04320.97
5.6.80.0130.08320.53
5.5.350.3070.04020.41
5.5.340.0070.07717.99
5.5.330.0130.06720.31
5.5.320.0330.05320.24
5.5.310.0230.07020.20
5.5.300.0070.03717.95
5.5.290.0030.04017.98
5.5.280.0000.04320.88
5.5.270.0100.08320.73
5.5.260.0070.08020.77
5.5.250.0130.07720.77
5.5.240.0130.07020.26
5.4.450.0370.06719.64
5.4.440.0430.05719.54
5.4.430.0230.05319.41
5.4.420.0330.03719.30
5.4.410.0430.05319.25
5.4.400.0230.03719.14
5.4.390.0270.05319.06
5.4.380.0300.06019.09
5.4.370.0330.05718.96
5.4.360.0300.04318.85
5.4.350.0270.04019.16
5.4.340.0270.07318.98
5.4.320.0200.06719.22
5.4.310.0270.06318.85
5.4.300.0370.06719.06
5.4.290.0330.07018.98
5.4.280.0330.06319.19
5.4.270.0400.04018.84
5.4.260.0300.06019.31
5.4.250.0330.06718.87
5.4.240.0330.07019.14
5.4.230.0300.03719.21
5.4.220.0370.06018.99
5.4.210.0330.07019.14
5.4.200.0400.04319.08
5.4.190.0330.06019.21
5.4.180.0370.06018.87
5.4.170.0200.05019.13
5.4.160.0330.07019.07
5.4.150.0270.06018.83
5.4.140.0270.06716.44
5.4.130.0370.06316.38
5.4.120.0370.06316.50
5.4.110.0270.04316.32
5.4.100.0270.07016.50
5.4.90.0370.06316.50
5.4.80.0200.03716.45
5.4.70.0200.03316.39
5.4.60.0270.05716.54
5.4.50.0130.04316.24
5.4.40.0130.04016.43
5.4.30.0300.03016.43
5.4.20.0170.03716.58
5.4.10.0200.03316.37
5.4.00.0170.03715.82
5.3.290.0270.07714.57
5.3.280.0270.07714.57
5.3.270.0370.07014.53
5.3.260.0270.07314.71
5.3.250.0400.06014.76
5.3.240.0330.06314.68
5.3.230.0370.06714.63
5.3.220.0270.06014.72
5.3.210.0400.06314.54
5.3.200.0370.06014.47
5.3.190.0270.04714.68
5.3.180.0170.04014.64
5.3.170.0200.04314.53
5.3.160.0130.04014.49
5.3.150.0200.03314.78
5.3.140.0270.02714.66
5.3.130.0130.04314.54
5.3.120.0170.03714.52
5.3.110.0200.03714.52
5.3.100.0130.04014.04
5.3.90.0230.03014.24
5.3.80.0170.03714.09
5.3.70.0130.04014.00
5.3.60.0200.03313.91
5.3.50.0230.03713.96
5.3.40.0200.03014.04
5.3.30.0270.02714.02
5.3.20.0230.03013.70
5.3.10.0130.03713.77
5.3.00.0170.03713.64
5.2.170.0170.02712.22
5.2.160.0270.01712.22
5.2.150.0170.02712.22
5.2.140.0130.03012.22
5.2.130.0100.03312.22
5.2.120.0130.02712.22
5.2.110.0200.02312.22
5.2.100.0100.03312.22
5.2.90.0200.02012.22
5.2.80.0130.03012.22
5.2.70.0130.03012.22
5.2.60.0100.03312.22
5.2.50.0200.03012.22
5.2.40.0130.02712.22
5.2.30.0170.03012.22
5.2.20.0100.03012.22
5.2.10.0100.03312.22
5.2.00.0100.03012.22
5.1.60.0100.02312.22
5.1.50.0170.01712.22
5.1.40.0070.03012.22
5.1.30.0130.03012.22
5.1.20.0130.02312.22
5.1.10.0100.02712.22
5.1.00.0130.03312.22
5.0.50.0130.04712.22
5.0.40.0230.03312.22
5.0.30.0170.03312.22
5.0.20.0070.03312.22
5.0.10.0130.04012.22
5.0.00.0100.06012.22
4.4.90.0070.01312.22
4.4.80.0030.01712.22
4.4.70.0030.01712.22
4.4.60.0030.02712.22
4.4.50.0070.01312.22
4.4.40.0070.02312.22
4.4.30.0070.01312.22
4.4.20.0070.01312.22
4.4.10.0100.02012.22
4.4.00.0100.04712.22
4.3.110.0070.03012.22
4.3.100.0170.02712.22
4.3.90.0070.03712.22
4.3.80.0100.05012.22
4.3.70.0100.03712.22
4.3.60.0070.03312.22
4.3.50.0070.03712.22
4.3.40.0100.05312.22
4.3.30.0030.03012.22
4.3.20.0030.03712.22
4.3.10.0100.02712.22
4.3.00.0070.03312.22

preferences:
44.22 ms | 401 KiB | 5 Q