3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { use Bar as Baz; } namespace Foo { class Bar { public $y = 2; } } namespace Foo { class Baz { public $x = 1; } } namespace { $x = new Bar(); $y = new Baz(); echo $x->y; echo $y->x; }

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.01216.38
8.3.50.0090.00616.52
8.3.40.0110.01118.98
8.3.30.0060.00918.66
8.3.20.0070.00020.39
8.3.10.0040.00421.88
8.3.00.0090.00020.95
8.2.180.0140.00018.29
8.2.170.0090.00622.96
8.2.160.0070.00721.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00020.41
8.2.120.0070.00026.35
8.2.110.0040.00420.35
8.2.100.0040.00717.72
8.2.90.0000.00819.18
8.2.80.0000.00818.04
8.2.70.0030.00517.47
8.2.60.0040.00418.04
8.2.50.0030.00618.10
8.2.40.0000.00822.22
8.2.30.0060.00320.97
8.2.20.0000.00717.86
8.2.10.0040.00417.89
8.2.00.0040.00417.87
8.1.280.0070.01025.92
8.1.270.0060.00323.71
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0050.00522.68
8.1.230.0070.00319.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.23
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0000.00719.03
8.1.150.0000.00820.52
8.1.140.0000.00817.25
8.1.130.0030.00318.69
8.1.120.0000.00717.32
8.1.110.0030.00517.38
8.1.100.0000.00817.36
8.1.90.0000.00817.33
8.1.80.0000.00917.29
8.1.70.0000.00817.26
8.1.60.0080.00017.34
8.1.50.0040.00417.47
8.1.40.0000.00917.45
8.1.30.0000.00717.58
8.1.20.0040.00417.61
8.1.10.0040.00417.47
8.1.00.0000.00817.48
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0040.00418.31
8.0.270.0050.00217.20
8.0.260.0030.00316.75
8.0.250.0040.00316.98
8.0.240.0000.00816.85
8.0.230.0040.00416.94
8.0.220.0000.00716.93
8.0.210.0030.00416.87
8.0.200.0000.00616.90
8.0.190.0050.00216.94
8.0.180.0040.00416.77
8.0.170.0030.00516.91
8.0.160.0000.00816.96
8.0.150.0040.00416.86
8.0.140.0000.00716.73
8.0.130.0030.00513.30
8.0.120.0040.00416.83
8.0.110.0070.00016.82
8.0.100.0040.00416.66
8.0.90.0080.00016.86
8.0.80.0120.00316.76
8.0.70.0040.00416.81
8.0.60.0040.00416.75
8.0.50.0000.00716.83
8.0.30.0120.00717.08
8.0.20.0130.00917.40
8.0.10.0000.00716.82
8.0.00.0130.00316.60
7.4.330.0030.00315.55
7.4.320.0060.00016.44
7.4.300.0030.00316.52
7.4.290.0000.00816.38
7.4.280.0040.00416.53
7.4.270.0000.00716.41
7.4.260.0070.00316.34
7.4.250.0000.00916.30
7.4.240.0000.00716.43
7.4.230.0000.00716.44
7.4.220.0130.00716.46
7.4.210.0060.00916.55
7.4.200.0000.00716.54
7.4.160.0080.00916.36
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0120.00616.43
7.4.120.0100.01016.50
7.4.110.0060.01216.42
7.4.100.0220.00016.58
7.4.90.0070.01016.32
7.4.80.0060.01019.39
7.4.70.0090.00916.46
7.4.60.0090.01216.55
7.4.50.0070.00516.49
7.4.40.0090.00916.45
7.4.30.0100.01316.50
7.4.10.0120.00314.79
7.4.00.0090.00714.85
7.3.330.0040.00413.22
7.3.320.0030.00313.27
7.3.310.0000.00716.19
7.3.300.0000.00716.27
7.3.290.0070.00716.29
7.3.280.0080.00916.26
7.3.270.0030.01417.40
7.3.260.0090.00816.29
7.3.250.0140.00816.40
7.3.240.0090.00816.34
7.3.230.0090.00616.30
7.3.210.0040.01416.61
7.3.200.0090.00916.57
7.3.190.0100.00716.52
7.3.180.0060.01216.49
7.3.170.0070.01016.35
7.3.160.0110.00416.50
7.3.130.0130.00614.63
7.3.120.0060.01014.98
7.3.110.0060.01014.66
7.3.100.0060.00614.50
7.3.90.0030.01014.79
7.3.80.0060.00914.80
7.3.70.0050.00314.68
7.3.60.0040.01114.76
7.3.50.0000.01414.66
7.3.40.0040.01114.66
7.3.30.0060.00314.79
7.3.20.0040.01116.64
7.3.10.0070.00616.39
7.3.00.0050.00816.44
7.2.330.0070.01116.49
7.2.320.0070.01016.59
7.2.310.0060.01216.57
7.2.300.0070.01416.66
7.2.290.0060.01016.21
7.2.260.0060.00614.76
7.2.250.0030.01615.20
7.2.240.0040.00714.88
7.2.230.0070.01014.96
7.2.220.0080.00614.83
7.2.210.0040.01114.81
7.2.200.0030.00715.05
7.2.190.0090.00014.71
7.2.180.0070.00714.86
7.2.170.0060.00914.66
7.2.160.0070.00314.78
7.2.150.0030.00716.86
7.2.140.0030.00616.59
7.2.130.0010.01116.61
7.2.120.0040.01016.65
7.2.110.0060.01016.63
7.2.100.0050.00716.50
7.2.90.0070.00916.10
7.2.80.0370.00716.01
7.2.70.0590.00816.16
7.2.60.0100.00616.20
7.2.50.0630.00816.27
7.2.40.0130.00816.18
7.2.30.0070.00816.33
7.2.20.0170.00516.08
7.2.10.0100.00716.19
7.2.00.0090.00516.21
7.1.330.0060.00915.55
7.1.320.0100.00315.64
7.1.310.0070.00715.48
7.1.300.0040.00715.31
7.1.290.0060.00615.45
7.1.280.0030.00915.47
7.1.270.0080.00415.69
7.1.260.0040.00415.60
7.1.250.0080.00515.61
7.1.240.0040.00815.68
7.1.230.0030.00615.52
7.1.220.0080.00615.45
7.1.210.0930.00214.58
7.1.200.1170.01014.59
7.1.190.0050.00914.63
7.1.180.0060.00814.87
7.1.170.0110.00614.70
7.1.160.0090.00514.60
7.1.150.0120.00214.70
7.1.140.0090.00414.52
7.1.130.0080.00614.67
7.1.120.0060.00914.68
7.1.110.0100.00314.72
7.1.100.0100.00414.70
7.1.90.0890.01014.74
7.1.80.0060.00814.76
7.1.70.0070.00914.63
7.1.60.0120.01123.83
7.1.50.0420.00423.56
7.1.40.0170.01023.72
7.1.30.0220.00523.71
7.1.20.0370.00723.72
7.1.10.0040.00714.75
7.1.00.0830.00814.61
7.0.330.0030.00515.29
7.0.320.0030.01115.11
7.0.310.0100.00714.40
7.0.300.0800.00414.29
7.0.290.0060.00714.30
7.0.280.0290.01214.38
7.0.270.0280.00514.41
7.0.260.0080.00614.43
7.0.250.0080.00514.42
7.0.240.0770.00014.46
7.0.230.1320.00514.38
7.0.220.0740.00714.43
7.0.210.0100.00514.32
7.0.200.1140.00614.08
7.0.190.0120.00314.26
7.0.180.0110.00514.15
7.0.170.0080.00714.45
7.0.160.0100.00514.45
7.0.150.1020.00614.31
7.0.140.1470.00914.40
7.0.130.0110.01214.15
7.0.120.0070.00614.28
7.0.110.0400.00514.46
7.0.100.0080.00814.36
7.0.90.0540.00514.26
7.0.80.0110.00914.45
7.0.70.0070.00914.32
7.0.60.0060.00814.47
7.0.50.0110.00614.41
7.0.40.0250.00713.34
7.0.30.0180.01013.22
7.0.20.0110.00513.28
7.0.10.0060.00613.44
7.0.00.0070.00813.34
5.6.400.0070.00714.25
5.6.390.0000.00814.51
5.6.380.0070.00714.17
5.6.370.0090.00314.18
5.6.360.0070.00713.80
5.6.350.0030.01014.02
5.6.340.0000.01314.30
5.6.330.0030.00714.20
5.6.320.0000.00914.02
5.6.310.0030.01314.37
5.6.300.0040.00914.07
5.6.290.0110.00313.94
5.6.280.0070.00414.06
5.6.270.0100.00314.10
5.6.260.0040.01114.10
5.6.250.0040.00813.82
5.6.240.0040.01514.30
5.6.230.0060.00314.04
5.6.220.0030.00714.36
5.6.210.0030.01014.22
5.6.200.0040.01213.95
5.6.190.0090.00614.04
5.6.180.0160.00014.24
5.6.170.0030.00914.12
5.6.160.0000.01114.11
5.6.150.0030.01214.24
5.6.140.0070.00714.54
5.6.130.0040.01114.30
5.6.120.0040.00814.13
5.6.110.0030.01114.10
5.6.100.0130.00314.30
5.6.90.0030.01014.04
5.6.80.0040.00714.25
5.6.70.0030.00714.16
5.6.60.0060.00613.98
5.6.50.0030.00614.02
5.6.40.0140.00013.88
5.6.30.0000.01313.80
5.6.20.0030.00614.32
5.6.10.0030.01014.13
5.6.00.0090.00614.12

preferences:
52.97 ms | 400 KiB | 5 Q