3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassmapAutoloader { protected $classmap; public function __construct(array $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.0180.00018.18
8.3.50.0140.00621.93
8.3.40.0110.00418.71
8.3.30.0170.00018.59
8.3.20.0040.00418.48
8.3.10.0040.00420.96
8.3.00.0000.00823.48
8.2.180.0150.00416.38
8.2.170.0120.00322.96
8.2.160.0000.01420.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00021.00
8.2.110.0030.00719.30
8.2.100.0080.00417.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0000.00917.80
8.2.50.0030.00518.10
8.2.40.0000.00720.63
8.2.30.0070.00019.15
8.2.20.0070.00017.53
8.2.10.0050.00217.64
8.2.00.0000.01017.60
8.1.280.0150.00025.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.14
8.1.230.0110.00019.14
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.52
8.1.160.0070.00018.75
8.1.150.0070.00020.32
8.1.140.0000.00817.32
8.1.130.0070.00017.67
8.1.120.0040.00417.31
8.1.110.0040.00417.32
8.1.100.0000.00717.34
8.1.90.0040.00417.27
8.1.80.0000.00717.34
8.1.70.0000.00817.25
8.1.60.0060.00317.47
8.1.50.0000.00817.32
8.1.40.0080.00017.35
8.1.30.0040.00417.34
8.1.20.0060.00317.48
8.1.10.0040.00417.30
8.1.00.0000.00717.34
8.0.300.0060.00318.77
8.0.290.0050.00216.58
8.0.280.0000.00718.23
8.0.270.0030.00317.13
8.0.260.0000.00816.59
8.0.250.0050.00216.87
8.0.240.0040.00416.82
8.0.230.0000.00716.82
8.0.220.0090.00016.80
8.0.210.0000.00716.82
8.0.200.0040.00416.84
8.0.190.0000.00816.86
8.0.180.0070.00016.84
8.0.170.0030.00316.73
8.0.160.0030.00416.66
8.0.150.0030.00316.56
8.0.140.0050.00316.72
8.0.130.0000.00513.18
8.0.120.0000.00716.61
8.0.110.0040.00416.82
8.0.100.0030.00316.74
8.0.90.0040.00416.72
8.0.80.0150.00316.65
8.0.70.0000.00716.62
8.0.60.0070.00016.64
8.0.50.0040.00416.76
8.0.30.0100.01216.89
8.0.20.0130.00517.40
8.0.10.0040.00416.75
8.0.00.0040.01316.63
7.4.330.0050.00014.64
7.4.320.0030.00316.34
7.4.300.0060.00016.36
7.4.290.0030.00316.52
7.4.280.0000.00716.22
7.4.270.0000.00816.51
7.4.260.0000.00513.26
7.4.250.0040.00416.46
7.4.240.0080.00016.46
7.4.230.0030.00316.47
7.4.220.0150.00916.27
7.4.210.0100.01016.41
7.4.200.0000.00716.36
7.4.190.0030.00316.34
7.4.160.0100.01016.30
7.4.150.0120.01217.40
7.4.140.0120.00817.86
7.4.130.0090.01116.19
7.4.120.0080.00916.36
7.4.110.0060.01016.39
7.4.100.0090.00916.31
7.4.90.0130.01016.27
7.4.80.0130.00619.39
7.4.70.0090.00916.42
7.4.60.0100.00716.47
7.4.50.0000.00816.44
7.4.40.0070.01022.52
7.4.30.0040.01216.34
7.4.00.0070.00714.74
7.3.330.0000.00512.96
7.3.320.0000.00613.14
7.3.310.0080.00016.00
7.3.300.0000.00716.08
7.3.290.0120.00416.18
7.3.280.0090.00816.15
7.3.270.0110.00817.40
7.3.260.0130.01018.24
7.3.250.0140.00316.37
7.3.240.0130.00316.46
7.3.230.0080.00816.45
7.3.210.0130.00316.48
7.3.200.0050.01219.39
7.3.190.0130.00316.04
7.3.180.0110.00616.23
7.3.170.0100.00716.27
7.3.160.0080.00816.32
7.3.120.0100.00714.75
7.3.00.0060.00916.38
7.2.330.0030.01316.46
7.2.320.0070.01016.32
7.2.310.0120.00616.26
7.2.300.0060.01216.44
7.2.290.0150.01016.22
7.2.130.0070.00716.84
7.2.120.0030.00616.42
7.2.110.0070.00716.64
7.2.100.0050.00516.67
7.2.90.0030.01016.88
7.2.80.0090.00616.55
7.2.70.0030.01516.58
7.2.60.0050.00516.45
7.2.50.0070.00716.65
7.2.40.0030.01416.74
7.2.30.0100.00616.60
7.2.20.0100.00616.42
7.2.10.0100.00016.92
7.2.00.0020.01217.94
7.1.250.0060.00315.58
7.1.240.0000.00815.59
7.1.230.0050.00515.66
7.1.220.0030.01215.67
7.1.210.0070.00715.50
7.1.200.0090.00415.67
7.1.190.0060.00315.52
7.1.180.0060.00615.70
7.1.170.0090.00315.64
7.1.160.0070.00715.41
7.1.150.0000.01115.39
7.1.140.0040.00815.34
7.1.130.0100.00315.51
7.1.120.0040.00815.79
7.1.110.0150.00015.61
7.1.100.0060.00616.72
7.1.90.0030.00915.54
7.1.80.0100.00315.64
7.1.70.0040.00616.17
7.1.60.0100.00316.29
7.1.50.0030.01216.22
7.1.40.0100.00015.45
7.1.30.0060.00615.54
7.1.20.0070.00715.39
7.1.10.0030.00615.52
7.1.00.0090.03118.88
7.0.330.0060.00315.12
7.0.320.0040.00815.36
7.0.310.0060.00315.12
7.0.300.0000.00915.19
7.0.290.0060.00615.23
7.0.280.0000.00915.16
7.0.270.0030.01015.03
7.0.260.0040.00815.34
7.0.250.0040.00715.23
7.0.240.0030.00515.00
7.0.230.0090.00614.80
7.0.220.0090.00615.25
7.0.210.0000.00915.30
7.0.200.0030.00715.83
7.0.190.0000.00914.95
7.0.180.0000.00815.31
7.0.170.0070.00715.27
7.0.160.0110.00315.30
7.0.150.0080.00415.21
7.0.140.0020.04018.63
7.0.130.0090.00315.34
7.0.120.0000.00915.21
7.0.110.0080.01917.66
7.0.100.0100.01817.61
7.0.90.0070.02017.61
7.0.80.0120.01717.57
7.0.70.0100.02517.51
7.0.60.0030.02317.71
7.0.50.0080.02317.51
7.0.40.0020.02516.52
7.0.30.0080.02516.50
7.0.20.0040.02616.39
7.0.10.0030.02216.62
7.0.00.0050.02016.44
5.6.380.0040.01114.16
5.6.370.0070.00714.04
5.6.360.0100.00313.76
5.6.350.0070.01014.25
5.6.340.0080.00414.46
5.6.330.0070.00314.14
5.6.320.0040.00914.39
5.6.310.0060.00614.20
5.6.300.0100.00013.96
5.6.290.0070.00714.17
5.6.280.0050.04017.50
5.6.270.0090.00013.87
5.6.260.0070.02317.09
5.6.250.0070.02217.21
5.6.240.0020.02417.17
5.6.230.0020.02317.14
5.6.220.0030.03017.43
5.6.210.0030.02317.28
5.6.200.0020.02517.35
5.6.190.0060.02117.39
5.6.180.0070.02017.36
5.6.170.0020.02117.30
5.6.160.0030.02117.33
5.6.150.0050.02217.43
5.6.140.0120.01817.36
5.6.130.0050.01817.42
5.6.120.0030.02517.22
5.6.110.0050.02517.26
5.6.100.0000.02417.26
5.6.90.0070.01917.42
5.6.80.0060.02517.04
5.6.70.0050.02217.10
5.6.60.0060.01816.87
5.6.50.0070.02817.01
5.6.40.0100.01517.17
5.6.30.0050.01816.91
5.6.20.0030.02116.97
5.6.10.0070.02016.89
5.6.00.0060.02017.17
5.5.380.0050.01714.03
5.5.370.0060.02014.18
5.5.360.0030.02114.30
5.5.350.0030.01914.28
5.5.340.0000.02714.54
5.5.330.0030.02214.40
5.5.320.0050.02014.38
5.5.310.0020.02214.58
5.5.300.0040.02114.31
5.5.290.0090.02414.40
5.5.280.0070.01514.72
5.5.270.0030.02314.46
5.5.260.0000.02814.46
5.5.250.0060.01814.29
5.5.240.0030.02314.26
5.5.230.0020.02214.24
5.5.220.0030.02013.96
5.5.210.0030.01814.13
5.5.200.0040.01914.13
5.5.190.0060.02014.16
5.5.180.0030.01913.98
5.5.170.0060.00611.00
5.5.160.0070.01814.17
5.5.150.0040.01814.28
5.5.140.0030.02214.22
5.5.130.0020.02014.06
5.5.120.0020.02314.09
5.5.110.0060.01614.13
5.5.100.0050.02014.02
5.5.90.0020.01813.90
5.5.80.0030.01814.05
5.5.70.0000.02014.12
5.5.60.0030.01814.09
5.5.50.0040.02013.89
5.5.40.0080.01814.01
5.5.30.0040.02013.90
5.5.20.0020.02414.05
5.5.10.0030.02114.16
5.5.00.0050.01814.20
5.4.450.0050.02215.19
5.4.440.0090.01714.96
5.4.430.0040.02215.06
5.4.420.0030.02515.15
5.4.410.0020.02215.04
5.4.400.0070.01714.89
5.4.390.0100.01314.97
5.4.380.0070.01715.03
5.4.370.0040.02014.96
5.4.360.0040.02114.97
5.4.350.0070.01715.00
5.4.340.0070.01614.95
5.4.330.0000.00610.63
5.4.320.0080.02214.88
5.4.310.0050.02014.94
5.4.300.0000.02014.89
5.4.290.0060.01514.96
5.4.280.0020.02014.91
5.4.270.0030.01914.99
5.4.260.0000.02314.98
5.4.250.0020.02215.01
5.4.240.0050.01514.96
5.4.230.0080.01514.88
5.4.220.0050.01914.79
5.4.210.0030.02014.71
5.4.200.0020.02514.92
5.4.190.0000.02014.83
5.4.180.0020.02014.96
5.4.170.0030.02114.79
5.4.160.0070.01814.95
5.4.150.0070.01614.95
5.4.140.0020.02113.56
5.4.130.0080.01713.54
5.4.120.0040.01613.68
5.4.110.0000.02013.38
5.4.100.0000.02013.68
5.4.90.0000.02513.61
5.4.80.0030.02113.59
5.4.70.0030.01813.73
5.4.60.0050.01713.58
5.4.50.0000.02013.64
5.4.40.0080.01513.62
5.4.30.0000.02113.58
5.4.20.0070.01313.56
5.4.10.0050.02013.55
5.4.00.0030.02013.46
5.3.290.0070.01512.58
5.3.280.0030.02012.46
5.3.270.0050.02112.35
5.3.260.0080.01512.44
5.3.250.0030.02012.55
5.3.240.0020.02212.49
5.3.230.0030.01812.40
5.3.220.0030.01812.36
5.3.210.0030.02012.48
5.3.200.0040.01712.38
5.3.190.0030.01712.50
5.3.180.0020.01812.41
5.3.170.0040.01512.45
5.3.160.0020.01812.52
5.3.150.0030.02012.60
5.3.140.0030.02012.52
5.3.130.0020.02112.43
5.3.120.0050.01812.46
5.3.110.0030.01812.48
5.3.100.0030.02112.25
5.3.90.0030.02012.16
5.3.80.0020.01912.12
5.3.70.0050.01712.17
5.3.60.0040.01612.14
5.3.50.0060.01612.04
5.3.40.0020.02012.10
5.3.30.0030.01512.08
5.3.20.0040.01511.85
5.3.10.0000.01911.85
5.3.00.0000.02211.81
5.2.170.0030.01510.96
5.2.160.0030.01510.96
5.2.150.0050.02210.96
5.2.140.0050.01510.96
5.2.130.0040.01410.96
5.2.120.0050.01710.96
5.2.110.0000.01810.96
5.2.100.0020.01610.96
5.2.90.0030.01310.96
5.2.80.0020.01710.96
5.2.70.0030.01410.96
5.2.60.0020.02110.96
5.2.50.0050.01310.96
5.2.40.0050.01210.96
5.2.30.0030.01510.96
5.2.20.0030.01510.96
5.2.10.0040.01310.96
5.2.00.0020.01410.96
5.1.60.0020.01410.96
5.1.50.0030.00910.96
5.1.40.0020.01210.96
5.1.30.0050.01210.96
5.1.20.0010.01310.96
5.1.10.0040.01210.96
5.1.00.0030.01110.96
5.0.50.0030.01010.96
5.0.40.0030.00810.96
5.0.30.0070.01310.96
5.0.20.0020.01010.96
5.0.10.0030.00710.96
5.0.00.0030.01810.96
4.4.90.0010.00810.96
4.4.80.0020.01010.96
4.4.70.0000.00810.96
4.4.60.0010.00810.96
4.4.50.0000.00910.96
4.4.40.0050.00810.96
4.4.30.0020.00810.96
4.4.20.0020.02010.96
4.4.10.0020.00810.96
4.4.00.0050.01010.96
4.3.110.0050.00710.96
4.3.100.0030.00710.96
4.3.90.0000.01010.96
4.3.80.0030.01210.96
4.3.70.0020.00810.96
4.3.60.0020.01010.96
4.3.50.0020.00810.96
4.3.40.0010.01110.96
4.3.30.0000.01010.96
4.3.20.0030.00810.96
4.3.10.0010.00810.96
4.3.00.0030.00810.96

preferences:
45 ms | 401 KiB | 5 Q