3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace{ class B { } } namespace NS { class B {} class A { function test(\B $b){} } } namespace{ $x = new \NS\A; $x->test(new \NS\B); }

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.80.0030.00616.63
8.3.70.0070.00716.75
8.3.60.0070.01118.55
8.3.50.0100.00821.20
8.3.40.0090.00618.91
8.3.30.0000.01418.88
8.3.20.0050.00220.32
8.3.10.0040.00421.77
8.3.00.0040.00423.65
8.2.200.0050.00516.36
8.2.190.0150.00016.63
8.2.180.0070.00716.50
8.2.170.0140.00022.96
8.2.160.0030.01022.31
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0030.00617.63
8.2.110.0100.00019.30
8.2.100.0030.00817.72
8.2.90.0040.00419.07
8.2.80.0030.00517.97
8.2.70.0030.00517.63
8.2.60.0000.00917.78
8.2.50.0040.00418.07
8.2.40.0080.00021.18
8.2.30.0000.00819.72
8.2.20.0080.00017.68
8.2.10.0040.00417.93
8.2.00.0000.00717.88
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0110.00420.40
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00322.03
8.1.230.0040.00820.97
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0000.00722.01
8.1.150.0030.00518.73
8.1.140.0000.00817.41
8.1.130.0000.00717.69
8.1.120.0000.00717.39
8.1.110.0070.00017.41
8.1.100.0030.00517.35
8.1.90.0050.00217.45
8.1.80.0040.00417.35
8.1.70.0040.00417.32
8.1.60.0040.00417.58
8.1.50.0000.00817.41
8.1.40.0000.00717.52
8.1.30.0000.00817.44
8.1.20.0040.00417.63
8.1.10.0040.00417.52
8.1.00.0000.00817.49
8.0.300.0030.00318.77
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0030.00317.09
8.0.260.0030.00317.25
8.0.250.0000.00716.94
8.0.240.0030.00616.94
8.0.230.0070.00016.85
8.0.220.0040.00416.80
8.0.210.0000.00716.89
8.0.200.0030.00316.93
8.0.190.0000.00816.84
8.0.180.0040.00416.91
8.0.170.0060.00316.87
8.0.160.0030.00516.89
8.0.150.0050.00216.82
8.0.140.0000.00716.84
8.0.130.0000.00513.35
8.0.120.0050.00216.84
8.0.110.0050.00316.89
8.0.100.0030.00516.77
8.0.90.0070.00016.77
8.0.80.0150.00016.89
8.0.70.0040.00416.80
8.0.60.0030.00616.93
8.0.50.0040.00416.66
8.0.30.0050.01517.06
8.0.20.0130.00817.40
8.0.10.0050.00217.12
8.0.00.0110.00616.68
7.4.330.0000.00615.14
7.4.320.0000.00616.36
7.4.300.0000.00616.42
7.4.290.0000.00716.64
7.4.280.0070.00016.49
7.4.270.0060.00016.50
7.4.260.0040.00416.48
7.4.250.0000.00916.56
7.4.240.0040.00316.47
7.4.230.0040.00416.57
7.4.220.0060.01216.58
7.4.210.0060.00916.51
7.4.200.0030.00316.41
7.4.160.0090.00616.45
7.4.150.0160.00617.40
7.4.140.0200.01417.86
7.4.130.0090.01216.48
7.4.120.0080.01016.58
7.4.110.0140.00316.51
7.4.100.0140.00416.44
7.4.90.0070.01116.61
7.4.80.0030.01519.39
7.4.70.0100.00616.52
7.4.60.0120.00416.57
7.4.50.0090.00016.36
7.4.40.0100.01316.31
7.4.30.0030.01516.48
7.4.00.0120.00315.15
7.3.330.0000.00513.32
7.3.320.0000.00513.18
7.3.310.0000.00716.23
7.3.300.0000.00716.35
7.3.290.0040.00416.24
7.3.280.0120.00516.35
7.3.270.0120.00617.40
7.3.260.0100.01316.49
7.3.250.0070.01116.39
7.3.240.0090.01016.58
7.3.230.0090.00916.60
7.3.210.0060.00916.45
7.3.200.0070.01016.23
7.3.190.0040.01216.30
7.3.180.0120.00316.15
7.3.170.0060.01116.49
7.3.160.0070.01016.52
7.2.330.0090.00916.73
7.2.320.0100.00716.41
7.2.310.0030.01316.37
7.2.300.0130.00916.73
7.2.290.0070.01116.44
7.2.60.0060.00916.73
7.2.00.0060.00619.35
7.1.200.0150.01115.44
7.1.100.0000.01117.86
7.1.70.0000.00717.11
7.1.60.0060.01619.42
7.1.50.0140.01034.43
7.1.00.0030.07722.29
7.0.200.0070.00716.35
7.0.60.0030.06719.99
7.0.50.0030.04017.84
7.0.40.0170.04020.23
7.0.30.0330.07020.10
7.0.20.0200.04720.16
7.0.10.0070.04720.09
7.0.00.0170.08020.10
5.6.280.0030.03721.14
5.6.210.0170.07320.67
5.6.200.0130.05718.19
5.6.190.0100.08320.58
5.6.180.0470.04320.41
5.6.170.0330.08320.44
5.6.160.0070.08720.71
5.6.150.0070.08318.22
5.6.140.0170.06018.24
5.6.130.0100.03718.27
5.6.120.0130.08321.14
5.6.110.0070.07321.05
5.6.100.0000.04720.97
5.6.90.0070.08021.03
5.6.80.0270.04720.48
5.5.350.0270.08020.35
5.5.340.0070.06718.09
5.5.330.0000.08020.31
5.5.320.0430.07020.34
5.5.310.0300.06720.32
5.5.300.0200.07018.02
5.5.290.0000.04317.95
5.5.280.0100.08320.66
5.5.270.0070.08720.89
5.5.260.0030.06020.84
5.5.250.0070.08020.71
5.5.240.0070.05720.26
5.4.450.0670.06319.17
5.4.440.0930.07319.60
5.4.430.0600.06719.59
5.4.420.0130.06319.30
5.4.410.0730.08719.25
5.4.400.1130.08319.37
5.4.390.0830.07019.31
5.4.380.0670.07019.12
5.4.370.0230.06319.27
5.4.360.0970.06318.98
5.4.350.0930.07719.14
5.4.340.0570.08319.01
5.4.320.0100.06018.87
5.4.310.0270.04719.14
5.4.300.1100.06719.00
5.4.290.0930.06719.27
5.4.280.0900.06319.25
5.4.270.1200.06319.14
5.4.260.0770.07019.01
5.4.250.0870.08319.11
5.4.240.0870.07019.26
5.4.230.1070.05719.26
5.4.220.0870.07719.36
5.4.210.1400.06719.01
5.4.200.1000.06317.11
5.4.190.1130.05319.00
5.4.180.0800.07319.17
5.4.170.0630.07319.08
5.4.160.0130.07019.08
5.4.150.0170.07019.16
5.4.140.0830.07016.54
5.4.130.0930.07316.56
5.4.120.0770.05316.40
5.4.110.0870.05316.61
5.4.100.0730.06016.59
5.4.90.0130.06316.36
5.4.80.0400.05016.35
5.4.70.0970.05716.53
5.4.60.0830.07316.35
5.4.50.0170.06716.38
5.4.40.0200.06016.36
5.4.30.0600.05716.31
5.4.20.0400.06316.27
5.4.10.0170.05316.28
5.4.00.0770.05715.78
5.3.290.0700.05014.70
5.3.280.0770.07014.52
5.3.270.0400.07314.68
5.3.260.0400.06714.72
5.3.250.1070.06314.75
5.3.240.0700.06014.58
5.3.230.1030.04714.89
5.3.220.1200.04314.65
5.3.210.0900.04714.68
5.3.200.0770.05014.64
5.3.190.0900.05014.64
5.3.180.0830.05714.69
5.3.170.1070.06314.77
5.3.160.0600.06014.68
5.3.150.0870.05314.68
5.3.140.0170.05314.85
5.3.130.0170.04714.51
5.3.120.0900.07014.62
5.3.110.1170.07314.68
5.3.100.0630.05314.00
5.3.90.1030.06014.15
5.3.80.1000.05013.98
5.3.70.0870.06713.98
5.3.60.1170.05013.98
5.3.50.0870.06313.93
5.3.40.0800.07013.92
5.3.30.1070.06014.20
5.3.20.1300.05313.81
5.3.10.0830.06013.63
5.3.00.0800.05313.75
5.2.170.0900.05311.04
5.2.160.0770.05011.09
5.2.150.0870.06010.99
5.2.140.1000.05011.08
5.2.130.0870.04310.96
5.2.120.0730.04310.89
5.2.110.0970.03710.93
5.2.100.0730.04011.20
5.2.90.0770.05310.94
5.2.80.0700.05311.25
5.2.70.0970.03710.98
5.2.60.0670.05710.90
5.2.50.0770.05711.00
5.2.40.0600.05710.99
5.2.30.0670.06010.91
5.2.20.0670.04310.84
5.2.10.0570.04310.86
5.2.00.0630.04310.63
5.1.60.0570.03710.01
5.1.50.0570.0339.87
5.1.40.0530.0479.99
5.1.30.0670.05010.25
5.1.20.0600.03710.26
5.1.10.0600.04710.09
5.1.00.0470.0379.91
5.0.50.0370.0378.45
5.0.40.0270.0278.28
5.0.30.0270.0508.14
5.0.20.0270.0308.27
5.0.10.0330.0338.04
5.0.00.0070.0477.99
4.4.90.0070.0275.76
4.4.80.0100.0205.76
4.4.70.0070.0275.81
4.4.60.0200.0305.78
4.4.50.0230.0275.79
4.4.40.0270.0375.84
4.4.30.0170.0275.83
4.4.20.0330.0235.92
4.4.10.0300.0305.88
4.4.00.0370.0405.80
4.3.110.0300.0235.77
4.3.100.0030.0305.71
4.3.90.0070.0205.78
4.3.80.0070.0335.83
4.3.70.0170.0235.70
4.3.60.0300.0335.74
4.3.50.0200.0235.82
4.3.40.0300.0475.64
4.3.30.0170.0304.50
4.3.20.0100.0374.41
4.3.10.0100.0304.43
4.3.00.0070.0278.53

preferences:
54.78 ms | 401 KiB | 5 Q