3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One { trait foo { static $bar = []; public static function a() { } } } namespace Two { use One\foo as OneFoo; trait bat { use OneFoo; public static function a() { $bar[] = 'qux'; } } } namespace Three { class qux { use \Two\bat; public static function a() { \Too\bar::a(); } } } namespace { \Three\qux::a(); }

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.0180.00316.75
8.3.50.0110.00821.17
8.3.40.0070.00718.79
8.3.30.0070.00718.77
8.3.20.0000.00720.31
8.3.10.0030.00523.48
8.3.00.0040.00422.20
8.2.180.0070.00716.75
8.2.170.0070.00722.96
8.2.160.0170.00022.23
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00017.75
8.2.110.0070.00319.31
8.2.100.0040.00818.03
8.2.90.0050.00319.08
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.92
8.2.50.0000.00818.10
8.2.40.0000.00820.88
8.2.30.0040.00419.85
8.2.20.0040.00417.62
8.2.10.0070.00018.11
8.2.00.0040.00418.08
8.1.280.0140.00025.92
8.1.270.0070.00020.24
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0120.00622.37
8.1.230.0060.00617.77
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0050.00318.46
8.1.160.0040.00422.00
8.1.150.0040.00418.82
8.1.140.0000.00817.38
8.1.130.0050.00217.59
8.1.120.0070.00017.38
8.1.110.0000.00817.45
8.1.100.0000.00717.44
8.1.90.0070.00317.30
8.1.80.0000.00817.28
8.1.70.0040.00417.32
8.1.60.0040.00417.41
8.1.50.0030.00617.35
8.1.40.0060.00317.47
8.1.30.0040.00417.46
8.1.20.0080.00017.41
8.1.10.0030.00617.51
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0030.00317.12
8.0.260.0030.00517.24
8.0.250.0000.00817.00
8.0.240.0040.00417.03
8.0.230.0000.00717.00
8.0.220.0030.00516.98
8.0.210.0000.00716.88
8.0.200.0030.00316.98
8.0.190.0080.00017.02
8.0.180.0000.00816.86
8.0.170.0070.00016.95
8.0.160.0000.00716.84
8.0.150.0070.00016.76
8.0.140.0000.00716.92
8.0.130.0030.00513.30
8.0.120.0000.00816.98
8.0.110.0050.00316.92
8.0.100.0040.00416.96
8.0.90.0040.00316.75
8.0.80.0060.00917.01
8.0.70.0000.00817.01
8.0.60.0030.00516.74
8.0.50.0040.00416.79
8.0.30.0070.01017.00
8.0.20.0130.00617.40
8.0.10.0000.00717.01
8.0.00.0080.01016.86
7.4.330.0050.00015.08
7.4.320.0000.00616.54
7.4.300.0000.00616.51
7.4.290.0030.00616.57
7.4.280.0000.00716.42
7.4.270.0030.00316.54
7.4.260.0000.00716.43
7.4.250.0070.00016.48
7.4.240.0050.00216.50
7.4.230.0000.00716.43
7.4.220.0160.00316.48
7.4.210.0030.01016.44
7.4.200.0030.00316.42
7.4.160.0090.00616.73
7.4.150.0080.00917.40
7.4.140.0140.01017.86
7.4.130.0050.01516.70
7.4.120.0100.00916.46
7.4.110.0070.01016.46
7.4.100.0100.01016.56
7.4.90.0070.01016.48
7.4.80.0120.00619.39
7.4.70.0080.00816.46
7.4.60.0190.00316.62
7.4.50.0000.00716.40
7.4.40.0030.01416.36
7.4.30.0040.01216.58
7.4.00.0030.01214.56
7.3.330.0030.00313.22
7.3.320.0030.00313.43
7.3.310.0070.00016.25
7.3.300.0030.00316.37
7.3.290.0090.01016.32
7.3.280.0110.00916.36
7.3.270.0040.01517.40
7.3.260.0130.01016.35
7.3.250.0110.00716.30
7.3.240.0070.01016.32
7.3.230.0150.00816.44
7.3.210.0170.00316.46
7.3.200.0150.00716.54
7.3.190.0130.00316.36
7.3.180.0130.00316.61
7.3.170.0170.00516.44
7.3.160.0060.02016.33
7.2.330.0110.00716.34
7.2.320.0120.01216.53
7.2.310.0070.01516.53
7.2.300.0090.00916.43
7.2.290.0130.00416.60
7.2.60.0040.01216.90
7.2.00.0130.00319.00
7.1.200.0000.01315.42
7.1.100.0090.00617.85
7.1.70.0050.00316.96
7.1.60.0140.01119.18
7.1.50.0030.01017.01
7.1.00.0070.07322.44
7.0.200.0070.00416.87
7.0.60.0030.07319.86
7.0.50.0270.04317.89
7.0.40.0130.07020.15
7.0.30.0500.06020.23
7.0.20.0270.07320.09
7.0.10.0030.04020.09
7.0.00.0130.07720.23
5.6.280.0070.06021.16
5.6.210.0070.08320.68
5.6.200.0170.04018.22
5.6.190.0030.08720.57
5.6.180.0200.04020.57
5.6.170.0200.03720.51
5.6.160.0100.04320.47
5.6.150.0100.07718.28
5.6.140.0130.07018.18
5.6.130.0070.08018.24
5.6.120.0070.03721.01
5.6.110.0200.07721.07
5.6.100.0070.04021.09
5.6.90.0170.04321.11
5.6.80.0070.05320.53
5.6.70.2130.04320.52
5.5.350.0100.08020.48
5.5.340.0200.03317.98
5.5.330.0100.05020.28
5.5.320.0230.07720.36
5.5.310.0300.07320.28
5.5.300.0000.04018.08
5.5.290.0070.04017.95
5.5.280.0170.06720.80
5.5.270.0030.04720.65
5.5.260.0130.06720.77
5.5.250.0030.07020.79
5.5.240.0170.07320.16
5.4.450.0730.06719.60
5.4.440.0900.06719.58
5.4.430.0970.06719.33
5.4.420.0700.05319.55
5.4.410.0770.05019.35
5.4.400.0530.06319.38
5.4.390.0800.05719.15
5.4.380.0500.07719.20
5.4.370.0570.06019.22
5.4.360.0170.06019.04
5.4.350.0270.05019.16
5.4.340.0630.06319.25
5.4.320.0500.05319.29
5.4.310.0200.05019.27
5.4.300.0330.07019.23
5.4.290.0830.05719.22
5.4.280.0600.06719.37
5.4.270.0070.06019.32
5.4.260.0300.05319.05
5.4.250.0770.05319.25
5.4.240.0570.07019.09
5.4.230.0600.05019.28
5.4.220.0730.05319.25
5.4.210.0570.05319.33
5.4.200.0900.07316.80
5.4.190.0600.05719.00
5.4.180.0630.04719.15
5.4.170.0600.06018.98
5.4.160.0470.06319.20
5.4.150.0370.05018.96
5.4.140.0500.05316.56
5.4.130.0670.04716.48
5.4.120.0800.05016.46
5.4.110.0130.04716.46
5.4.100.0670.05316.39
5.4.90.0630.04716.48
5.4.80.0870.05316.33
5.4.70.0300.05316.35
5.4.60.0300.07016.26
5.4.50.0030.03316.55
5.4.40.0000.04316.51
5.4.30.0030.04716.50
5.4.20.0030.05016.27

preferences:
47.28 ms | 401 KiB | 5 Q