3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace B { class C { public static function f() { var_dump(__CLASS__); } } C::f(); } namespace A\B { class C { public static function f() { var_dump(__CLASS__); } } C::f(); } namespace A { B\C::f(); \B\C::f(); //A\B\C::f(); \A\B\C::f(); $s = 'B\C::f'; call_user_func($s); $s = '\B\C::f'; call_user_func($s); $s = 'A\B\C::f'; call_user_func($s); $s = '\A\B\C::f'; call_user_func($s); }

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.40.0180.00418.67
8.3.30.0070.01419.09
8.3.20.0000.00820.05
8.3.10.0000.00823.53
8.3.00.0040.00418.83
8.2.170.0100.01022.96
8.2.160.0070.01020.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0030.00520.90
8.2.110.0060.00319.30
8.2.100.0040.00817.91
8.2.90.0040.00418.89
8.2.80.0030.00517.97
8.2.70.0000.00917.25
8.2.60.0080.00017.90
8.2.50.0030.00518.10
8.2.40.0030.00519.97
8.2.30.0050.00218.08
8.2.20.0040.00417.68
8.2.10.0070.00018.00
8.2.00.0000.00917.75
8.1.270.0030.00523.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.01122.52
8.1.230.0060.00617.83
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0030.00618.59
8.1.160.0020.00521.97
8.1.150.0000.00718.61
8.1.140.0020.00517.41
8.1.130.0000.00717.71
8.1.120.0060.00317.44
8.1.110.0040.00417.41
8.1.100.0030.00417.45
8.1.90.0040.00417.29
8.1.80.0040.00417.45
8.1.70.0030.00517.43
8.1.60.0040.00417.63
8.1.50.0040.00417.53
8.1.40.0040.00417.46
8.1.30.0050.00317.68
8.1.20.0060.00317.59
8.1.10.0000.00817.53
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0030.00318.44
8.0.270.0050.00317.05
8.0.260.0030.00317.11
8.0.250.0000.00716.82
8.0.240.0000.00816.82
8.0.230.0030.00316.88
8.0.220.0030.00516.84
8.0.210.0040.00416.77
8.0.200.0030.00316.81
8.0.190.0000.00716.88
8.0.180.0040.00416.85
8.0.170.0000.00716.76
8.0.160.0030.00316.82
8.0.150.0000.00716.88
8.0.140.0090.00016.70
8.0.130.0060.00013.32
8.0.120.0040.00416.79
8.0.110.0050.00216.94
8.0.100.0000.00716.71
8.0.90.0030.00616.65
8.0.80.0030.01416.90
8.0.70.0040.00416.80
8.0.60.0040.00416.68
8.0.50.0000.00716.82
8.0.30.0060.01217.02
8.0.20.0100.00717.40
8.0.10.0040.00416.80
8.0.00.0170.00916.78
7.4.330.0000.00415.00
7.4.320.0060.00016.48
7.4.300.0060.00016.59
7.4.290.0060.00016.47
7.4.280.0030.00616.61
7.4.270.0030.00616.60
7.4.260.0000.00816.60
7.4.250.0040.00416.57
7.4.240.0020.00616.65
7.4.230.0070.00016.41
7.4.220.0140.00716.59
7.4.210.0130.00316.54
7.4.200.0000.00716.52
7.4.190.0000.00716.70
7.4.160.0160.00316.38
7.4.150.0140.00417.40
7.4.140.0100.00717.86
7.4.130.0090.01316.41
7.4.120.0100.00716.39
7.4.110.0080.01216.51
7.4.100.0110.00716.39
7.4.90.0140.00416.45
7.4.80.0100.00719.39
7.4.70.0030.01316.56
7.4.60.0030.01916.60
7.4.50.0040.00416.57
7.4.40.0090.00616.44
7.4.30.0090.01216.64
7.4.00.0070.00914.84
7.3.330.0000.00513.21
7.3.320.0060.00013.27
7.3.310.0000.00716.36
7.3.300.0030.00316.30
7.3.290.0070.00716.33
7.3.280.0080.00816.27
7.3.270.0090.00817.40
7.3.260.0160.00916.51
7.3.250.0090.00916.18
7.3.240.0130.00316.62
7.3.230.0070.01116.39
7.3.210.0040.01316.22
7.3.200.0070.01319.39
7.3.190.0100.01016.34
7.3.180.0090.00616.21
7.3.170.0030.01416.33
7.3.160.0080.00816.38
7.3.120.0060.00814.80
7.3.110.0100.00714.53
7.3.100.0030.01014.89
7.3.90.0070.00314.51
7.3.80.0080.00514.73
7.3.70.0040.00814.83
7.3.60.0120.00014.87
7.3.50.0030.00914.50
7.3.40.0000.01114.76
7.3.30.0000.01114.77
7.3.20.0030.00616.42
7.3.10.0030.00616.27
7.3.00.0100.00316.51
7.2.330.0030.01516.39
7.2.320.0070.01016.61
7.2.310.0100.01016.62
7.2.300.0100.00716.53
7.2.290.0070.01416.43
7.2.250.0120.00215.05
7.2.240.0120.00614.88
7.2.230.0040.00815.08
7.2.220.0040.00414.86
7.2.210.0080.00315.20
7.2.200.0080.00814.83
7.2.190.0080.00414.80
7.2.180.0000.01314.65
7.2.170.0000.01315.02
7.2.110.0000.01416.27
7.2.100.0080.00416.29
7.2.90.0040.00416.60
7.2.80.0060.00316.29
7.2.70.0040.00816.95
7.2.60.0090.00416.80
7.2.50.0090.00316.47
7.2.40.0030.00616.78
7.2.30.0110.00716.80
7.2.20.0060.00616.71
7.2.10.0040.00716.74
7.2.00.0040.00818.01
7.1.330.0070.00715.74
7.1.320.0080.00415.82
7.1.310.0030.00715.45
7.1.300.0100.00415.63
7.1.290.0030.00715.73
7.1.280.0030.00915.67
7.1.270.0100.00315.40
7.1.260.0030.00715.69
7.1.230.0040.00415.45
7.1.220.0060.00315.79
7.1.210.0060.00615.65
7.1.200.0050.00815.62
7.1.190.0120.00015.80
7.1.180.0040.00715.69
7.1.170.0030.00915.68
7.1.160.0000.01315.70
7.1.150.0000.00715.40
7.1.140.0060.00315.44
7.1.130.0040.00815.70
7.1.120.0060.00015.45
7.1.110.0090.00315.85
7.1.100.0070.00716.72
7.1.90.0030.00815.78
7.1.80.0000.01015.73
7.1.70.0020.00516.34
7.1.60.0050.01217.70
7.1.50.0100.00816.14
7.1.40.0100.00315.70
7.1.30.0110.00315.82
7.1.20.0080.00815.87
7.1.10.0040.00415.62
7.1.00.0030.04319.08
7.0.310.0090.00015.30
7.0.300.0030.00515.58
7.0.290.0060.00915.42
7.0.280.0000.01315.29
7.0.270.0040.00415.33
7.0.260.0110.00415.30
7.0.250.0000.01115.33
7.0.240.0080.00015.54
7.0.230.0060.00315.43
7.0.220.0000.01015.51
7.0.210.0080.00015.12
7.0.200.0010.00815.70
7.0.190.0070.00015.28
7.0.180.0030.00915.45
7.0.170.0050.00515.25
7.0.160.0080.00315.34
7.0.150.0060.00615.46
7.0.140.0080.03318.56
7.0.130.0030.00915.39
7.0.120.0030.00915.45
7.0.110.0080.03917.64
7.0.100.0030.03517.71
7.0.90.0120.03817.67
7.0.80.0100.03217.66
7.0.70.0120.03617.63
7.0.60.0080.04317.61
7.0.50.0040.04417.91
7.0.40.0090.04516.80
7.0.30.0040.02716.84
7.0.20.0100.04216.67
7.0.10.0110.04116.82
7.0.00.0090.04016.64
5.6.380.0070.00414.45
5.6.370.0040.00814.25
5.6.360.0070.00414.45
5.6.350.0040.00814.36
5.6.340.0030.00314.32
5.6.330.0030.01014.49
5.6.320.0000.00914.22
5.6.310.0070.00714.32
5.6.300.0040.00714.56
5.6.290.0040.01114.13
5.6.280.0020.04317.63
5.6.270.0030.00714.05
5.6.260.0060.00614.29
5.6.250.0030.03917.56
5.6.240.0060.04617.48
5.6.230.0030.04817.50
5.6.220.0070.04217.43
5.6.210.0100.04217.41
5.6.200.0070.04517.73
5.6.190.0040.04417.54
5.6.180.0100.03517.73
5.6.170.0090.04217.58
5.6.160.0050.04717.63
5.6.150.0070.04317.53
5.6.140.0040.03217.75
5.6.130.0080.04017.61
5.6.120.0070.04717.68
5.6.110.0080.04217.69
5.6.100.0070.04317.62
5.6.90.0080.04017.66
5.6.80.0020.05017.36
5.6.70.0080.04017.22
5.6.60.0130.03817.38
5.6.50.0070.02717.33
5.6.40.0030.04817.20
5.6.30.0090.03917.31
5.6.20.0100.03717.38
5.6.10.0130.03517.46
5.6.00.0030.04217.18
5.5.380.0020.04816.53
5.5.370.0070.03816.66
5.5.360.0090.03916.67
5.5.350.0050.03916.64
5.5.340.0020.04216.78
5.5.330.0030.04316.85
5.5.320.0050.04516.79
5.5.310.0050.04116.80
5.5.300.0050.04116.79
5.5.290.0140.03716.83
5.5.280.0070.04016.88
5.5.270.0130.03616.87
5.5.260.0030.03016.87
5.5.250.0130.03316.72
5.5.240.0050.04016.50
5.5.230.0070.03716.53
5.5.220.0080.04016.47
5.5.210.0020.04516.59
5.5.200.0070.03616.57
5.5.190.0030.04516.54
5.5.180.0110.03616.42
5.5.170.0050.00314.29
5.5.160.0020.04816.48
5.5.150.0060.04216.56
5.5.140.0100.04016.58
5.5.130.0120.03316.46
5.5.120.0020.04316.56
5.5.110.0070.03816.52
5.5.100.0070.03416.39
5.5.90.0050.04516.52
5.5.80.0030.04516.51
5.5.70.0130.03516.52
5.5.60.0090.03316.53
5.5.50.0060.03016.50
5.5.40.0030.03816.49
5.5.30.0080.03716.41
5.5.20.0100.04016.46
5.5.10.0020.04016.38
5.5.00.0060.03916.50
5.4.450.0060.04016.18
5.4.440.0010.04316.04
5.4.430.0050.02416.21
5.4.420.0070.03816.17
5.4.410.0100.03515.99
5.4.400.0070.04115.99
5.4.390.0090.03916.05
5.4.380.0120.03515.90
5.4.370.0080.03815.90
5.4.360.0020.04316.02
5.4.350.0070.03915.99
5.4.340.0070.04016.05
5.4.330.0090.00012.79
5.4.320.0060.04215.88
5.4.310.0100.03816.06
5.4.300.0020.04415.95
5.4.290.0090.03616.01
5.4.280.0050.04016.02
5.4.270.0080.03915.89
5.4.260.0080.02316.01
5.4.250.0030.04015.97
5.4.240.0090.03215.88
5.4.230.0030.04015.94
5.4.220.0080.03815.96
5.4.210.0020.03016.06
5.4.200.0050.03515.97
5.4.190.0050.03715.87
5.4.180.0020.04016.00
5.4.170.0130.03115.87
5.4.160.0060.02516.00
5.4.150.0050.03116.05
5.4.140.0060.03614.58
5.4.130.0030.03614.68
5.4.120.0070.03514.61
5.4.110.0050.03814.70
5.4.100.0040.03714.63
5.4.90.0090.03814.60
5.4.80.0060.03514.65
5.4.70.0050.04014.54
5.4.60.0020.03414.66
5.4.50.0080.03014.59
5.4.40.0050.03314.56
5.4.30.0070.03714.71
5.4.20.0070.03814.54
5.4.10.0030.04014.54
5.4.00.0060.03814.28
5.3.290.0050.04313.80
5.3.280.0050.03313.77
5.3.270.0060.03613.72
5.3.260.0060.03213.76
5.3.250.0070.03813.76
5.3.240.0070.03713.76
5.3.230.0050.03513.74
5.3.220.0030.04213.74
5.3.210.0030.04213.74
5.3.200.0060.02213.68
5.3.190.0030.04313.73
5.3.180.0030.04213.61
5.3.170.0050.04213.68
5.3.160.0090.03613.72
5.3.150.0020.03813.67
5.3.140.0060.03013.68
5.3.130.0070.03813.67
5.3.120.0020.02813.74
5.3.110.0050.02513.68
5.3.100.0000.03913.48
5.3.90.0030.03013.40
5.3.80.0070.03013.41
5.3.70.0080.03613.45
5.3.60.0070.03513.44
5.3.50.0030.04513.30
5.3.40.0070.03813.42
5.3.30.0020.04513.42
5.3.20.0050.03713.28
5.3.10.0030.03713.29
5.3.00.0020.02513.14
5.2.170.0030.03312.00
5.2.160.0050.02311.92
5.2.150.0050.03212.00
5.2.140.0020.03611.91
5.2.130.0050.03011.92
5.2.120.0040.02312.02
5.2.110.0030.03111.91
5.2.100.0030.03211.89
5.2.90.0050.03211.91
5.2.80.0050.03211.95
5.2.70.0030.02311.92
5.2.60.0030.02511.93
5.2.50.0050.03211.87
5.2.40.0080.03111.97
5.2.30.0070.02811.84
5.2.20.0020.03311.77
5.2.10.0020.03511.89
5.2.00.0070.02911.71
5.1.60.0020.03011.38
5.1.50.0050.02711.36
5.1.40.0090.02411.35
5.1.30.0020.03111.60
5.1.20.0050.02511.61
5.1.10.0000.02011.40
5.1.00.0050.02811.43
5.0.50.0030.02210.63
5.0.40.0040.01710.63
5.0.30.0000.03810.50
5.0.20.0030.02310.49
5.0.10.0010.02510.55
5.0.00.0020.03310.45
4.4.90.0020.01010.32
4.4.80.0020.02110.32
4.4.70.0030.02010.32
4.4.60.0010.02010.32
4.4.50.0020.01810.32
4.4.40.0020.03010.32
4.4.30.0000.01910.32
4.4.20.0020.02210.32
4.4.10.0050.01710.32
4.4.00.0010.03010.32
4.3.110.0000.02110.32
4.3.100.0000.01910.32
4.3.90.0030.01310.32
4.3.80.0030.02010.32
4.3.70.0000.01410.32
4.3.60.0000.02110.32
4.3.50.0030.01310.32
4.3.40.0010.02310.32
4.3.30.0020.02010.32
4.3.20.0020.01310.32
4.3.10.0000.01710.32
4.3.00.0000.02110.32

preferences:
46.27 ms | 400 KiB | 5 Q