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(); var_dump($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.60.0040.01118.31
8.3.50.0090.00722.03
8.3.40.0150.00618.54
8.3.30.0110.00418.90
8.3.20.0040.00420.21
8.3.10.0040.00423.66
8.3.00.0040.00419.13
8.2.180.0070.01118.16
8.2.170.0100.01022.96
8.2.160.0070.00720.53
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.14
8.2.110.0030.00621.91
8.2.100.0060.00617.84
8.2.90.0000.00818.87
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0100.00518.07
8.2.40.0030.00619.96
8.2.30.0040.00419.70
8.2.20.0060.00317.64
8.2.10.0040.00419.65
8.2.00.0000.00717.51
8.1.280.0070.01425.92
8.1.270.0040.00423.82
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00923.84
8.1.230.0040.00719.01
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0050.00517.22
8.1.190.0040.00417.43
8.1.180.0030.01018.10
8.1.170.0040.00418.53
8.1.160.0040.00421.86
8.1.150.0040.00418.45
8.1.140.0040.00417.31
8.1.130.0000.00717.77
8.1.120.0000.00817.43
8.1.110.0070.00017.38
8.1.100.0000.00817.27
8.1.90.0000.00717.34
8.1.80.0040.00417.39
8.1.70.0070.00017.31
8.1.60.0030.00617.50
8.1.50.0050.00317.45
8.1.40.0060.00317.45
8.1.30.0080.00017.48
8.1.20.0030.00617.54
8.1.10.0020.00517.49
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0070.00018.30
8.0.270.0070.00017.13
8.0.260.0000.00618.40
8.0.250.0070.00016.93
8.0.240.0000.00716.91
8.0.230.0040.00416.75
8.0.220.0030.00316.74
8.0.210.0000.00716.89
8.0.200.0030.00316.91
8.0.190.0040.00416.76
8.0.180.0050.00316.83
8.0.170.0040.00416.81
8.0.160.0040.00416.86
8.0.150.0090.00016.67
8.0.140.0040.00416.82
8.0.130.0030.00313.30
8.0.120.0040.00416.84
8.0.110.0050.00216.72
8.0.100.0040.00416.63
8.0.90.0050.00216.87
8.0.80.0110.00816.85
8.0.70.0070.00016.65
8.0.60.0030.00616.63
8.0.50.0040.00416.67
8.0.30.0130.01116.96
8.0.20.0060.01217.40
8.0.10.0040.00416.97
8.0.00.0130.00816.68
7.4.330.0000.00515.00
7.4.320.0030.00316.40
7.4.300.0000.00716.51
7.4.290.0070.00016.50
7.4.280.0060.00316.53
7.4.270.0000.00816.48
7.4.260.0000.00716.43
7.4.250.0040.00416.42
7.4.240.0020.00516.42
7.4.230.0050.00216.28
7.4.220.0100.00716.66
7.4.210.0120.00416.54
7.4.200.0040.00416.64
7.4.190.0000.00716.51
7.4.160.0030.01316.33
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0140.00316.58
7.4.120.0100.00716.39
7.4.110.0110.00516.40
7.4.100.0070.01016.36
7.4.90.0040.01416.41
7.4.80.0120.00919.39
7.4.70.0120.00316.41
7.4.60.0030.01316.28
7.4.50.0060.00316.24
7.4.40.0040.01316.48
7.4.30.0120.00316.54
7.4.00.0050.00814.78
7.3.330.0030.00313.17
7.3.320.0000.00512.96
7.3.310.0000.00716.15
7.3.300.0080.00016.17
7.3.290.0000.01316.19
7.3.280.0080.00816.15
7.3.270.0130.00317.40
7.3.260.0060.01816.23
7.3.250.0070.01316.49
7.3.240.0130.00316.43
7.3.230.0040.01216.39
7.3.210.0130.00316.51
7.3.200.0130.00719.39
7.3.190.0120.00616.35
7.3.180.0100.01016.50
7.3.170.0060.00916.27
7.3.160.0040.01116.10
7.3.120.0070.01214.62
7.3.110.0080.00914.53
7.3.100.0050.01014.61
7.3.90.0070.01014.80
7.3.80.0080.01114.78
7.3.70.0030.00914.66
7.3.60.0050.00614.64
7.3.50.0100.00514.64
7.3.40.0000.01414.65
7.3.30.0020.01014.63
7.3.20.0070.01016.33
7.3.10.0080.01016.42
7.3.00.0040.00716.59
7.2.330.0120.00816.64
7.2.320.0090.01216.46
7.2.310.0000.01916.40
7.2.300.0070.01016.42
7.2.290.0070.01016.54
7.2.250.0090.00714.63
7.2.240.0070.01015.04
7.2.230.0080.00915.06
7.2.220.0120.00514.87
7.2.210.0050.01214.74
7.2.200.0040.01015.00
7.2.190.0070.00714.89
7.2.180.0080.01014.77
7.2.170.0070.00614.90
7.2.160.0040.00714.86
7.2.150.0110.00716.93
7.2.140.0100.01016.77
7.2.130.0040.01116.70
7.2.120.0050.00516.60
7.2.110.0100.00316.61
7.2.100.0090.00316.64
7.2.90.0000.01716.82
7.2.80.0070.01016.52
7.2.70.0030.00616.96
7.2.60.0050.00917.01
7.2.50.0060.01016.68
7.2.40.0070.00716.91
7.2.30.0070.01116.68
7.2.20.0060.00916.63
7.2.10.0030.00716.87
7.2.00.0050.00817.81
7.1.330.0090.00615.72
7.1.320.0050.00815.69
7.1.310.0060.01215.84
7.1.300.0020.01415.58
7.1.290.0080.00715.62
7.1.280.0030.00915.60
7.1.270.0030.01015.63
7.1.260.0090.00415.71
7.1.250.0070.01015.76
7.1.200.0060.00615.77
7.1.100.0320.00512.26
7.1.70.0140.00317.04
7.1.60.0070.01819.46
7.1.50.0140.01434.79
7.1.00.0130.06322.27
7.0.200.0270.00014.70
7.0.140.0000.07021.95
7.0.60.0030.07720.03
7.0.50.0000.04317.89
7.0.40.0030.07020.14
7.0.30.0130.05320.26
7.0.20.0230.03720.19
7.0.10.0000.08320.24
7.0.00.0070.06320.15
5.6.280.0030.07320.78
5.6.210.0170.07020.53
5.6.200.0030.04018.23
5.6.190.0030.08720.47
5.6.180.0330.06020.48
5.6.170.0270.08320.62
5.6.160.0030.07320.46
5.6.150.0000.06018.25
5.6.140.0070.08018.26
5.6.130.0100.04718.25
5.6.120.0300.04021.14
5.6.110.0070.08020.98
5.6.100.0000.04320.99
5.6.90.0070.04020.88
5.6.80.0030.04020.29
5.5.350.4500.05020.44
5.5.340.0130.03317.98
5.5.330.0030.04320.45
5.5.320.2830.03320.38
5.5.310.0430.06320.32
5.5.300.0030.08317.95
5.5.290.0130.07317.93
5.5.280.0000.04320.90
5.5.270.0030.04320.87
5.5.260.0100.08020.84
5.5.250.0000.04320.77
5.5.240.0230.04020.19
5.4.450.0230.06019.45
5.4.440.0870.06319.20
5.4.430.0130.05319.37
5.4.420.0100.06019.48
5.4.410.0070.06019.44
5.4.400.0200.06019.27
5.4.390.0070.05719.07
5.4.380.0300.07018.52
5.4.370.0330.05318.47
5.4.360.0230.05718.62
5.4.350.0370.05318.80
5.4.340.0270.05718.72
5.4.320.0070.03712.50
5.4.310.0090.04312.50
5.4.300.0080.03412.50
5.4.290.0120.04512.50
5.4.280.0060.05112.39
5.4.270.0080.04612.39
5.4.260.0170.09212.39
5.4.250.0170.07112.39
5.4.240.0150.06312.39
5.4.230.0050.05912.38
5.4.220.0120.06112.38
5.4.210.0110.04912.38
5.4.200.0120.04912.39
5.4.190.0080.06912.38
5.4.180.0140.06312.38
5.4.170.0140.05812.39
5.4.160.0060.04812.39
5.4.150.0130.04712.39
5.4.140.0100.05012.07
5.4.130.0060.04612.06
5.4.120.0090.05512.02
5.4.110.0070.05212.01
5.4.100.0110.04312.00
5.4.90.0070.05112.01
5.4.80.0060.05212.01
5.4.70.0050.05212.00
5.4.60.0080.04112.00
5.4.50.0090.05712.01
5.4.40.0070.03812.00
5.4.30.0080.04611.99
5.4.20.0130.06111.99
5.4.10.0150.07211.99
5.4.00.0140.07811.48
5.3.290.0090.05312.80
5.3.280.0150.05912.71
5.3.270.0110.06212.72
5.3.260.0100.06012.72
5.3.250.0090.06012.72
5.3.240.0110.05112.72
5.3.230.0080.05012.71
5.3.220.0110.05312.68
5.3.210.0100.06912.68
5.3.200.0100.05912.68
5.3.190.0070.04812.68
5.3.180.0140.07612.68
5.3.170.0080.05012.66
5.3.160.0060.04712.67
5.3.150.0070.04212.68
5.3.140.0060.03612.66
5.3.130.0060.04012.66
5.3.120.0070.05512.66
5.3.110.0060.05612.66
5.3.100.0060.05312.13
5.3.90.0080.05912.13
5.3.80.0050.05712.10
5.3.70.0070.06312.11
5.3.60.0100.04712.09
5.3.50.0060.04712.04
5.3.40.0080.04712.04
5.3.30.0090.04411.99
5.3.20.0090.04811.78
5.3.10.0100.04011.74
5.3.00.0060.03711.74
5.2.170.0070.0299.18
5.2.160.0020.0329.18
5.2.150.0080.0279.18
5.2.140.0060.0299.18
5.2.130.0030.0319.14
5.2.120.0060.0289.14
5.2.110.0030.0319.14
5.2.100.0050.0289.14
5.2.90.0040.0319.14
5.2.80.0080.0309.14
5.2.70.0080.0319.13
5.2.60.0070.0289.09
5.2.50.0060.0299.06
5.2.40.0050.0299.03
5.2.30.0040.0319.01
5.2.20.0070.0319.00
5.2.10.0060.0278.93
5.2.00.0060.0298.78
5.1.60.0070.0218.07
5.1.50.0030.0258.06
5.1.40.0040.0248.04
5.1.30.0050.0388.40
5.1.20.0030.0298.41
5.1.10.0050.0268.14
5.1.00.0040.0268.14
5.0.50.0070.0176.63
5.0.40.0040.0196.48
5.0.30.0020.0336.29
5.0.20.0050.0186.26
5.0.10.0060.0196.24
5.0.00.0040.0306.23
4.4.90.0020.0174.78
4.4.80.0020.0174.75
4.4.70.0040.0154.75
4.4.60.0030.0154.75
4.4.50.0030.0234.77
4.4.40.0020.0364.71
4.4.30.0030.0214.76
4.4.20.0090.0164.85
4.4.10.0030.0234.85
4.4.00.0030.0254.75
4.3.110.0020.0224.66
4.3.100.0050.0204.66
4.3.90.0030.0224.63
4.3.80.0040.0274.58
4.3.70.0050.0194.63
4.3.60.0060.0174.63
4.3.50.0050.0164.63
4.3.40.0060.0324.54
4.3.30.0020.0223.28
4.3.20.0030.0193.25
4.3.10.0020.0183.22
4.3.00.0070.0208.16

preferences:
46.92 ms | 401 KiB | 5 Q