3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassmapAutoloader { protected $classmap; public function __construct($classmap) { $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.00718.56
8.3.50.0120.00721.80
8.3.40.0120.00618.54
8.3.30.0080.00618.89
8.3.20.0070.00720.33
8.3.10.0040.00423.39
8.3.00.0080.00022.45
8.2.180.0070.00716.38
8.2.170.0110.01122.96
8.2.160.0070.01020.65
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00519.23
8.2.110.0060.00322.06
8.2.100.0090.00317.59
8.2.90.0000.00719.09
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0030.00617.87
8.2.30.0000.00917.81
8.2.20.0040.00417.52
8.2.10.0000.00717.62
8.2.00.0050.00217.43
8.1.280.0100.00325.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0090.00318.98
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.27
8.1.180.0000.00718.10
8.1.170.0050.00318.59
8.1.160.0040.00422.00
8.1.150.0090.00318.51
8.1.140.0060.00317.37
8.1.130.0000.00717.67
8.1.120.0000.00717.32
8.1.110.0000.00717.20
8.1.100.0040.00417.41
8.1.90.0050.00217.23
8.1.80.0040.00417.32
8.1.70.0040.00417.31
8.1.60.0000.00917.43
8.1.50.0030.00517.39
8.1.40.0060.00317.28
8.1.30.0050.00317.48
8.1.20.0000.00817.47
8.1.10.0050.00217.31
8.1.00.0060.00317.36
8.0.300.0070.00018.77
8.0.290.0040.00416.76
8.0.280.0040.00418.31
8.0.270.0000.00717.11
8.0.260.0080.00016.70
8.0.250.0030.00316.70
8.0.240.0000.00716.72
8.0.230.0000.00816.84
8.0.220.0000.00716.70
8.0.210.0000.00716.75
8.0.200.0000.00616.70
8.0.190.0000.00816.73
8.0.180.0030.00616.68
8.0.170.0000.00816.83
8.0.160.0000.00716.70
8.0.150.0040.00416.66
8.0.140.0050.00316.68
8.0.130.0000.00513.19
8.0.120.0000.00716.76
8.0.110.0040.00416.76
8.0.100.0040.00416.76
8.0.90.0070.00016.74
8.0.80.0140.00716.68
8.0.70.0070.00016.65
8.0.60.0040.00416.63
8.0.50.0040.00416.71
8.0.30.0150.00816.93
8.0.20.0140.00617.40
8.0.10.0030.00316.68
8.0.00.0130.01016.55
7.4.330.0050.00015.00
7.4.320.0000.00616.34
7.4.300.0030.00316.39
7.4.290.0070.00016.45
7.4.280.0080.00016.30
7.4.270.0070.00016.28
7.4.260.0000.00716.26
7.4.250.0000.00716.29
7.4.240.0050.00216.41
7.4.230.0030.00316.54
7.4.220.0060.01216.45
7.4.210.0090.00516.41
7.4.200.0040.00416.49
7.4.190.0050.00316.63
7.4.160.0000.01716.43
7.4.150.0120.01217.40
7.4.140.0160.00517.86
7.4.130.0080.01216.28
7.4.120.0140.00816.47
7.4.110.0100.00716.24
7.4.100.0130.00616.27
7.4.90.0060.00916.39
7.4.80.0120.00616.18
7.4.70.0120.00616.57
7.4.60.0100.00616.55
7.4.50.0080.00016.33
7.4.40.0100.00722.77
7.4.30.0130.00316.29
7.4.00.0070.00714.90
7.3.330.0000.00613.00
7.3.320.0030.00313.13
7.3.310.0040.00416.21
7.3.300.0030.00316.03
7.3.290.0000.01416.19
7.3.280.0080.00816.22
7.3.270.0170.00017.40
7.3.260.0180.00716.43
7.3.250.0090.00716.32
7.3.240.0060.01016.20
7.3.230.0100.01016.39
7.3.210.0100.00716.13
7.3.200.0120.01019.39
7.3.190.0100.00716.47
7.3.180.0060.00916.21
7.3.170.0060.00916.33
7.3.160.0150.00616.39
7.3.120.0160.00014.64
7.3.110.0100.00714.63
7.3.100.0090.00014.69
7.3.90.0030.01014.47
7.3.80.0070.00714.85
7.3.70.0100.00014.55
7.3.60.0070.00714.32
7.3.50.0040.01114.23
7.3.40.0040.01114.41
7.3.30.0030.01314.63
7.3.20.0090.00616.39
7.3.10.0060.00916.53
7.3.00.0110.00316.47
7.2.330.0070.01016.38
7.2.320.0110.00516.59
7.2.310.0090.00916.43
7.2.300.0030.01316.54
7.2.290.0130.00716.55
7.2.240.0040.01214.99
7.2.230.0040.00714.48
7.2.220.0060.01015.03
7.2.210.0040.01114.73
7.2.200.0140.00014.92
7.2.190.0030.01214.81
7.2.180.0060.01014.52
7.2.170.0070.00314.66
7.2.160.0040.01114.81
7.2.150.0110.00716.65
7.2.140.0070.01016.62
7.2.130.0060.01016.50
7.2.120.0090.00616.49
7.2.110.0030.01016.68
7.2.100.0090.00916.68
7.2.90.0040.01116.71
7.2.80.0100.00616.45
7.2.70.0060.00916.56
7.2.60.0100.00716.63
7.2.50.0060.00616.49
7.2.40.0030.01316.61
7.2.30.0090.00316.33
7.2.20.0000.01416.63
7.2.10.0000.01516.69
7.2.00.0060.00616.77
7.1.330.0070.00315.55
7.1.320.0030.00615.57
7.1.310.0070.00315.41
7.1.300.0000.01615.61
7.1.290.0040.00815.50
7.1.280.0070.00615.66
7.1.270.0080.00415.60
7.1.260.0080.00815.72
7.1.250.0070.00715.24
7.1.200.0080.00415.55
7.1.70.0000.00816.75
7.1.60.0120.01219.24
7.1.50.0090.01316.95
7.1.00.0070.08722.30
7.0.200.0040.00716.65
7.0.140.0100.06722.05
7.0.70.0030.04321.68
7.0.60.0030.04021.73
7.0.50.0000.04022.18
7.0.40.0000.03720.09
7.0.30.0070.04720.13
7.0.20.0030.04320.15
7.0.10.0030.04020.14
7.0.00.0000.04320.09
5.6.280.0070.06721.05
5.6.220.0000.04020.67
5.6.210.0070.04320.69
5.6.200.0000.04720.97
5.6.190.0030.04021.17
5.6.180.0030.04021.18
5.6.170.0030.04021.08
5.6.160.0000.04721.01
5.6.150.0030.03721.09
5.6.140.0030.04021.05
5.6.130.0000.05021.04
5.6.120.0100.07720.96
5.6.110.0130.07721.02
5.6.100.0130.08021.00
5.6.90.0070.08320.98
5.6.80.0000.05720.36
5.6.70.0100.04320.45
5.6.60.0070.05720.41
5.6.50.0100.07720.50
5.6.40.0000.06320.31
5.6.30.0100.08020.43
5.6.20.0000.06720.38
5.6.10.0030.07720.49
5.6.00.0030.04720.43
5.5.360.0070.05320.57
5.5.350.0100.07020.47
5.5.340.0070.07020.74
5.5.330.0030.03320.89
5.5.320.0030.04020.91
5.5.310.0000.03720.84
5.5.300.0030.03320.84
5.5.290.0000.04720.88
5.5.280.0100.07720.89
5.5.270.0070.08720.86
5.5.260.0030.08720.82
5.5.250.0030.08720.59
5.5.240.0030.05720.26
5.5.230.0070.06720.02
5.5.220.0070.04020.20
5.5.210.0030.07320.16
5.5.200.0030.05020.29
5.5.190.0100.05720.16
5.5.180.0100.07720.23
5.5.160.0000.08320.12
5.5.150.0070.07720.15
5.5.140.0000.08720.26
5.5.130.0070.06720.08
5.5.120.0070.05020.13
5.5.110.0000.04320.21
5.5.100.0100.07720.13
5.5.90.0000.05720.12
5.5.80.0070.05320.09
5.5.70.0100.07320.13
5.5.60.0030.05320.02
5.5.50.0000.08320.06
5.5.40.0000.06720.00
5.5.30.0130.07320.07
5.5.20.0030.08020.10
5.5.10.0030.08320.08
5.5.00.0030.06020.06
5.4.450.0000.04019.38
5.4.440.0070.08319.50
5.4.430.0030.07319.14
5.4.420.0070.07319.41
5.4.410.0000.08719.29
5.4.400.0030.06019.05
5.4.390.0000.06319.09
5.4.380.0030.05019.02
5.4.370.0100.06719.23
5.4.360.0100.07319.23
5.4.350.0000.08019.04
5.4.340.0030.07319.18
5.4.320.0000.07718.91
5.4.310.0030.04319.13
5.4.300.0030.04319.23
5.4.290.0070.04319.23
5.4.280.0030.07319.17
5.4.270.0030.04719.02
5.4.260.0000.04319.03
5.4.250.0070.06019.13
5.4.240.0130.06718.86
5.4.230.0030.04718.84
5.4.220.0070.07319.11
5.4.210.0070.06019.20
5.4.200.0030.03719.13
5.4.190.0030.05319.04
5.4.180.0030.08018.89
5.4.170.0070.07319.11
5.4.160.0030.07719.07
5.4.150.0000.04319.10
5.4.140.0030.07716.29
5.4.130.0030.07716.38
5.4.120.0100.05716.26
5.4.110.0000.08016.38
5.4.100.0000.07316.50
5.4.90.0070.07016.44
5.4.80.0100.03716.45
5.4.70.0070.05716.48
5.4.60.0070.07016.46
5.4.50.0030.07016.48
5.4.40.0030.07316.54
5.4.30.0030.07016.24
5.4.20.0030.06716.46
5.4.10.0030.04716.30
5.4.00.0030.04015.90
5.3.290.0070.06714.66
5.3.280.0100.06714.55
5.3.270.0030.07714.58
5.3.260.0070.05314.56
5.3.250.0000.04314.71
5.3.240.0030.04314.73
5.3.230.0030.06014.76
5.3.220.0030.05714.50
5.3.210.0030.06314.68
5.3.200.0030.07314.57
5.3.190.0070.07014.62
5.3.180.0070.07314.55
5.3.170.0030.07314.52
5.3.160.0000.08014.50
5.3.150.0030.05314.69
5.3.140.0030.06014.49
5.3.130.0070.07314.69
5.3.120.0000.05014.55
5.3.110.0000.05714.69
5.3.100.0070.04314.14
5.3.90.0000.05014.04
5.3.80.0100.04314.05
5.3.70.0030.06713.96
5.3.60.0000.05013.98
5.3.50.0030.04313.95
5.3.40.0000.07013.94
5.3.30.0000.07013.94
5.3.20.0000.08013.76
5.3.10.0030.07713.55
5.3.00.0070.07013.75
5.2.170.0030.06012.22
5.2.160.0000.06012.22
5.2.150.0000.05712.22
5.2.140.0000.06012.22
5.2.130.0030.04712.22
5.2.120.0100.03712.22
5.2.110.0100.05712.22
5.2.100.0070.05712.22
5.2.90.0100.06012.22
5.2.80.0000.06312.22
5.2.70.0000.06712.22
5.2.60.0030.05712.22
5.2.50.0000.06712.22
5.2.40.0030.05012.22
5.2.30.0030.06012.22
5.2.20.0100.05712.22
5.2.10.0030.05012.22
5.2.00.0030.06012.22
5.1.60.0030.05012.22
5.1.50.0070.05012.22
5.1.40.0000.05312.22
5.1.30.0030.05312.22
5.1.20.0000.05012.22
5.1.10.0000.06012.22
5.1.00.0000.05012.22
5.0.50.0000.04712.22
5.0.40.0030.04312.22
5.0.30.0000.06712.22
5.0.20.0000.04312.22
5.0.10.0000.04012.22
5.0.00.0030.05012.22
4.4.90.0030.02712.22
4.4.80.0030.02312.22
4.4.70.0000.03712.22
4.4.60.0030.03312.22
4.4.50.0030.03012.22
4.4.40.0000.05012.22
4.4.30.0000.03312.22
4.4.20.0000.03712.22
4.4.10.0030.03712.22
4.4.00.0000.05312.22
4.3.110.0000.03712.22
4.3.100.0070.03012.22
4.3.90.0030.03312.22
4.3.80.0030.05312.22
4.3.70.0000.03012.22
4.3.60.0070.03012.22
4.3.50.0000.02712.22
4.3.40.0070.04712.22
4.3.30.0070.03312.22
4.3.20.0030.03312.22
4.3.10.0070.03312.22
4.3.00.0000.03312.22

preferences:
62.72 ms | 401 KiB | 5 Q