3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My\Full\Classname; class Another{} namespace Waa; use My\Full\Classname as Another; class Another{} $obj = new Another; // instantiates object of class My\Full\Classname $a = 'Another'; $obj = new $a; // instantiates object of class Another ?>

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.0070.01116.60
8.3.50.0100.00717.39
8.3.40.0070.00718.79
8.3.30.0160.00318.64
8.3.20.0140.00418.44
8.3.10.0030.00520.48
8.3.00.0050.00519.38
8.2.180.0080.00816.49
8.2.170.0130.00322.96
8.2.160.0000.01420.89
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0080.00020.46
8.2.110.0070.00321.05
8.2.100.0060.00617.54
8.2.90.0070.00019.21
8.2.80.0000.00919.28
8.2.70.0030.00517.38
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0040.00417.80
8.2.20.0000.00917.44
8.2.10.0050.00317.54
8.2.00.0030.00617.57
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00022.42
8.1.230.0030.00920.90
8.1.220.0030.00517.74
8.1.210.0000.00818.93
8.1.200.0030.00717.22
8.1.190.0000.00817.28
8.1.180.0000.00918.10
8.1.170.0000.00718.84
8.1.160.0040.00418.66
8.1.150.0020.00518.55
8.1.140.0000.00717.22
8.1.130.0040.00417.67
8.1.120.0000.00717.28
8.1.110.0070.00017.34
8.1.100.0020.00517.36
8.1.90.0020.00517.30
8.1.80.0000.00717.34
8.1.70.0000.00717.27
8.1.60.0060.00317.31
8.1.50.0040.00417.23
8.1.40.0040.00417.27
8.1.30.0000.00717.50
8.1.20.0000.00717.41
8.1.10.0050.00317.29
8.1.00.0080.00017.32
8.0.300.0040.00419.83
8.0.290.0030.00616.75
8.0.280.0030.00318.24
8.0.270.0030.00517.13
8.0.260.0050.00316.62
8.0.250.0030.00716.91
8.0.240.0030.00316.86
8.0.230.0000.00716.86
8.0.220.0000.00716.73
8.0.210.0030.00316.82
8.0.200.0050.00216.88
8.0.190.0040.00416.83
8.0.180.0040.00416.82
8.0.170.0100.00016.80
8.0.160.0030.00316.73
8.0.150.0000.00916.81
8.0.140.0080.00016.69
8.0.130.0020.00513.29
8.0.120.0000.00816.78
8.0.110.0030.00316.68
8.0.100.0000.00816.90
8.0.90.0050.00216.90
8.0.80.0000.01816.77
8.0.70.0000.00716.80
8.0.60.0000.00816.64
8.0.50.0000.01016.70
8.0.30.0090.01017.06
8.0.20.0140.00717.20
8.0.10.0040.00416.81
8.0.00.0090.00816.77
7.4.330.0050.00012.82
7.4.320.0000.00716.49
7.4.300.0000.00616.36
7.4.290.0070.00016.35
7.4.280.0040.00416.35
7.4.270.0070.00016.31
7.4.260.0000.00513.05
7.4.250.0000.00816.36
7.4.240.0040.00416.25
7.4.230.0040.00416.25
7.4.220.0100.01016.48
7.4.210.0080.00716.42
7.4.200.0080.00016.16
7.4.190.0030.00316.62
7.4.160.0150.00016.35
7.4.150.0070.01016.38
7.4.140.0060.01516.41
7.4.130.0120.00816.42
7.4.120.0130.00716.24
7.4.110.0070.01316.39
7.4.100.0140.00316.11
7.4.90.0100.00716.45
7.4.80.0030.01619.39
7.4.70.0120.00316.30
7.4.60.0070.01016.35
7.4.50.0040.00816.30
7.4.40.0090.00316.50
7.4.30.0100.00616.47
7.4.00.0080.00814.83
7.3.330.0060.00013.20
7.3.320.0000.00713.23
7.3.310.0030.00316.22
7.3.300.0040.00416.14
7.3.290.0070.01116.24
7.3.280.0070.00816.22
7.3.270.0220.01616.21
7.3.260.0150.00316.36
7.3.250.0070.01316.31
7.3.240.0130.00316.25
7.3.230.0070.01016.49
7.3.210.0030.01316.25
7.3.200.0130.00316.21
7.3.190.0100.00716.17
7.3.180.0150.00016.04
7.3.170.0090.01216.52
7.3.160.0060.00916.32
7.3.120.0070.01014.46
7.2.330.0060.01216.34
7.2.320.0070.01016.39
7.2.310.0140.01216.45
7.2.300.0120.00416.57
7.2.290.0090.00616.20
7.2.60.0080.00416.71
7.2.00.0030.00919.20
7.1.200.0060.00615.63
7.1.100.0030.00617.57
7.1.70.0030.00516.84
7.1.60.0060.01819.40
7.1.50.0110.01116.75
7.1.00.0030.06322.32
7.0.200.0080.00016.75
7.0.140.0030.07322.07
7.0.120.0030.07322.09
7.0.60.0030.09019.92
7.0.50.0030.04717.87
7.0.40.0000.04720.21
7.0.30.0370.07320.32
7.0.20.0270.05020.33
7.0.10.0070.08720.20
7.0.00.0100.07020.16
5.6.280.0100.06721.07
5.6.210.0130.07320.72
5.6.200.0030.06018.30
5.6.190.0070.06320.46
5.6.180.0530.05720.47
5.6.170.0200.04020.48
5.6.160.0030.09020.54
5.6.150.0100.06718.29
5.6.140.0070.05018.28
5.6.130.0000.05318.20
5.6.120.0030.06020.92
5.6.110.0000.08021.13
5.6.100.0100.06321.11
5.6.90.0100.06021.00
5.6.80.0130.06720.41
5.5.350.0100.07720.38
5.5.340.0030.04017.96
5.5.330.0100.04020.41
5.5.320.3170.04020.38
5.5.310.0070.05020.37
5.5.300.0100.06318.02
5.5.290.0100.04318.04
5.5.280.0030.04020.68
5.5.270.0070.08320.86
5.5.260.0030.04320.88
5.5.250.0070.07320.43
5.5.240.0300.04720.25
5.4.450.0030.08019.20
5.4.440.0100.05019.25
5.4.430.0030.07719.30
5.4.420.0170.04019.19
5.4.410.0070.07719.44
5.4.400.0030.06318.86
5.4.390.0070.03719.16
5.4.380.0100.08019.19
5.4.370.0070.08019.16
5.4.360.0070.07319.15
5.4.350.0030.04318.92
5.4.340.0070.05718.92
5.4.320.0000.08319.25
5.4.310.0030.04018.86
5.4.300.0030.04319.08
5.4.290.0100.07319.20
5.4.280.0030.06718.85
5.4.270.0070.06319.12
5.4.260.0130.06019.14
5.4.250.0070.04319.20
5.4.240.0070.07319.15
5.4.230.0100.06319.09
5.4.220.0070.07718.85
5.4.210.0070.04319.24
5.4.200.0070.04319.07
5.4.190.0030.07018.84
5.4.180.0100.08019.23
5.4.170.0130.07319.23
5.4.160.0000.07719.05
5.4.150.0200.06719.14
5.4.140.0070.04016.33
5.4.130.0130.06716.39
5.4.120.0100.07716.32
5.4.110.0000.08016.67
5.4.100.0070.03316.72
5.4.90.0030.07716.41
5.4.80.0100.07316.43
5.4.70.0070.03716.41
5.4.60.0100.03016.39
5.4.50.0100.07316.40
5.4.40.0070.06316.38
5.4.30.0070.06016.42
5.4.20.0130.05316.38
5.4.10.0130.07016.40
5.4.00.0100.07015.80
5.3.290.0130.04014.65
5.3.280.0030.08014.62
5.3.270.0030.07714.67
5.3.260.0070.04314.52
5.3.250.0070.07314.64
5.3.240.0130.03314.64
5.3.230.0030.08014.59
5.3.220.0130.06714.56
5.3.210.0100.08014.59
5.3.200.0030.04714.55
5.3.190.0030.05014.60
5.3.180.0070.05014.57
5.3.170.0070.04314.63
5.3.160.0030.04014.55
5.3.150.0030.04314.59
5.3.140.0000.05714.58
5.3.130.0070.07714.43
5.3.120.0000.07014.70
5.3.110.0000.05014.46
5.3.100.0070.05014.10
5.3.90.0130.06713.93
5.3.80.0100.07313.97
5.3.70.0170.03714.03
5.3.60.0070.03713.96
5.3.50.0070.07313.93
5.3.40.0000.08313.93
5.3.30.0030.03713.95
5.3.20.0070.04713.68
5.3.10.0070.07013.72
5.3.00.0030.03713.68
5.2.170.0100.06011.13
5.2.160.0100.04311.23
5.2.150.0070.06011.07
5.2.140.0200.02011.11
5.2.130.0030.03010.92
5.2.120.0030.03011.00
5.2.110.0000.04011.08
5.2.100.0000.06711.09
5.2.90.0030.03310.93
5.2.80.0070.05711.04
5.2.70.0030.04311.07
5.2.60.0030.07011.12
5.2.50.0030.06010.86
5.2.40.0070.02310.81
5.2.30.0030.05010.98
5.2.20.0030.03310.86
5.2.10.0030.02710.86
5.2.00.0030.04710.74
5.1.60.0000.0279.89
5.1.50.0070.02710.03
5.1.40.0000.0609.88
5.1.30.0000.02710.21
5.1.20.0030.04310.36
5.1.10.0030.0309.90
5.1.00.0030.0579.96
5.0.50.0000.0338.54
5.0.40.0030.0178.39
5.0.30.0030.0278.17
5.0.20.0000.0208.25
5.0.10.0030.0208.22
5.0.00.0000.0638.14
4.4.90.0000.0177.85
4.4.80.0000.0207.85
4.4.70.0030.0137.85
4.4.60.0000.0207.85
4.4.50.0000.0377.85
4.4.40.0030.0377.85
4.4.30.0030.0377.85
4.4.20.0000.0207.85
4.4.10.0000.0207.85
4.4.00.0000.0307.85
4.3.110.0000.0207.85
4.3.100.0000.0177.85
4.3.90.0000.0237.85
4.3.80.0030.0377.85
4.3.70.0030.0337.85
4.3.60.0030.0337.85
4.3.50.0000.0277.85
4.3.40.0030.0377.85
4.3.30.0030.0377.85
4.3.20.0070.0237.85
4.3.10.0000.0307.85
4.3.00.0030.0277.85

preferences:
39.21 ms | 401 KiB | 5 Q