3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Settings{ protected static $settings = []; //in reality you load an ini file, or a php file or whatever. public static function load(){ self::$settings = [ 'db_user' => 'xantius', ]; } public static function get($key){ return self::$settings[$key]; } } //somewhere at initialization: Settings::load(); //and then anywhere: echo Settings::get('db_user');

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.0110.00416.50
8.3.50.0140.00018.07
8.3.40.0070.00718.79
8.3.30.0040.01118.84
8.3.20.0040.00421.89
8.3.10.0080.00023.66
8.3.00.0050.00319.68
8.2.180.0120.00918.11
8.2.170.0160.00018.79
8.2.160.0120.00622.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00426.16
8.2.120.0050.00220.85
8.2.110.0040.00420.21
8.2.100.0100.00317.91
8.2.90.0090.00019.34
8.2.80.0070.00017.97
8.2.70.0050.00317.75
8.2.60.0040.00418.04
8.2.50.0060.00318.10
8.2.40.0040.00720.58
8.2.30.0000.00719.27
8.2.20.0040.00418.18
8.2.10.0050.00318.06
8.2.00.0040.00418.07
8.1.280.0140.00725.92
8.1.270.0000.00818.82
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.07
8.1.230.0060.00619.14
8.1.220.0000.00817.79
8.1.210.0000.01018.77
8.1.200.0070.00717.13
8.1.190.0050.00317.25
8.1.180.0050.00318.10
8.1.170.0030.00618.66
8.1.160.0090.00019.09
8.1.150.0040.00418.74
8.1.140.0000.00719.56
8.1.130.0000.00817.38
8.1.120.0060.00317.39
8.1.110.0060.00317.42
8.1.100.0070.00017.44
8.1.90.0040.00417.39
8.1.80.0080.00317.42
8.1.70.0000.00717.33
8.1.60.0080.00017.55
8.1.50.0070.00017.46
8.1.40.0030.00517.43
8.1.30.0030.00517.66
8.1.20.0080.00017.70
8.1.10.0030.00617.61
8.1.00.0040.00417.38
8.0.300.0070.00019.81
8.0.290.0040.00416.75
8.0.280.0070.00018.41
8.0.270.0030.00317.23
8.0.260.0060.00016.79
8.0.250.0070.00016.88
8.0.240.0040.00416.96
8.0.230.0000.00716.83
8.0.220.0080.00016.86
8.0.210.0070.00016.84
8.0.200.0030.00616.80
8.0.190.0060.00316.92
8.0.180.0070.00016.89
8.0.170.0070.00016.84
8.0.160.0030.00416.72
8.0.150.0070.00016.70
8.0.140.0070.00016.70
8.0.130.0060.00013.27
8.0.120.0040.00416.74
8.0.110.0020.00516.89
8.0.100.0070.00016.77
8.0.90.0040.00416.73
8.0.80.0120.00616.88
8.0.70.0040.00416.73
8.0.60.0040.00416.84
8.0.50.0000.00716.83
8.0.30.0090.01117.04
8.0.20.0100.00917.40
8.0.10.0000.00716.94
8.0.00.0090.00616.60
7.4.330.0050.00015.55
7.4.320.0070.00016.44
7.4.300.0030.00316.52
7.4.290.0030.00316.51
7.4.280.0050.00316.49
7.4.270.0060.00016.62
7.4.260.0000.00616.35
7.4.250.0040.00416.56
7.4.240.0000.00816.53
7.4.230.0060.00016.61
7.4.220.0030.00316.51
7.4.210.0030.01116.70
7.4.200.0030.00316.58
7.4.160.0070.01116.35
7.4.150.0110.00717.40
7.4.140.0110.00917.86
7.4.130.0110.00816.43
7.4.120.0060.01416.46
7.4.110.0100.01316.68
7.4.100.0060.01016.52
7.4.90.0110.01116.29
7.4.80.0150.00319.39
7.4.70.0170.00516.41
7.4.60.0130.00316.75
7.4.50.0060.01016.23
7.4.40.0120.00916.41
7.4.30.0160.00016.68
7.4.00.0070.01015.00
7.3.330.0030.00313.46
7.3.320.0000.00513.35
7.3.310.0060.00316.21
7.3.300.0000.00616.37
7.3.290.0090.00416.32
7.3.280.0080.00816.30
7.3.270.0060.01117.40
7.3.260.0120.00516.44
7.3.250.0080.01016.39
7.3.240.0170.00316.36
7.3.230.0090.01016.36
7.3.210.0070.01016.63
7.3.200.0090.00816.47
7.3.190.0130.00716.49
7.3.180.0060.01016.38
7.3.170.0090.00916.39
7.3.160.0030.01316.52
7.3.120.0000.01514.82
7.3.110.0030.01214.80
7.3.100.0040.00714.90
7.3.90.0060.00614.81
7.3.80.0100.00014.95
7.3.70.0090.00014.68
7.3.60.0070.00714.57
7.3.50.0030.01115.02
7.3.40.0040.01114.63
7.3.30.0030.00614.95
7.3.20.0000.01116.61
7.3.10.0030.01016.65
7.3.00.0000.01116.61
7.2.330.0080.00816.68
7.2.320.0140.00316.85
7.2.310.0120.00916.78
7.2.300.0090.00916.70
7.2.290.0100.00716.75
7.2.240.0030.00715.19
7.2.230.0030.00814.91
7.2.220.0000.00914.96
7.2.210.0090.00614.95
7.2.200.0040.01114.97
7.2.190.0030.01014.64
7.2.180.0060.00614.98
7.2.170.0070.01115.02
7.2.160.0000.01415.15
7.2.150.0040.01416.79
7.2.140.0090.00316.78
7.2.130.0100.00316.80
7.2.120.0070.00716.79
7.2.110.0030.00616.70
7.2.100.0040.01116.99
7.2.90.0000.01416.72
7.2.80.0070.00316.93
7.2.70.0030.01316.92
7.2.60.0070.00616.93
7.2.50.0030.00716.84
7.2.40.0120.00316.84
7.2.30.0060.01016.72
7.2.20.0060.00316.72
7.2.10.0060.00916.70
7.2.00.0060.00916.91
7.1.330.0070.01015.42
7.1.320.0000.01315.66
7.1.310.0040.01115.58
7.1.300.0040.01115.87
7.1.290.0040.01115.66
7.1.280.0070.00415.64
7.1.270.0000.00815.76
7.1.260.0080.00015.88
7.1.250.0000.01315.41
7.1.200.0070.00715.79
7.1.70.0070.00716.95
7.1.60.1330.01332.93
7.1.50.1370.00732.93
7.1.40.1700.01332.52
7.1.30.1700.01332.38
7.1.20.0970.00732.75
7.1.10.0700.01714.51
7.1.00.1100.01014.55
7.0.200.1830.01714.52
7.0.190.0970.02014.73
7.0.180.1370.02314.32
7.0.170.1800.01314.43
7.0.160.1000.01014.43
7.0.150.0630.01014.30
7.0.140.1130.01314.31
7.0.130.1300.00314.48
7.0.120.0630.01714.42
7.0.110.1000.01314.25
7.0.100.1070.00714.34
7.0.90.1030.00314.29
7.0.80.0700.01014.33
7.0.70.0900.01014.38
7.0.60.0930.01314.34
7.0.50.0700.01014.14
7.0.40.0700.00714.48
7.0.30.0730.00314.51
7.0.20.0630.00714.45
7.0.10.0700.01014.42
7.0.00.0700.01314.45

preferences:
61.82 ms | 400 KiB | 5 Q