3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Registry { public static $user; public static $DB; public static $config; public static $user_data; private static $initialized = FALSE; public static function init($config) { if (!registry::$initialized) { registry::$config = $config; registry::$DB = new db($config['mysql']); registry::$user = new user(); registry::$initialized = TRUE; } else { throw new Exception('Registry has already been initialized.'); } } } $a = Registry;

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.70.0120.00916.63
8.3.60.0070.00716.75
8.3.50.0070.00922.10
8.3.40.0150.00618.84
8.3.30.0110.00419.05
8.3.20.0000.00720.51
8.3.10.0050.00320.48
8.3.00.0070.01119.38
8.2.180.0120.00418.16
8.2.170.0070.00722.96
8.2.160.0100.00320.29
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0050.00320.93
8.2.110.0060.00322.12
8.2.100.0060.00717.72
8.2.90.0040.00419.01
8.2.80.0030.00517.97
8.2.70.0040.00417.46
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0000.00918.16
8.2.30.0050.00319.46
8.2.20.0040.00417.66
8.2.10.0050.00318.12
8.2.00.0050.00317.64
8.1.280.0100.00725.92
8.1.270.0060.00322.10
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00023.76
8.1.230.0030.00719.06
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0030.00617.23
8.1.180.0080.00018.10
8.1.170.0060.00318.59
8.1.160.0030.00521.93
8.1.150.0050.00318.81
8.1.140.0040.00417.32
8.1.130.0030.00317.70
8.1.120.0050.00317.43
8.1.110.0040.00417.44
8.1.100.0040.00417.36
8.1.90.0040.00417.41
8.1.80.0000.00817.41
8.1.70.0000.00717.27
8.1.60.0050.00517.53
8.1.50.0030.00517.34
8.1.40.0000.00817.34
8.1.30.0000.00917.46
8.1.20.0060.00317.53
8.1.10.0050.00317.44
8.1.00.0030.00517.46
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0070.00018.31
8.0.270.0000.00817.19
8.0.260.0000.00717.13
8.0.250.0030.00616.99
8.0.240.0000.00617.01
8.0.230.0030.00316.98
8.0.220.0070.00017.01
8.0.210.0000.00716.93
8.0.200.0060.00017.08
8.0.190.0000.00816.88
8.0.180.0050.00216.86
8.0.170.0080.00016.90
8.0.160.0040.00416.95
8.0.150.0090.00016.80
8.0.140.0040.00416.96
8.0.130.0050.00013.37
8.0.120.0040.00416.82
8.0.110.0040.00416.78
8.0.100.0070.00016.85
8.0.90.0040.00417.07
8.0.80.0110.00416.99
8.0.70.0030.00616.76
8.0.60.0070.00016.93
8.0.50.0000.00816.90
8.0.30.0110.00916.89
8.0.20.0130.00617.40
8.0.10.0070.00016.87
8.0.00.0120.00816.74
7.4.330.0060.00015.00
7.4.320.0050.00316.48
7.4.300.0060.00016.51
7.4.290.0000.00716.61
7.4.280.0030.00316.44
7.4.270.0070.00016.65
7.4.260.0030.00316.61
7.4.250.0000.00716.44
7.4.240.0000.00716.57
7.4.230.0000.00716.62
7.4.220.0130.00716.59
7.4.210.0100.00316.45
7.4.200.0000.00716.60
7.4.160.0140.00716.30
7.4.150.0140.00417.40
7.4.140.0140.00317.86
7.4.130.0100.00616.60
7.4.120.0120.00516.51
7.4.110.0130.00316.69
7.4.100.0130.00716.58
7.4.90.0110.00616.47
7.4.80.0040.01619.39
7.4.70.0100.00716.51
7.4.60.0070.01116.50
7.4.50.0000.00816.70
7.4.40.0090.00916.46
7.4.30.0040.01416.59
7.4.00.0070.01014.75
7.3.330.0000.00513.16
7.3.320.0030.00313.24
7.3.310.0000.00716.17
7.3.300.0000.00616.23
7.3.290.0120.00616.26
7.3.280.0060.01016.24
7.3.270.0060.01217.40
7.3.260.0080.00816.36
7.3.250.0110.00516.50
7.3.240.0110.00816.34
7.3.230.0030.01316.39
7.3.210.0150.00316.48
7.3.200.0090.01219.39
7.3.190.0170.00016.41
7.3.180.0040.01116.36
7.3.170.0110.00716.40
7.3.160.0060.00916.34
7.2.330.0160.00316.60
7.2.320.0080.00816.54
7.2.310.0140.00416.29
7.2.300.0040.01316.57
7.2.290.0130.00316.44
7.2.110.0030.01016.41
7.2.100.0040.00716.45
7.2.90.0030.01016.30
7.2.80.0100.00616.44
7.2.70.0100.00716.54
7.2.60.0070.00716.62
7.2.50.0050.00916.78
7.2.40.0030.01416.51
7.2.30.0120.00316.80
7.2.20.0070.01016.62
7.2.10.0000.01616.73
7.2.00.0080.00618.03
7.1.230.0080.00415.34
7.1.220.0110.00415.53
7.1.210.0060.01015.61
7.1.200.0030.00915.66
7.1.190.0100.00315.43
7.1.180.0070.00715.27
7.1.170.0030.00915.67
7.1.160.0030.01315.68
7.1.150.0030.01015.41
7.1.140.0090.00315.51
7.1.130.0060.00615.66
7.1.120.0090.00615.45
7.1.110.0040.01115.68
7.1.100.0030.01015.57
7.1.90.0030.01015.53
7.1.80.0000.01215.56
7.1.70.0000.01116.23
7.1.60.0120.00617.63
7.1.50.0080.01316.22
7.1.40.0110.00315.62
7.1.30.0070.01115.53
7.1.20.0070.01115.84
7.1.10.0390.00715.61
7.1.00.0180.04418.81
7.0.310.0040.01115.33
7.0.300.0040.01115.11
7.0.290.0000.01415.30
7.0.280.0000.01515.07
7.0.270.0070.00715.17
7.0.260.0090.00614.91
7.0.250.0000.01515.09
7.0.240.0000.01415.33
7.0.230.0040.00815.12
7.0.220.0000.01315.21
7.0.210.0060.00615.01
7.0.200.0200.00614.82
7.0.190.0090.00615.32
7.0.180.0040.01215.13
7.0.170.0100.00315.06
7.0.160.0000.01115.28
7.0.150.0180.01415.22
7.0.140.0140.04318.61
7.0.130.0230.00615.04
7.0.120.0430.00715.18
7.0.110.0420.00814.92
7.0.100.0220.03717.69
7.0.90.0140.04417.54
7.0.80.0110.03817.39
7.0.70.0090.02917.59
7.0.60.0090.02817.53
7.0.50.0090.02717.81
7.0.40.0100.02116.77
7.0.30.0110.02316.73
7.0.20.0150.04016.56
7.0.10.0100.03016.58
7.0.00.0100.04216.63
5.6.380.0030.01014.14
5.6.370.0090.00913.81
5.6.360.0220.00314.32
5.6.350.0090.01414.28
5.6.340.0210.00713.93
5.6.330.0150.00614.21
5.6.320.0130.01314.00
5.6.310.0150.00914.20
5.6.300.0320.01314.28
5.6.290.0280.01214.16
5.6.280.0140.04317.52
5.6.270.0310.00714.19
5.6.260.0250.00413.95
5.6.250.0170.02717.63
5.6.240.0080.05017.39
5.6.230.0130.04417.48
5.6.220.0060.02917.57
5.6.210.0070.03517.43
5.6.200.0120.02417.73
5.6.190.0140.02717.71
5.6.180.0160.01917.51
5.6.170.0160.02117.58
5.6.160.0150.02217.63
5.6.150.0070.02517.50
5.6.140.0120.02117.61
5.6.130.0070.03017.56
5.6.120.0110.02617.65
5.6.110.0090.02417.64
5.6.100.0180.01817.70
5.6.90.0140.02117.78
5.6.80.0180.01517.35
5.6.70.0090.02817.30
5.6.60.0130.02317.21
5.6.50.0090.02517.22
5.6.40.0120.03617.37
5.6.30.0100.03017.19
5.6.20.0110.02517.35
5.6.10.0140.01717.41
5.6.00.0180.03717.30
5.5.380.0050.04015.75
5.5.370.0140.03715.73
5.5.360.0110.03715.68
5.5.350.0100.02415.59
5.5.340.0090.02315.95
5.5.330.0070.03115.86
5.5.320.0090.02915.88
5.5.310.0050.03615.81
5.5.300.0060.02615.93
5.5.290.0140.03215.99
5.5.280.0090.02215.89
5.5.270.0050.02716.08
5.5.260.0070.02215.94
5.5.250.0070.03715.78
5.5.240.0090.02515.60
5.5.230.0070.02215.47
5.5.220.0100.02215.46
5.5.210.0110.02815.54
5.5.200.0090.01815.64
5.5.190.0060.02815.67
5.5.180.0090.02215.68
5.5.170.0110.01113.74
5.5.160.0080.04215.61
5.5.150.0040.03415.62
5.5.140.0120.01715.58
5.5.130.0080.04415.43
5.5.120.0110.02915.52
5.5.110.0090.04015.46
5.5.100.0080.04315.59
5.5.90.0100.03815.48
5.5.80.0110.03915.49
5.5.70.0100.04015.51
5.5.60.0100.03915.44
5.5.50.0070.04415.51
5.5.40.0110.03115.50
5.5.30.0110.04015.51
5.5.20.0090.04115.47
5.5.10.0060.02815.54
5.5.00.0110.04215.49
5.4.450.0120.02014.98
5.4.440.0050.02415.18
5.4.430.0080.02115.06
5.4.420.0080.02014.89
5.4.410.0090.01815.18
5.4.400.0030.02515.08
5.4.390.0070.01815.11
5.4.380.0080.02014.88
5.4.370.0090.01615.00
5.4.360.0100.01815.10
5.4.350.0070.02115.05
5.4.340.0050.02214.93
5.4.330.0090.00910.91
5.4.320.0090.01815.12
5.4.310.0090.02014.98
5.4.300.0050.03214.85
5.4.290.0060.04315.01
5.4.280.0090.04114.92
5.4.270.0120.01815.13
5.4.260.0170.02815.02
5.4.250.0130.03314.86
5.4.240.0130.03514.92
5.4.230.0130.03215.03
5.4.220.0100.04014.98
5.4.210.0060.04314.98
5.4.200.0110.03814.91
5.4.190.0040.03715.09
5.4.180.0080.04014.86
5.4.170.0050.03015.04
5.4.160.0080.02914.98
5.4.150.0140.03015.09
5.4.140.0070.03813.64
5.4.130.0090.03713.73
5.4.120.0080.04213.69
5.4.110.0060.04213.71
5.4.100.0090.04313.81
5.4.90.0080.04213.72
5.4.80.0060.02613.69
5.4.70.0070.03813.69
5.4.60.0080.03713.64
5.4.50.0090.03613.55
5.4.40.0070.03813.67
5.4.30.0120.03313.61
5.4.20.0110.02813.63
5.4.10.0060.03813.52
5.4.00.0070.04113.24
5.3.290.0050.02512.52
5.3.280.0060.04312.59
5.3.270.0060.04312.58
5.3.260.0060.04112.55
5.3.250.0050.03912.62
5.3.240.0080.04012.55
5.3.230.0160.02912.54
5.3.220.0110.03712.49
5.3.210.0070.03812.47
5.3.200.0030.04112.47
5.3.190.0110.04012.56
5.3.180.0120.03712.67
5.3.170.0110.03712.54
5.3.160.0080.04112.52
5.3.150.0100.03512.47
5.3.140.0100.03412.58
5.3.130.0080.03912.50
5.3.120.0090.04012.60
5.3.110.0090.04212.48
5.3.100.0090.03912.28
5.3.90.0100.04212.23
5.3.80.0080.04012.19
5.3.70.0100.03812.22
5.3.60.0100.03712.20
5.3.50.0020.04312.20
5.3.40.0110.03612.17
5.3.30.0080.04012.11
5.3.20.0100.03612.04
5.3.10.0090.03012.04
5.3.00.0130.03311.97
5.2.170.0070.03310.81
5.2.160.0100.03010.77
5.2.150.0140.02210.78
5.2.140.0080.03110.79
5.2.130.0110.01910.67
5.2.120.0060.03210.76
5.2.110.0090.03010.70
5.2.100.0050.03610.80
5.2.90.0070.03510.69
5.2.80.0050.03510.77
5.2.70.0080.03010.69
5.2.60.0040.03210.73
5.2.50.0060.03110.71
5.2.40.0020.03510.74
5.2.30.0020.03410.74
5.2.20.0070.03210.65
5.2.10.0060.03110.58
5.2.00.0030.02610.58
5.1.60.0070.02910.22
5.1.50.0060.02910.21
5.1.40.0080.02710.22
5.1.30.0060.02810.32
5.1.20.0070.03110.40
5.1.10.0020.03610.28
5.1.00.0030.02510.27
5.0.50.0050.0189.84
5.0.40.0050.0209.84
5.0.30.0050.0339.84
5.0.20.0050.0229.84
5.0.10.0030.0189.84
5.0.00.0040.0349.84
4.4.90.0050.0189.84
4.4.80.0050.0199.84
4.4.70.0060.0169.84
4.4.60.0040.0209.84
4.4.50.0000.0229.84
4.4.40.0040.0299.84
4.4.30.0040.0209.84
4.4.20.0030.0219.84
4.4.10.0030.0189.84
4.4.00.0020.0319.84
4.3.110.0050.0179.84
4.3.100.0020.0219.84
4.3.90.0050.0139.84
4.3.80.0050.0279.84
4.3.70.0030.0199.84
4.3.60.0040.0159.84
4.3.50.0050.0149.84
4.3.40.0050.0279.84
4.3.30.0020.0209.84
4.3.20.0040.0169.84
4.3.10.0040.0189.84
4.3.00.0020.0139.84

preferences:
47.35 ms | 401 KiB | 5 Q