3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*namespace MyProject; use blah\blah as mine; // see "Using namespaces: importing/aliasing" blah\mine(); // calls function MyProject\blah\mine() namespace\blah\mine(); // calls function MyProject\blah\mine() namespace\func(); // calls function MyProject\func() namespace\sub\func(); // calls function MyProject\sub\func() namespace\cname::method(); // calls static method "method" of class MyProject\cname $a = new namespace\sub\cname(); // instantiates object of class MyProject\sub\cname $b = namespace\CONSTANT; // assigns value of constant MyProject\CONSTANT to $b ?>*/ namespace MyProject; function get($classname) { echo $a = __NAMESPACE__ . '\\' . $classname; return new $a; } class asdf {} get('asdF');

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.0130.00618.55
8.3.50.0190.00821.14
8.3.40.0110.00418.70
8.3.30.0070.00720.34
8.3.20.0070.00020.16
8.3.10.0000.00921.97
8.3.00.0000.00822.22
8.2.180.0090.00616.38
8.2.170.0060.00922.96
8.2.160.0090.00622.26
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.66
8.2.110.0090.00020.51
8.2.100.0090.00317.66
8.2.90.0040.00419.31
8.2.80.0020.00519.38
8.2.70.0080.00017.63
8.2.60.0070.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00818.21
8.2.30.0080.00319.49
8.2.20.0040.00417.53
8.2.10.0000.00817.56
8.2.00.0050.00317.75
8.1.280.0150.00025.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00421.96
8.1.230.0060.00621.02
8.1.220.0040.00418.57
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0050.00317.39
8.1.180.0040.00418.10
8.1.170.0030.00518.41
8.1.160.0030.00518.73
8.1.150.0070.00018.62
8.1.140.0000.00817.39
8.1.130.0000.00717.76
8.1.120.0040.00417.31
8.1.110.0050.00217.34
8.1.100.0040.00417.35
8.1.90.0070.00017.43
8.1.80.0050.00317.29
8.1.70.0030.00317.38
8.1.60.0080.00017.58
8.1.50.0000.00717.40
8.1.40.0020.00517.41
8.1.30.0080.00017.68
8.1.20.0080.00017.55
8.1.10.0040.00417.45
8.1.00.0000.00717.47
8.0.300.0040.00418.77
8.0.290.0040.00417.14
8.0.280.0070.00018.46
8.0.270.0000.00717.16
8.0.260.0040.00418.30
8.0.250.0000.00717.00
8.0.240.0030.00616.95
8.0.230.0030.00316.89
8.0.220.0000.00716.85
8.0.210.0030.00316.88
8.0.200.0030.00316.99
8.0.190.0000.00716.97
8.0.180.0000.00716.86
8.0.170.0000.00916.94
8.0.160.0040.00416.95
8.0.150.0030.00316.87
8.0.140.0040.00616.88
8.0.130.0000.00513.31
8.0.120.0040.00416.91
8.0.110.0030.00316.91
8.0.100.0050.00316.88
8.0.90.0070.00016.85
8.0.80.0110.00716.78
8.0.70.0040.00416.84
8.0.60.0000.00716.65
8.0.50.0040.00416.80
8.0.30.0110.00817.03
8.0.20.0120.00817.40
8.0.10.0000.00716.96
8.0.00.0030.01616.69
7.4.330.0000.00516.77
7.4.320.0000.00616.54
7.4.300.0060.00016.61
7.4.290.0030.00316.49
7.4.280.0060.00016.45
7.4.270.0030.00616.65
7.4.260.0050.00013.16
7.4.250.0040.00416.42
7.4.240.0050.00316.50
7.4.230.0000.00716.41
7.4.220.0000.01716.63
7.4.210.0020.01416.56
7.4.200.0000.00716.63
7.4.190.0060.00016.76
7.4.160.0080.00816.52
7.4.150.0070.01017.40
7.4.140.0140.00317.86
7.4.130.0120.00616.52
7.4.120.0070.01116.57
7.4.110.0090.00916.57
7.4.100.0100.00616.56
7.4.90.0100.01316.48
7.4.80.0160.00619.39
7.4.70.0180.00016.75
7.4.60.0110.01116.47
7.4.50.0040.00416.61
7.4.40.0030.01022.77
7.4.30.0060.01016.50
7.4.10.0060.01314.91
7.4.00.0090.00914.95
7.3.330.0020.00213.35
7.3.320.0000.00613.28
7.3.310.0040.00416.33
7.3.300.0030.00316.36
7.3.290.0060.00916.41
7.3.280.0080.00816.36
7.3.270.0140.00317.40
7.3.260.0040.01816.43
7.3.250.0090.00816.39
7.3.240.0050.01116.43
7.3.230.0110.00816.39
7.3.210.0070.01016.45
7.3.200.0120.00919.39
7.3.190.0100.00716.51
7.3.180.0000.01616.29
7.3.170.0120.00616.34
7.3.160.0140.00316.32
7.3.130.0100.01014.68
7.3.120.0110.00614.64
7.3.110.0080.00415.02
7.3.100.0000.01014.71
7.3.90.0110.00315.02
7.3.80.0100.00314.74
7.3.70.0050.00514.65
7.3.60.0030.01014.95
7.3.50.0070.00414.73
7.3.40.0050.00514.83
7.3.30.0070.00414.97
7.3.20.0040.00416.48
7.3.10.0070.01116.48
7.3.00.0060.00816.52
7.2.330.0140.00616.49
7.2.320.0100.00716.78
7.2.310.0090.00616.61
7.2.300.0060.00916.46
7.2.290.0050.01116.57
7.2.260.0040.01515.12
7.2.250.0030.01114.66
7.2.240.0030.01314.72
7.2.230.0030.01214.95
7.2.220.0040.01414.97
7.2.210.0060.00914.81
7.2.200.0070.00714.72
7.2.190.0070.00714.86
7.2.180.0070.00314.82
7.2.170.0100.00315.04
7.2.160.0030.01315.00
7.2.150.0030.00616.97
7.2.140.0000.01216.85
7.2.130.0110.00716.92
7.2.120.0080.00616.71
7.2.110.0070.00816.70
7.2.100.0080.00916.67
7.2.90.0120.00716.67
7.2.80.0060.01116.48
7.2.70.0060.00616.88
7.2.60.0070.00716.87
7.2.50.0040.01216.79
7.2.40.0080.01116.75
7.2.30.0090.00616.75
7.2.20.0080.00616.76
7.2.10.0080.00716.70
7.2.00.0050.00717.16
7.1.330.0030.01015.89
7.1.320.0070.01015.57
7.1.310.0080.00415.76
7.1.300.0040.00415.63
7.1.290.0060.00315.79
7.1.280.0000.01315.61
7.1.270.0000.00915.71
7.1.260.0040.01115.67
7.1.250.0120.00315.47
7.1.240.0060.00615.49
7.1.230.0070.00415.55
7.1.220.0000.01315.68
7.1.210.0080.00315.78
7.1.200.0060.00615.72
7.1.190.0040.00415.77
7.1.180.0000.01715.82
7.1.170.0030.01615.73
7.1.160.0090.00015.53
7.1.150.0080.00615.48
7.1.140.0120.00315.80
7.1.130.0100.00615.63
7.1.120.0040.00715.78
7.1.110.0060.00915.83
7.1.100.0070.00316.89
7.1.90.0000.01115.68
7.1.80.0000.01215.43
7.1.70.0030.00716.36
7.1.60.0090.01117.42
7.1.50.0110.00316.32
7.1.40.0070.01015.52
7.1.30.0030.00615.60
7.1.20.0060.00315.71
7.1.10.0000.01515.72
7.1.00.0070.01818.86
7.0.330.0090.00315.42
7.0.320.0000.01215.42
7.0.310.0060.00315.22
7.0.300.0100.00615.04
7.0.290.0060.00615.08
7.0.280.0000.01215.29
7.0.270.0030.00715.46
7.0.260.0070.00715.13
7.0.250.0030.00615.61
7.0.240.0070.00415.17
7.0.230.0060.01015.30
7.0.220.0070.00715.24
7.0.210.0090.00015.43
7.0.200.0030.01016.08
7.0.190.0040.01115.27
7.0.180.0090.00915.49
7.0.170.0090.00915.40
7.0.160.0030.00815.24
7.0.150.0040.01115.36
7.0.140.0030.04318.73
7.0.130.0000.01015.22
7.0.120.0030.01015.33
7.0.110.0000.01515.03
7.0.100.0080.03517.60
7.0.90.0020.03017.66
7.0.80.0050.04817.62
7.0.70.0080.03717.77
7.0.60.0100.03817.57
7.0.50.0300.04317.91
7.0.40.0150.03616.76
7.0.30.0100.04016.79
7.0.20.0040.04716.63
7.0.10.0050.03116.84
7.0.00.0080.03016.78
5.6.400.0130.00314.03
5.6.390.0160.00014.49
5.6.380.0070.00713.98
5.6.370.0030.00614.21
5.6.360.0090.00614.11
5.6.350.0110.00014.25
5.6.340.0040.01114.24
5.6.330.0060.00313.90
5.6.320.0000.01714.34
5.6.310.0000.01014.40
5.6.300.0000.01014.15
5.6.290.0090.00614.41
5.6.280.0060.03817.49
5.6.270.0080.00414.11
5.6.260.0100.00714.30
5.6.250.0120.04217.52
5.6.240.0070.04417.49
5.6.230.0080.04217.54
5.6.220.0120.04117.41
5.6.210.0030.03617.43
5.6.200.0110.04117.73
5.6.190.0050.03317.65
5.6.180.0040.03917.71
5.6.170.0070.02517.84
5.6.160.0100.03817.64
5.6.150.0070.02817.64
5.6.140.0090.03817.71
5.6.130.0080.04317.67
5.6.120.0070.04517.69
5.6.110.0080.03817.66
5.6.100.0080.02717.72
5.6.90.0120.02517.71
5.6.80.0080.04017.46
5.6.70.0110.03817.30
5.6.60.0160.03517.25
5.6.50.0070.04617.23
5.6.40.0070.04317.42
5.6.30.0060.04017.21
5.6.20.0110.04217.32
5.6.10.0050.04517.42
5.6.00.0090.04417.19
5.5.380.0040.04617.29
5.5.370.0050.02917.47
5.5.360.0080.02617.40
5.5.350.0100.04117.45
5.5.340.0050.04517.67
5.5.330.0110.03817.41
5.5.320.0070.04017.59
5.5.310.0050.04317.48
5.5.300.0080.04317.68
5.5.290.0080.04617.61
5.5.280.0070.04317.57
5.5.270.0020.03217.45
5.5.260.0060.02817.63
5.5.250.0080.04517.63
5.5.240.0080.04017.09
5.5.230.0020.03517.21
5.5.220.0140.03317.29
5.5.210.0050.04817.04
5.5.200.0050.04417.25
5.5.190.0060.02317.12
5.5.180.0140.04117.26
5.5.170.0060.00614.29
5.5.160.0020.03217.02
5.5.150.0020.04617.27
5.5.140.0050.03917.27
5.5.130.0080.04016.97
5.5.120.0080.03317.12
5.5.110.0070.04317.24
5.5.100.0070.04017.13
5.5.90.0070.03217.14
5.5.80.0050.04417.09
5.5.70.0050.04116.95
5.5.60.0060.04317.06
5.5.50.0050.04217.24
5.5.40.0100.04017.22
5.5.30.0070.04217.13
5.5.20.0030.04817.16
5.5.10.0090.03917.28
5.5.00.0050.04517.03
5.4.450.0030.04616.11
5.4.440.0090.03616.15
5.4.430.0060.04516.17
5.4.420.0030.04316.19
5.4.410.0090.03916.03
5.4.400.0080.03816.01
5.4.390.0050.04415.94
5.4.380.0090.03815.87
5.4.370.0130.03015.97
5.4.360.0050.04215.94
5.4.350.0060.02515.89
5.4.340.0050.03715.95
5.4.330.0090.00012.84
5.4.320.0030.02215.87
5.4.310.0090.03716.00
5.4.300.0050.02715.94
5.4.290.0120.03515.98
5.4.280.0030.03215.99
5.4.270.0070.03015.98
5.4.260.0120.03515.94
5.4.250.0080.03515.94
5.4.240.0080.03816.01
5.4.230.0070.04015.89
5.4.220.0030.04215.94
5.4.210.0080.03815.89
5.4.200.0080.03716.01
5.4.190.0060.04016.02
5.4.180.0070.03815.96
5.4.170.0020.04215.94
5.4.160.0080.03815.97
5.4.150.0090.03716.02
5.4.140.0070.03814.54
5.4.130.0030.04014.61
5.4.120.0050.03014.54
5.4.110.0070.04014.58
5.4.100.0050.04314.67
5.4.90.0030.03514.62
5.4.80.0020.04214.62
5.4.70.0060.03714.67
5.4.60.0070.04214.63
5.4.50.0020.04514.64
5.4.40.0030.02814.65
5.4.30.0030.03914.64
5.4.20.0090.03514.62
5.4.10.0030.03914.64
5.4.00.0050.04014.35
5.3.290.0070.04213.78
5.3.280.0060.04013.68
5.3.270.0060.03813.77
5.3.260.0080.03813.69
5.3.250.0030.03913.73
5.3.240.0050.03313.78
5.3.230.0100.03813.75
5.3.220.0070.03513.71
5.3.210.0030.04213.67
5.3.200.0070.03513.74
5.3.190.0030.04413.72
5.3.180.0070.03913.69
5.3.170.0120.03113.73
5.3.160.0100.03713.70
5.3.150.0120.03313.75
5.3.140.0050.03513.75
5.3.130.0060.03613.71
5.3.120.0030.04213.70
5.3.110.0060.03813.70
5.3.100.0100.03613.42
5.3.90.0050.03913.49
5.3.80.0050.03713.47
5.3.70.0000.02513.46
5.3.60.0030.02113.38
5.3.50.0020.04013.36
5.3.40.0050.04113.36
5.3.30.0060.03513.38
5.3.20.0060.03813.33
5.3.10.0110.03713.33
5.3.00.0080.03813.33
5.2.170.0100.06013.82
5.2.160.0070.06013.82
5.2.150.0030.06713.82
5.2.140.0030.06713.82
5.2.130.0000.06313.82
5.2.120.0130.02713.82
5.2.110.0030.06013.82
5.2.100.0000.06713.82
5.2.90.0030.06013.82
5.2.80.0030.06313.82
5.2.70.0070.06013.82
5.2.60.0030.06313.82
5.2.50.0000.06713.82
5.2.40.0100.05313.82
5.2.30.0070.06013.82
5.2.20.0070.06013.82
5.2.10.0000.04013.82
5.2.00.0100.05313.82
5.1.60.0030.05013.82
5.1.50.0070.05313.82
5.1.40.0100.04713.82
5.1.30.0030.05713.82
5.1.20.0070.05313.82
5.1.10.0030.05713.82
5.1.00.0030.07013.82
5.0.50.0000.03013.82
5.0.40.0000.04713.82
5.0.30.0070.06013.82
5.0.20.0100.03013.82
5.0.10.0000.04713.82
5.0.00.0070.06013.82
4.4.90.0070.03013.82
4.4.80.0070.03013.82
4.4.70.0000.03313.82
4.4.60.0000.03713.82
4.4.50.0000.04013.82
4.4.40.0000.05713.82
4.4.30.0070.03013.82
4.4.20.0030.02013.82
4.4.10.0030.02313.82
4.4.00.0070.05013.82
4.3.110.0000.03313.82
4.3.100.0000.02713.82
4.3.90.0030.02713.82
4.3.80.0030.05013.82
4.3.70.0030.02313.82
4.3.60.0030.03013.82
4.3.50.0000.03713.82
4.3.40.0030.04313.82
4.3.30.0000.03713.82
4.3.20.0000.03713.82
4.3.10.0000.03713.82
4.3.00.0070.02713.82

preferences:
47.74 ms | 401 KiB | 5 Q