3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { use \B\Bar; class Foo { public $bar; public function __construct() { $this->bar = new Bar(); } } } namespace A\B { class Bar { public function baz() { return __METHOD__; } } } namespace B { class Bar { public function baz() { return __METHOD__; } } } namespace { $foo = new A\Foo(); echo $foo->bar->baz(); }

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.0090.01218.43
8.3.50.0150.00521.92
8.3.40.0120.00318.68
8.3.30.0140.00020.29
8.3.20.0050.00320.29
8.3.10.0080.00021.91
8.3.00.0050.00322.43
8.2.180.0150.00616.75
8.2.170.0000.01422.96
8.2.160.0030.01020.35
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00826.16
8.2.120.0040.00419.64
8.2.110.0090.00020.93
8.2.100.0060.00617.78
8.2.90.0050.00319.64
8.2.80.0000.00818.03
8.2.70.0040.00417.93
8.2.60.0050.00518.09
8.2.50.0000.00918.10
8.2.40.0040.00421.07
8.2.30.0040.00417.95
8.2.20.0000.00717.73
8.2.10.0040.00417.59
8.2.00.0000.01117.63
8.1.280.0070.00725.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00022.06
8.1.230.0070.00422.61
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0040.00417.23
8.1.180.0140.00018.10
8.1.170.0030.00518.53
8.1.160.0040.00422.25
8.1.150.0070.00018.64
8.1.140.0000.00717.34
8.1.130.0080.00017.70
8.1.120.0000.00717.41
8.1.110.0080.00017.43
8.1.100.0020.00517.26
8.1.90.0050.00317.48
8.1.80.0000.00717.30
8.1.70.0000.00817.29
8.1.60.0030.00717.60
8.1.50.0030.00517.45
8.1.40.0070.00017.41
8.1.30.0040.00417.57
8.1.20.0030.00517.67
8.1.10.0080.00017.53
8.1.00.0020.00517.49
8.0.300.0040.00421.59
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0040.00417.18
8.0.260.0070.00018.36
8.0.250.0050.00216.96
8.0.240.0000.00816.83
8.0.230.0030.00316.78
8.0.220.0030.00516.86
8.0.210.0000.00616.82
8.0.200.0000.00616.91
8.0.190.0030.00316.81
8.0.180.0080.00016.78
8.0.170.0040.00416.79
8.0.160.0000.00716.77
8.0.150.0030.00516.80
8.0.140.0040.00416.77
8.0.130.0000.00513.27
8.0.120.0000.00816.71
8.0.110.0040.00416.89
8.0.100.0040.00416.78
8.0.90.0050.00316.87
8.0.80.0030.01316.85
8.0.70.0070.00016.80
8.0.60.0070.00016.90
8.0.50.0050.00216.88
8.0.30.0140.00517.03
8.0.20.0080.01217.40
8.0.10.0040.00417.01
8.0.00.0070.00916.67
7.4.330.0000.00515.00
7.4.320.0000.00616.59
7.4.300.0030.00316.57
7.4.290.0000.00616.64
7.4.280.0000.00716.54
7.4.270.0000.00716.54
7.4.260.0030.00616.61
7.4.250.0070.00016.49
7.4.240.0050.00316.59
7.4.230.0040.00416.67
7.4.220.0100.00916.65
7.4.210.0080.00816.64
7.4.200.0040.00416.50
7.4.190.0000.00716.41
7.4.160.0030.01216.43
7.4.150.0100.00717.40
7.4.140.0070.01417.86
7.4.130.0120.00516.57
7.4.120.0090.00916.55
7.4.110.0040.01616.34
7.4.100.0070.01016.47
7.4.90.0090.00416.31
7.4.80.0060.01219.39
7.4.70.0150.00616.54
7.4.60.0110.00516.32
7.4.50.0030.00616.24
7.4.40.0000.01522.77
7.4.30.0140.00316.60
7.4.00.0030.01015.20
7.3.330.0020.00213.17
7.3.320.0030.00313.23
7.3.310.0000.00616.29
7.3.300.0000.00716.37
7.3.290.0100.00316.31
7.3.280.0100.00816.28
7.3.270.0070.01017.40
7.3.260.0110.00616.40
7.3.250.0070.01116.25
7.3.240.0120.00616.61
7.3.230.0070.01016.39
7.3.210.0080.00816.30
7.3.200.0140.00719.39
7.3.190.0100.01116.32
7.3.180.0160.00016.58
7.3.170.0180.00016.39
7.3.160.0060.00916.34
7.3.120.0000.01614.96
7.3.10.0060.00616.80
7.3.00.0030.00616.49
7.2.330.0100.01316.59
7.2.320.0090.00916.78
7.2.310.0170.00316.74
7.2.300.0090.01616.69
7.2.290.0080.00916.78
7.2.130.0030.01017.08
7.2.120.0070.00317.05
7.2.110.0090.00316.88
7.2.100.0040.00817.11
7.2.90.0060.01216.87
7.2.80.0060.00617.04
7.2.70.0000.01417.00
7.2.60.0000.01116.71
7.2.50.0140.00317.16
7.2.40.0110.00317.12
7.2.30.0000.01316.77
7.2.20.0000.01316.92
7.2.10.0090.00317.01
7.2.00.0030.00918.25
7.1.250.0070.00315.77
7.1.100.0100.00717.89
7.1.70.0000.00817.03
7.1.60.0080.01519.43
7.1.50.0120.00916.71
7.1.00.0030.07022.28
7.0.200.0000.01016.16
7.0.140.0000.07322.07
7.0.60.0070.08319.92
7.0.50.0030.07017.87
7.0.40.0130.07320.30
7.0.30.0200.04020.24
7.0.20.0300.06720.22
7.0.10.0200.04020.08
7.0.00.0130.08020.14
5.6.280.0030.07321.03
5.6.210.0070.03720.51
5.6.200.0070.05318.12
5.6.190.0100.08320.76
5.6.180.0170.03720.42
5.6.170.0330.07020.53
5.6.160.0070.08320.52
5.6.150.0000.04718.18
5.6.140.0100.05318.28
5.6.130.0070.03718.16
5.6.120.0030.07320.90
5.6.110.0030.04321.12
5.6.100.0000.07720.98
5.6.90.0000.09321.11
5.6.80.0070.08020.53
5.6.70.0230.04020.38
5.5.350.0000.07720.41
5.5.340.0070.07018.09
5.5.330.0000.05720.41
5.5.320.0200.07320.32
5.5.310.0170.04720.38
5.5.300.0070.04017.95
5.5.290.0100.08018.07
5.5.280.0030.07020.78
5.5.270.0030.04320.95
5.5.260.0030.07320.96
5.5.250.0070.08320.70
5.5.240.0000.08320.36
5.4.450.0600.06019.45
5.4.440.0970.05019.58
5.4.430.0670.06019.63
5.4.420.0870.04019.61
5.4.410.1030.05019.46
5.4.400.0930.06018.84
5.4.390.1530.07318.48
5.4.380.0330.04018.77
5.4.370.0230.04318.61
5.4.360.0100.06018.75
5.4.350.0080.03912.02
5.4.340.0070.04112.02
5.4.320.0090.04012.51
5.4.310.0100.05112.51
5.4.300.0070.03912.51
5.4.290.0090.03612.50
5.4.280.0050.03612.40
5.4.270.0090.04912.40
5.4.260.0080.03612.40
5.4.250.0080.04412.40
5.4.240.0070.05018.94
5.4.230.0100.04718.96
5.4.220.0100.05019.09
5.4.210.0130.04719.09
5.4.200.0030.05719.02
5.4.190.0130.06018.65
5.4.180.0070.05318.79
5.4.170.0000.05718.83
5.4.160.0100.06018.79
5.4.150.0100.05318.63
5.4.140.0130.04716.61
5.4.130.0100.04316.42
5.4.120.0100.04716.62
5.4.110.0030.05316.61
5.4.100.0070.04716.54
5.4.90.0070.04316.54
5.4.80.0030.05016.45
5.4.70.0200.03316.60
5.4.60.0100.04316.39
5.4.50.0030.05016.39
5.4.40.0070.04716.57
5.4.30.0030.05316.50
5.4.20.0030.05016.44
5.4.10.0000.05316.44
5.4.00.0100.04315.82
5.3.290.0090.04212.80
5.3.280.0170.04014.69
5.3.270.0030.07014.58
5.3.260.0070.05314.59
5.3.250.0130.04314.45
5.3.240.0070.07014.51
5.3.230.0130.05014.50
5.3.220.0030.05014.64
5.3.210.0070.06314.54
5.3.200.0170.04014.79
5.3.190.0070.05014.47
5.3.180.0070.05014.47
5.3.170.0000.05714.75
5.3.160.0070.05014.47
5.3.150.0100.04714.70
5.3.140.0100.04314.58
5.3.130.0100.06714.63
5.3.120.0000.06014.63
5.3.110.0030.05714.46
5.3.100.0070.05014.25
5.3.90.0030.05014.20
5.3.80.0130.04314.09
5.3.70.0070.04714.11
5.3.60.0070.05013.83
5.3.50.0030.05014.03
5.3.40.0070.04714.04
5.3.30.0070.04314.00
5.3.20.0070.04713.77
5.3.10.0070.05013.48
5.3.00.0030.05013.63
5.2.170.0030.04311.25
5.2.160.0000.04311.04
5.2.150.0000.04311.15
5.2.140.0030.04011.06
5.2.130.0030.04011.03
5.2.120.0030.04010.99
5.2.110.0030.04011.11
5.2.100.0030.04311.11
5.2.90.0070.03711.11
5.2.80.0130.04011.24
5.2.70.0070.05011.01
5.2.60.0030.04011.20
5.2.50.0070.03710.92
5.2.40.0070.03710.91
5.2.30.0070.03710.87
5.2.20.0100.03310.84
5.2.10.0030.04010.93
5.2.00.0070.03310.79
5.1.60.0070.03010.03
5.1.50.0030.0339.95
5.1.40.0070.0309.86
5.1.30.0070.03310.21
5.1.20.0100.03010.43
5.1.10.0030.03310.02
5.1.00.0030.03310.30
5.0.50.0000.0308.61
5.0.40.0030.0278.64
5.0.30.0030.0407.99
5.0.20.0030.0278.14
5.0.10.0070.0378.08
5.0.00.0000.0438.30
4.4.90.0030.0205.77
4.4.80.0000.0235.76
4.4.70.0070.0175.75
4.4.60.0030.0205.82
4.4.50.0030.0205.77
4.4.40.0070.0275.77
4.4.30.0000.0235.77
4.4.20.0100.0135.88
4.4.10.0000.0235.84
4.4.00.0030.0335.78
4.3.110.0030.0205.71
4.3.100.0000.0205.71
4.3.90.0000.0275.71
4.3.80.0000.0335.68
4.3.70.0030.0175.75
4.3.60.0000.0205.65
4.3.50.0000.0235.68
4.3.40.0030.0335.64
4.3.30.0030.0204.44
4.3.20.0000.0234.45
4.3.10.0000.0204.43
4.3.00.0100.0306.71

preferences:
52.66 ms | 401 KiB | 5 Q