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) { $a = __NAMESPACE__ . '\\' . $classname; return new $a; } //class A 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.0040.01518.68
8.3.50.0080.00816.55
8.3.40.0150.00019.02
8.3.30.0090.00618.84
8.3.20.0040.00418.69
8.3.10.0080.00020.53
8.3.00.0050.00317.75
8.2.180.0140.00716.63
8.2.170.0070.00722.96
8.2.160.0150.00022.26
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00819.82
8.2.110.0060.00321.05
8.2.100.0040.00817.84
8.2.90.0000.00719.05
8.2.80.0080.00018.05
8.2.70.0040.00417.73
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0030.00618.05
8.2.20.0000.00717.61
8.2.10.0040.00417.72
8.2.00.0030.00617.74
8.1.280.0120.00325.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0050.00522.52
8.1.230.0040.00721.03
8.1.220.0000.00818.77
8.1.210.0040.00418.98
8.1.200.0030.00617.36
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0000.00818.83
8.1.160.0020.00518.77
8.1.150.0040.00418.52
8.1.140.0000.00717.27
8.1.130.0000.00717.70
8.1.120.0030.00317.31
8.1.110.0050.00217.37
8.1.100.0040.00417.37
8.1.90.0020.00517.39
8.1.80.0000.00717.41
8.1.70.0030.00317.34
8.1.60.0050.00317.57
8.1.50.0000.00717.48
8.1.40.0030.00617.45
8.1.30.0040.00417.64
8.1.20.0000.00817.55
8.1.10.0000.00817.61
8.1.00.0000.00817.55
8.0.300.0070.00319.96
8.0.290.0040.00416.75
8.0.280.0030.00518.45
8.0.270.0070.00017.22
8.0.260.0050.00318.58
8.0.250.0000.00716.91
8.0.240.0030.00516.94
8.0.230.0040.00316.97
8.0.220.0000.00716.95
8.0.210.0030.00316.96
8.0.200.0030.00316.97
8.0.190.0080.00016.85
8.0.180.0040.00417.04
8.0.170.0040.00416.94
8.0.160.0060.00316.99
8.0.150.0060.00316.86
8.0.140.0080.00316.81
8.0.130.0000.00513.35
8.0.120.0050.00316.91
8.0.110.0030.00516.73
8.0.100.0000.00716.82
8.0.90.0050.00316.79
8.0.80.0070.00816.89
8.0.70.0040.00416.89
8.0.60.0000.00716.80
8.0.50.0040.00416.89
8.0.30.0110.00816.96
8.0.20.0140.00517.25
8.0.10.0000.00717.07
8.0.00.0110.00716.68
7.4.330.0000.00514.64
7.4.320.0000.00616.34
7.4.300.0000.00616.62
7.4.290.0000.00716.61
7.4.280.0030.00616.57
7.4.270.0040.00416.54
7.4.260.0050.00013.28
7.4.250.0000.00716.45
7.4.240.0040.00416.59
7.4.230.0040.00416.68
7.4.220.0060.01316.48
7.4.210.0080.00916.62
7.4.200.0040.00416.63
7.4.190.0000.00716.67
7.4.160.0090.00916.38
7.4.150.0120.00617.07
7.4.140.0100.00917.21
7.4.130.0070.01016.63
7.4.120.0110.00616.52
7.4.110.0200.01016.40
7.4.100.0120.00616.43
7.4.90.0090.00916.41
7.4.80.0040.01418.80
7.4.70.0090.01116.35
7.4.60.0110.00616.51
7.4.50.0040.00416.37
7.4.40.0040.01122.27
7.4.30.0040.01216.58
7.4.00.0100.00714.90
7.3.330.0070.00013.28
7.3.320.0000.00613.17
7.3.310.0040.00416.52
7.3.300.0000.00616.29
7.3.290.0030.01016.41
7.3.280.0090.01016.40
7.3.270.0120.00817.07
7.3.260.0050.01118.24
7.3.250.0050.01516.32
7.3.240.0100.01016.60
7.3.230.0040.01516.59
7.3.210.0100.01016.42
7.3.200.0090.00919.39
7.3.190.0130.00716.27
7.3.180.0100.00716.55
7.3.170.0060.00916.41
7.3.160.0090.01416.34
7.3.120.0060.01015.00
7.3.110.0090.00915.11
7.3.100.0060.01214.74
7.3.90.0040.01115.05
7.3.80.0080.00814.83
7.3.70.0040.00814.86
7.3.60.0030.01014.60
7.3.50.0000.01014.73
7.3.40.0070.00714.93
7.3.30.0040.01114.84
7.3.20.0000.01216.75
7.3.10.0000.01516.73
7.3.00.0070.00716.69
7.2.330.0090.00916.61
7.2.320.0140.00616.63
7.2.310.0110.01216.72
7.2.300.0110.00616.50
7.2.290.0180.00316.68
7.2.250.0070.01014.54
7.2.240.0100.01014.96
7.2.230.0000.01414.46
7.2.220.0070.00715.10
7.2.210.0130.00314.70
7.2.200.0090.00014.76
7.2.190.0090.00614.96
7.2.180.0000.01514.70
7.2.170.0040.01114.89
7.2.160.0070.01114.74
7.2.150.0120.00316.93
7.2.140.0100.00316.82
7.2.130.0090.00316.90
7.2.120.0090.00616.65
7.2.110.0040.01116.77
7.2.100.0030.00916.78
7.2.90.0000.01716.95
7.2.80.0100.00716.67
7.2.70.0070.01116.50
7.2.60.0060.01016.68
7.2.50.0070.01016.91
7.2.40.0110.00316.91
7.2.30.0030.00916.87
7.2.20.0070.00416.90
7.2.10.0060.01016.62
7.2.00.0060.01018.15
7.1.330.0070.01115.50
7.1.320.0090.00615.69
7.1.310.0040.01115.45
7.1.300.0090.00015.39
7.1.290.0090.00615.43
7.1.280.0000.01515.76
7.1.270.0110.00415.48
7.1.260.0060.00615.34
7.1.250.0030.00715.70
7.1.240.0070.00715.74
7.1.230.0000.01515.77
7.1.220.0040.01115.69
7.1.210.0080.00815.43
7.1.200.0050.00915.73
7.1.190.0070.00715.74
7.1.180.0080.00815.63
7.1.170.0070.00715.73
7.1.160.0030.00715.39
7.1.150.0030.01015.42
7.1.140.0090.00315.41
7.1.130.0030.01215.85
7.1.120.0090.00015.66
7.1.110.0040.00815.88
7.1.100.0050.00816.90
7.1.90.0070.01015.88
7.1.80.0110.00415.85
7.1.70.0030.00716.24
7.1.60.0060.00917.53
7.1.50.0110.00616.09
7.1.40.0060.00615.84
7.1.30.0000.01115.50
7.1.20.0030.00915.45
7.1.10.0030.01015.50
7.1.00.0060.03918.98
7.0.330.0060.00615.07
7.0.320.0100.00315.49
7.0.310.0040.00415.40
7.0.300.0090.00615.43
7.0.290.0090.00015.28
7.0.280.0060.00915.36
7.0.270.0100.00315.13
7.0.260.0060.00315.18
7.0.250.0120.00015.54
7.0.240.0100.00715.49
7.0.230.0130.00315.32
7.0.220.0030.01015.16
7.0.210.0070.00315.36
7.0.200.0060.00615.96
7.0.190.0080.00015.32
7.0.180.0090.00315.34
7.0.170.0040.00815.46
7.0.160.0030.01015.21
7.0.150.0060.00615.27
7.0.140.0030.04018.75
7.0.130.0000.01415.48
7.0.120.0070.00715.50
7.0.110.0000.01015.36
7.0.100.0040.00815.50
7.0.90.0110.00015.34
7.0.80.0030.01115.10
7.0.70.0070.00415.31
7.0.60.0050.03717.65
7.0.50.0070.03416.57
7.0.40.0030.04815.62
7.0.30.0050.04715.49
7.0.20.0050.04815.48
7.0.10.0050.03215.70
7.0.00.0000.05315.55
5.6.400.0110.00414.14
5.6.390.0090.00614.23
5.6.380.0030.00713.97
5.6.370.0040.01114.34
5.6.360.0070.00714.33
5.6.350.0060.00314.40
5.6.340.0000.01014.37
5.6.330.0060.00914.23
5.6.320.0040.01114.29
5.6.310.0030.00913.84
5.6.300.0080.00814.19
5.6.290.0110.00314.16
5.6.280.0080.03717.71
5.6.270.0040.00714.02
5.6.260.0060.00614.38
5.6.250.0090.00314.29
5.6.240.0120.00314.24
5.6.230.0050.00314.25
5.6.220.0030.00614.11
5.6.210.0050.04917.37
5.6.200.0000.02616.31
5.6.190.0100.02516.32
5.6.180.0050.04016.25
5.6.170.0080.02816.40
5.6.160.0050.04616.15
5.6.150.0050.04416.26
5.6.140.0070.02816.25
5.6.130.0070.04116.28
5.6.120.0070.04516.34
5.6.110.0070.04416.31
5.6.100.0030.04716.29
5.6.90.0090.04216.21
5.6.80.0070.02315.90
5.6.70.0070.04115.97
5.6.60.0120.03815.78
5.6.50.0080.03815.85
5.6.40.0080.04215.82
5.6.30.0050.04715.79
5.6.20.0050.04115.78
5.6.10.0070.04215.98
5.6.00.0080.03715.78
5.5.380.0090.00314.02
5.5.370.0040.00714.25
5.5.360.0030.01013.83
5.5.350.0090.03017.26
5.5.340.0000.02916.04
5.5.330.0020.02416.18
5.5.320.0050.04516.15
5.5.310.0030.03216.05
5.5.300.0060.04616.02
5.5.290.0080.04116.16
5.5.280.0030.05016.20
5.5.270.0070.02316.20
5.5.260.0020.02916.11
5.5.250.0060.04016.14
5.5.240.0070.02715.79
5.5.230.0020.03315.64
5.5.220.0100.04015.66
5.5.210.0090.02315.82
5.5.200.0030.02515.54
5.5.190.0050.04815.77
5.5.180.0060.03815.68
5.5.170.0030.00914.15
5.5.160.0050.03815.67
5.5.150.0090.02515.66
5.5.140.0110.01615.74
5.5.130.0050.04015.55
5.5.120.0100.02715.69
5.5.110.0030.03215.69
5.5.100.0060.04115.68
5.5.90.0060.04115.65
5.5.80.0060.03415.80
5.5.70.0100.04215.55
5.5.60.0090.04015.58
5.5.50.0080.03915.73
5.5.40.0050.03015.61
5.5.30.0030.03215.61
5.5.20.0030.04515.70
5.5.10.0090.04215.58
5.5.00.0070.04015.64
5.4.450.0150.03215.26
5.4.440.0070.04015.14
5.4.430.0070.03515.18
5.4.420.0050.02815.14
5.4.410.0060.04115.11
5.4.400.0020.03115.00
5.4.390.0050.02815.05
5.4.380.0030.04315.05
5.4.370.0000.02815.02
5.4.360.0050.02815.12
5.4.350.0060.02915.05
5.4.340.0110.03715.06
5.4.330.0000.00810.98
5.4.320.0050.02815.04
5.4.310.0050.02414.93
5.4.300.0030.03815.06
5.4.290.0020.04215.06
5.4.280.0030.04415.12
5.4.270.0080.03814.98
5.4.260.0130.03414.94
5.4.250.0080.03415.08
5.4.240.0050.03915.10
5.4.230.0020.03115.03
5.4.220.0090.03914.99
5.4.210.0050.03615.01
5.4.200.0080.04215.04
5.4.190.0060.03815.14
5.4.180.0020.04715.00
5.4.170.0120.03515.03
5.4.160.0050.02714.96
5.4.150.0070.02814.97
5.4.140.0120.01713.70
5.4.130.0080.02513.64
5.4.120.0110.03413.70
5.4.110.0050.04013.69
5.4.100.0050.04313.71
5.4.90.0050.04313.76
5.4.80.0080.03513.79
5.4.70.0070.02213.64
5.4.60.0030.02613.68
5.4.50.0110.03813.70
5.4.40.0090.02013.70
5.4.30.0020.02413.69
5.4.20.0100.03513.76
5.4.10.0030.03713.65
5.4.00.0130.03513.52
5.3.290.0090.03612.93
5.3.280.0090.04012.82
5.3.270.0050.04012.82
5.3.260.0090.01812.79
5.3.250.0110.03612.83
5.3.240.0070.04012.77
5.3.230.0080.03812.79
5.3.220.0050.03912.82
5.3.210.0040.04512.80
5.3.200.0050.04312.82
5.3.190.0050.04012.78
5.3.180.0070.03312.80
5.3.170.0030.04312.75
5.3.160.0050.02412.77
5.3.150.0060.04312.79
5.3.140.0030.04212.76
5.3.130.0030.04312.87
5.3.120.0070.04212.78
5.3.110.0040.02412.77
5.3.100.0100.03212.49
5.3.90.0080.03812.48
5.3.80.0030.04412.54
5.3.70.0020.04212.52
5.3.60.0030.03812.44
5.3.50.0070.03012.47
5.3.40.0120.03412.48
5.3.30.0050.04212.45
5.3.20.0070.03012.39
5.3.10.0080.03712.33
5.3.00.0080.04012.32
5.2.170.0100.03711.15
5.2.160.0070.06311.29
5.2.150.0070.04011.10
5.2.140.0030.03310.96
5.2.130.0070.05311.04
5.2.120.0130.05711.02
5.2.110.0030.06711.11
5.2.100.0000.05711.07
5.2.90.0070.06310.88
5.2.80.0070.05010.87
5.2.70.0030.04311.08
5.2.60.0030.06711.02
5.2.50.0000.06711.05
5.2.40.0070.05711.14
5.2.30.0100.03010.96
5.2.20.0030.02710.88
5.2.10.0100.02310.85
5.2.00.0030.02710.75
5.1.60.0030.02310.11
5.1.50.0030.02310.11
5.1.40.0030.02710.11
5.1.30.0030.02310.34
5.1.20.0000.02710.40
5.1.10.0000.02710.12
5.1.00.0000.02710.11
5.0.50.0000.02310.11
5.0.40.0030.01710.11
5.0.30.0030.02710.11
5.0.20.0030.01710.11
5.0.10.0030.01710.11
5.0.00.0000.03010.11
4.4.90.0030.03710.11
4.4.80.0000.03310.11
4.4.70.0000.02010.11
4.4.60.0000.01710.11
4.4.50.0000.02010.11
4.4.40.0000.02310.11
4.4.30.0000.01710.11
4.4.20.0030.01310.11
4.4.10.0000.02010.11
4.4.00.0030.02010.11
4.3.110.0000.01710.11
4.3.100.0000.01310.11
4.3.90.0000.01310.11
4.3.80.0000.02310.11
4.3.70.0030.01010.11
4.3.60.0000.01310.11
4.3.50.0030.01310.11
4.3.40.0000.04710.11
4.3.30.0000.01710.11
4.3.20.0030.01310.11
4.3.10.0000.01710.11
4.3.00.0000.01310.11

preferences:
48.22 ms | 401 KiB | 5 Q