3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassmapAutoloader { protected $classmap; public function __construct(array $classmap = array()) { $this->classmap = array_change_key_case($classmap); spl_autoload_register('self::loadClass'); } public function addClassmap(array $classmap) { $this->classmap = array_merge($this->classmap, array_change_key_case($classmap)); } protected function loadClass($class_name) { $class_name = strtolower($class_name); if(isset($this->classmap[$class_name])) include $this->classmap[$class_name]; } } ?>

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.0140.00016.38
8.3.50.0100.00618.32
8.3.40.0150.00618.71
8.3.30.0070.00718.54
8.3.20.0040.00418.47
8.3.10.0080.00020.32
8.3.00.0040.00417.25
8.2.180.0130.00316.38
8.2.170.0120.00322.96
8.2.160.0100.00320.41
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.64
8.2.110.0000.00921.00
8.2.100.0080.00317.72
8.2.90.0080.00018.03
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.66
8.2.50.0050.00318.07
8.2.40.0080.00018.03
8.2.30.0000.00717.85
8.2.20.0070.00017.40
8.2.10.0000.00717.41
8.2.00.0040.00417.43
8.1.280.0090.00925.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0080.00022.05
8.1.230.0080.00421.03
8.1.220.0040.00417.74
8.1.210.0100.00018.77
8.1.200.0090.00417.23
8.1.190.0030.00517.11
8.1.180.0040.00418.10
8.1.170.0050.00318.73
8.1.160.0000.00718.74
8.1.150.0050.00218.46
8.1.140.0050.00217.34
8.1.130.0000.00717.67
8.1.120.0000.00717.36
8.1.110.0080.00017.25
8.1.100.0000.00717.25
8.1.90.0030.00317.31
8.1.80.0030.00317.22
8.1.70.0000.00817.25
8.1.60.0040.00417.42
8.1.50.0000.00717.24
8.1.40.0000.00817.42
8.1.30.0070.00017.43
8.1.20.0030.00617.58
8.1.10.0050.00217.27
8.1.00.0030.00617.36
8.0.300.0070.00320.16
8.0.290.0040.00416.63
8.0.280.0000.00718.25
8.0.270.0030.00317.09
8.0.260.0030.00316.57
8.0.250.0050.00316.76
8.0.240.0040.00416.79
8.0.230.0070.00016.73
8.0.220.0020.00516.73
8.0.210.0070.00016.72
8.0.200.0000.00716.86
8.0.190.0070.00016.81
8.0.180.0040.00416.82
8.0.170.0030.00716.74
8.0.160.0040.00416.74
8.0.150.0000.00716.67
8.0.140.0030.00916.77
8.0.130.0000.00513.23
8.0.120.0030.00316.83
8.0.110.0050.00316.71
8.0.100.0080.00016.70
8.0.90.0000.00716.77
8.0.80.0040.01116.71
8.0.70.0000.00716.65
8.0.60.0000.00716.63
8.0.50.0050.00216.63
8.0.30.0100.00817.04
8.0.20.0120.00716.78
8.0.10.0040.00416.91
8.0.00.0130.00516.58
7.4.330.0020.00212.85
7.4.320.0030.00316.47
7.4.300.0000.00616.32
7.4.290.0030.00316.39
7.4.280.0000.00916.35
7.4.270.0060.00016.48
7.4.260.0000.00513.20
7.4.250.0030.00516.26
7.4.240.0000.00816.38
7.4.230.0040.00316.42
7.4.220.0120.00616.24
7.4.210.0100.00716.39
7.4.200.0070.00016.26
7.4.190.0030.00316.54
7.4.160.0150.00016.63
7.4.150.0160.00616.34
7.4.140.0180.01716.24
7.4.130.0100.00816.34
7.4.120.0120.00416.32
7.4.110.0060.01216.15
7.4.100.0100.00616.27
7.4.90.0100.01016.37
7.4.80.0140.00316.38
7.4.70.0100.00616.27
7.4.60.0030.01316.32
7.4.50.0030.00616.29
7.4.40.0060.00916.48
7.4.30.0090.00616.53
7.4.00.0030.01414.99
7.3.330.0030.00313.25
7.3.320.0030.00313.16
7.3.310.0070.00016.27
7.3.300.0040.00416.19
7.3.290.0090.00616.19
7.3.280.0070.01116.20
7.3.270.0140.00416.08
7.3.260.0100.00716.14
7.3.250.0140.00616.33
7.3.240.0030.01316.16
7.3.230.0060.01116.11
7.3.210.0100.00716.48
7.3.200.0070.01419.39
7.3.190.0100.01016.29
7.3.180.0060.00916.23
7.3.170.0070.01016.30
7.3.160.0140.00616.46
7.3.120.0100.00614.67
7.2.330.0070.01116.39
7.2.320.0170.00316.54
7.2.310.0030.02116.30
7.2.300.0050.01116.43
7.2.290.0100.00716.30
7.2.00.0060.00919.21
7.1.100.0040.01117.91
7.1.70.0000.00816.67
7.1.60.0130.01019.40
7.1.50.0070.01416.96
7.1.00.0030.06322.43
7.0.200.0200.00314.47
7.0.140.0100.07022.18
7.0.120.0070.06022.19
7.0.60.0100.07019.92
7.0.50.0100.03317.87
7.0.40.0130.07020.02
7.0.30.0330.08020.16
7.0.20.0270.07320.07
7.0.10.0100.07720.23
7.0.00.0070.07020.23
5.6.280.0030.07320.91
5.6.210.0100.06320.72
5.6.200.0130.04318.27
5.6.190.0030.07320.61
5.6.180.3200.04320.61
5.6.170.0200.04320.55
5.6.160.0070.07720.57
5.6.150.0100.06318.23
5.6.140.0100.04318.19
5.6.130.0030.08018.14
5.6.120.0030.06021.03
5.6.110.0030.05020.96
5.6.100.0130.08020.98
5.6.90.0070.04021.12
5.6.80.0030.07020.41
5.6.70.2070.02720.52
5.5.350.0000.08720.31
5.5.340.0100.07718.01
5.5.330.0030.07720.32
5.5.320.0270.04020.25
5.5.310.0270.07720.32
5.5.300.0100.07717.99
5.5.290.0070.08317.94
5.5.280.0100.06720.88
5.5.270.0070.08720.80
5.5.260.0100.08020.87
5.5.250.0100.08020.71
5.5.240.0100.05320.27
5.4.450.0070.08019.48
5.4.440.0030.06319.32
5.4.430.0030.04719.17
5.4.420.0130.07319.46
5.4.410.0030.08019.44
5.4.400.0030.07019.08
5.4.390.0170.04019.12
5.4.380.0100.03319.01
5.4.370.0030.06319.08
5.4.360.0070.07319.24
5.4.350.0130.06019.25
5.4.340.0130.06019.20
5.4.320.0100.06719.16
5.4.310.0070.06318.88
5.4.300.0130.06719.24
5.4.290.0070.06019.08
5.4.280.0070.06719.24
5.4.270.0100.06719.15
5.4.260.0030.07719.26
5.4.250.0100.07019.24
5.4.240.0030.07718.84
5.4.230.0030.07318.84
5.4.220.0070.08019.20
5.4.210.0070.07318.91
5.4.200.0130.06719.14
5.4.190.0000.06019.13
5.4.180.0100.03718.99
5.4.170.0030.04019.13
5.4.160.0070.08018.84
5.4.150.0070.07719.00
5.4.140.0130.06016.41
5.4.130.0170.06316.39
5.4.120.0070.07316.54
5.4.110.0000.04016.34
5.4.100.0100.03316.29
5.4.90.0070.03716.35
5.4.80.0030.03316.40
5.4.70.0100.02716.42
5.4.60.0000.03716.35
5.4.50.0030.03316.36
5.4.40.0000.03716.41
5.4.30.0030.03316.29
5.4.20.0000.03716.43
5.4.10.0000.04016.31
5.4.00.0030.03315.76
5.3.290.0030.05314.58
5.3.280.0070.05714.66
5.3.270.0100.04014.65
5.3.260.0070.06314.63
5.3.250.0070.07314.62
5.3.240.0100.05014.61
5.3.230.0070.05314.60
5.3.220.0030.04014.71
5.3.210.0070.03314.71
5.3.200.0030.03714.60
5.3.190.0030.03714.75
5.3.180.0070.03314.58
5.3.170.0000.04014.56
5.3.160.0030.03714.61
5.3.150.0030.04014.71
5.3.140.0000.03714.57
5.3.130.0000.04014.58
5.3.120.0070.06314.56
5.3.110.0030.03714.70
5.3.100.0000.04014.08
5.3.90.0000.03714.03
5.3.80.0030.03713.97
5.3.70.0000.03714.06
5.3.60.0070.03014.02
5.3.50.0000.03713.97
5.3.40.0000.03713.87
5.3.30.0100.02713.97
5.3.20.0000.04013.71
5.3.10.0030.03313.72
5.3.00.0000.03713.68
5.2.170.0070.02311.17
5.2.160.0000.03011.04
5.2.150.0030.02711.16
5.2.140.0000.03011.18
5.2.130.0030.02711.14
5.2.120.0000.03011.06
5.2.110.0070.02311.18
5.2.100.0030.02711.11
5.2.90.0000.03011.12
5.2.80.0000.03011.11
5.2.70.0000.03011.14
5.2.60.0000.03011.20
5.2.50.0000.03010.98
5.2.40.0000.03011.00
5.2.30.0070.04011.04
5.2.20.0000.03010.84
5.2.10.0030.02710.79
5.2.00.0130.03310.76
5.1.60.0030.02310.18
5.1.50.0000.02710.07
5.1.40.0000.02710.00
5.1.30.0000.03310.27
5.1.20.0030.02310.50
5.1.10.0030.02310.04
5.1.00.0130.0209.98
5.0.50.0000.0208.53
5.0.40.0100.0138.43
5.0.30.0000.0338.19
5.0.20.0030.0208.25
5.0.10.0030.0238.15
5.0.00.0030.0338.18
4.4.90.0000.0137.88
4.4.80.0000.0137.88
4.4.70.0030.0137.88
4.4.60.0000.0137.88
4.4.50.0030.0137.88
4.4.40.0000.0237.88
4.4.30.0000.0177.88
4.4.20.0000.0177.88
4.4.10.0000.0177.88
4.4.00.0000.0237.88
4.3.110.0030.0207.88
4.3.100.0000.0237.88
4.3.90.0000.0137.88
4.3.80.0030.0507.88
4.3.70.0000.0277.88
4.3.60.0030.0277.88
4.3.50.0030.0377.88
4.3.40.0000.0577.88
4.3.30.0030.0137.88
4.3.20.0000.0407.88
4.3.10.0000.0177.88
4.3.00.0000.0177.88

preferences:
39.02 ms | 401 KiB | 5 Q