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 CParent\Test(); var_dump($qwe); }

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.0120.00316.34
8.3.50.0050.01222.05
8.3.40.0150.00718.84
8.3.30.0190.00018.76
8.3.20.0050.00220.38
8.3.10.0040.00423.39
8.3.00.0080.00019.13
8.2.180.0070.00718.36
8.2.170.0090.00622.96
8.2.160.0070.00720.37
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.13
8.2.110.0080.00022.27
8.2.100.0110.00017.52
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0090.00017.93
8.2.50.0000.00818.10
8.2.40.0060.00320.45
8.2.30.0040.00417.88
8.2.20.0030.00617.54
8.2.10.0000.00717.91
8.2.00.0070.00017.49
8.1.280.0110.00325.92
8.1.270.0040.00423.89
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.98
8.1.230.0070.00717.63
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0000.00722.13
8.1.150.0060.00418.57
8.1.140.0040.00417.30
8.1.130.0060.00017.69
8.1.120.0040.00317.27
8.1.110.0040.00417.29
8.1.100.0050.00217.38
8.1.90.0030.00417.41
8.1.80.0080.00017.41
8.1.70.0000.00717.25
8.1.60.0090.00017.41
8.1.50.0030.00517.36
8.1.40.0070.00017.40
8.1.30.0080.00017.39
8.1.20.0040.00417.55
8.1.10.0030.00517.45
8.1.00.0070.00017.30
8.0.300.0020.00518.77
8.0.290.0080.00316.58
8.0.280.0030.00318.39
8.0.270.0060.00317.19
8.0.260.0030.00317.19
8.0.250.0040.00416.80
8.0.240.0030.00316.89
8.0.230.0070.00016.77
8.0.220.0070.00016.84
8.0.210.0040.00416.83
8.0.200.0030.00316.77
8.0.190.0040.00416.89
8.0.180.0000.00816.84
8.0.170.0000.00816.82
8.0.160.0000.00716.80
8.0.150.0030.00716.78
8.0.140.0040.00416.82
8.0.130.0000.00513.26
8.0.120.0040.00416.84
8.0.110.0030.00516.82
8.0.100.0050.00316.76
8.0.90.0040.00416.80
8.0.80.0040.01116.78
8.0.70.0040.00416.82
8.0.60.0050.00216.73
8.0.50.0000.00716.84
8.0.30.0120.01016.98
8.0.20.0070.01217.40
8.0.10.0040.00416.85
8.0.00.0060.01116.72
7.4.330.0000.00815.00
7.4.320.0060.00016.51
7.4.300.0030.00316.52
7.4.290.0040.00416.54
7.4.280.0050.00316.44
7.4.270.0040.00416.45
7.4.260.0000.00716.41
7.4.250.0000.00716.47
7.4.240.0000.00716.42
7.4.230.0080.00016.61
7.4.220.0070.01116.34
7.4.210.0080.00916.50
7.4.200.0070.00016.53
7.4.190.0030.00316.63
7.4.160.0100.00716.36
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0060.01216.32
7.4.120.0100.00716.39
7.4.110.0180.00616.35
7.4.100.0180.00416.36
7.4.90.0110.00716.43
7.4.80.0090.01519.39
7.4.70.0070.01116.36
7.4.60.0130.00316.24
7.4.50.0020.00216.26
7.4.40.0110.00916.36
7.4.30.0060.00916.25
7.4.00.0030.01214.75
7.3.330.0030.00412.98
7.3.320.0030.00313.14
7.3.310.0040.00416.02
7.3.300.0000.00716.03
7.3.290.0100.01016.19
7.3.280.0090.00816.15
7.3.270.0090.00917.40
7.3.260.0140.01016.56
7.3.250.0100.01316.30
7.3.240.0100.01016.43
7.3.230.0060.01116.39
7.3.210.0140.00716.31
7.3.200.0150.00319.39
7.3.190.0090.01216.50
7.3.180.0040.01116.46
7.3.170.0170.00516.30
7.3.160.0090.00616.17
7.3.120.0060.00914.68
7.2.330.0040.01916.56
7.2.320.0110.01116.33
7.2.310.0110.00716.60
7.2.300.0090.00916.48
7.2.290.0040.01716.61
7.2.00.0030.00919.38
7.1.100.0030.01017.87
7.1.70.0110.00717.07
7.1.60.0030.02019.46
7.1.50.0030.02016.88
7.1.00.0030.07722.40
7.0.200.0170.00714.42
7.0.140.0000.07722.00
7.0.60.0070.06019.96
7.0.50.0100.08317.98
7.0.40.0100.08020.16
7.0.30.0300.08320.23
7.0.20.0270.03720.21
7.0.10.0000.06320.06
7.0.00.0130.04320.05
5.6.280.0000.07720.77
5.6.210.0070.07320.70
5.6.200.0100.07318.16
5.6.190.0070.04720.77
5.6.180.0500.07720.63
5.6.170.0170.03720.48
5.6.160.0100.03320.41
5.6.150.0070.06718.16
5.6.140.0070.06718.15
5.6.130.0000.04318.28
5.6.120.0070.04320.90
5.6.110.0100.07720.98
5.6.100.0070.08721.11
5.6.90.0170.07321.00
5.6.80.0100.07720.53
5.5.350.4200.04320.38
5.5.340.0100.06018.02
5.5.330.0100.05020.29
5.5.320.0330.07320.34
5.5.310.0270.08020.33
5.5.300.0230.06318.01
5.5.290.0070.04717.98
5.5.280.0070.08720.78
5.5.270.0000.04320.68
5.5.260.0100.08320.89
5.5.250.0070.06320.55
5.5.240.0000.07320.07
5.4.450.0870.07319.45
5.4.440.0770.08319.41
5.4.430.0400.05719.57
5.4.420.0670.08019.46
5.4.410.0670.05019.17
5.4.400.0700.07019.13
5.4.390.0730.06019.27
5.4.380.0230.06318.63
5.4.370.0270.05018.70
5.4.360.0130.06318.79
5.4.350.0270.05318.61
5.4.340.0300.05318.56
5.4.320.0060.04212.50
5.4.310.0080.03512.50
5.4.300.0090.04012.50
5.4.290.0040.04012.49
5.4.280.0060.03612.39
5.4.270.0030.04312.39
5.4.260.0080.04712.39
5.4.250.0080.03812.39
5.4.240.0080.04512.39
5.4.230.0090.04512.38
5.4.220.0050.04112.38
5.4.210.0070.03812.38
5.4.200.0100.03812.38
5.4.190.0050.04112.38
5.4.180.0060.03712.38
5.4.170.0060.04312.39
5.4.160.0060.04312.39
5.4.150.0120.04312.39
5.4.140.0070.04312.07
5.4.130.0100.04312.06
5.4.120.0070.08012.01
5.4.110.0140.06712.00
5.4.100.0070.05212.01
5.4.90.0070.04112.01
5.4.80.0090.03712.01
5.4.70.0080.03512.00
5.4.60.0080.04812.00
5.4.50.0090.05312.00
5.4.40.0100.04612.00
5.4.30.0090.05711.99
5.4.20.0060.05311.99
5.4.10.0050.05011.99
5.4.00.0060.04511.47
5.3.290.0090.03912.80
5.3.280.0090.04712.71
5.3.270.0060.04012.72
5.3.260.0110.03712.72
5.3.250.0020.05612.71
5.3.240.0080.04112.71
5.3.230.0090.04512.70
5.3.220.0120.04612.68
5.3.210.0130.07312.68
5.3.200.0050.05512.68
5.3.190.0110.03612.68
5.3.180.0090.04412.67
5.3.170.0090.03712.67
5.3.160.0080.04212.67
5.3.150.0050.04312.68
5.3.140.0070.04412.66
5.3.130.0070.03912.66
5.3.120.0060.04012.66
5.3.110.0080.03912.65
5.3.100.0090.04112.13
5.3.90.0080.05412.11
5.3.80.0100.03212.11
5.3.70.0040.03812.10
5.3.60.0050.04112.09
5.3.50.0060.04212.04
5.3.40.0070.04912.04
5.3.30.0060.04911.99
5.3.20.0060.04611.77
5.3.10.0090.04511.74
5.3.00.0130.04011.73
5.2.170.0020.0449.18
5.2.160.0120.0429.18
5.2.150.0070.0369.18
5.2.140.0040.0349.18
5.2.130.0060.0299.14
5.2.120.0060.0309.14
5.2.110.0040.0389.15
5.2.100.0070.0379.14
5.2.90.0070.0379.14
5.2.80.0040.0429.14
5.2.70.0090.0349.14
5.2.60.0100.0369.09
5.2.50.0060.0399.06
5.2.40.0100.0349.03
5.2.30.0110.0369.01
5.2.20.0080.0419.01
5.2.10.0080.0318.92
5.2.00.0020.0328.79
5.1.60.0070.0258.07
5.1.50.0060.0268.06
5.1.40.0040.0378.05
5.1.30.0040.0288.39
5.1.20.0030.0308.42
5.1.10.0050.0258.14
5.1.00.0020.0388.14
5.0.50.0040.0276.62
5.0.40.0090.0236.48
5.0.30.0050.0466.29
5.0.20.0060.0266.26
5.0.10.0030.0306.24
5.0.00.0050.0406.23
4.4.90.0050.0214.78
4.4.80.0040.0244.76
4.4.70.0050.0224.75
4.4.60.0040.0224.76
4.4.50.0060.0214.77
4.4.40.0060.0334.71
4.4.30.0040.0214.76
4.4.20.0050.0214.84
4.4.10.0030.0244.85
4.4.00.0040.0354.76
4.3.110.0030.0254.66
4.3.100.0030.0214.66
4.3.90.0020.0214.63
4.3.80.0070.0264.58
4.3.70.0050.0194.63
4.3.60.0050.0164.63
4.3.50.0030.0224.63
4.3.40.0030.0324.54
4.3.30.0020.0213.29
4.3.20.0020.0213.25
4.3.10.0050.0183.22
4.3.00.0070.02010.55

preferences:
53.82 ms | 401 KiB | 5 Q