3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * This file is the entry point for the resource loader. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file * @author Roan Kattouw * @author Trevor Parscal */ use MediaWiki\Logger\LoggerFactory; // Bail on old versions of PHP, or if composer has not been run yet to install // dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; wfEntryPointCheck( 'load.php' ); require __DIR__ . '/includes/WebStart.php'; // URL safety checks if ( !$wgRequest->checkUrlExtension() ) { return; } // Respond to resource loading request. // foo()->bar() syntax is not supported in PHP4, and this file needs to *parse* in PHP4. $configFactory = ConfigFactory::getDefaultInstance(); $resourceLoader = new ResourceLoader( $configFactory->makeConfig( 'main' ), LoggerFactory::getInstance( 'resourceloader' ) ); $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) ); Profiler::instance()->setTemplated( true ); $mediawiki = new MediaWiki(); $mediawiki->doPostOutputShutdown( 'fast' );

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.5.30.0040.00419.12
8.5.20.0110.00616.71
8.5.10.0090.00920.03
8.5.00.0140.00820.13
8.4.180.0130.00922.05
8.4.170.0120.00923.90
8.4.160.0110.01323.96
8.4.150.0020.00014.05
8.4.140.0110.01217.86
8.4.130.0060.00617.89
8.4.120.0130.00720.61
8.4.110.0120.00719.07
8.4.100.0110.00918.66
8.4.90.0070.00220.63
8.4.80.0150.00618.74
8.4.70.0060.00217.89
8.4.60.0070.01318.75
8.4.50.0110.00824.24
8.4.40.0100.01017.86
8.4.30.0110.01117.99
8.4.20.0140.00718.06
8.4.10.0040.00717.96
8.3.300.0110.00920.88
8.3.290.0110.00920.31
8.3.280.0120.00918.64
8.3.270.0160.00516.96
8.3.260.0160.00316.76
8.3.250.0120.00918.79
8.3.240.0110.00916.85
8.3.230.0080.01117.16
8.3.220.0080.01119.13
8.3.210.0110.00718.63
8.3.200.0030.00517.09
8.3.190.0120.00717.29
8.3.180.0140.00516.71
8.3.170.0030.00516.61
8.3.160.0090.00917.18
8.3.150.0040.01419.12
8.3.140.0030.00516.91
8.3.130.0030.00616.80
8.3.120.0030.00518.91
8.3.110.0060.00320.94
8.3.100.0160.00316.63
8.3.90.0070.01118.48
8.3.80.0060.00616.63
8.3.70.0040.01216.63
8.3.60.0070.01116.62
8.3.50.0090.00921.11
8.3.40.0140.00419.14
8.3.30.0110.00719.23
8.3.20.0070.00720.33
8.3.10.0040.00423.52
8.3.00.0040.00418.86
8.2.300.0120.00918.14
8.2.290.0080.00420.42
8.2.280.0090.01018.53
8.2.270.0040.00416.52
8.2.260.0120.00617.19
8.2.250.0030.00718.64
8.2.240.0040.00417.27
8.2.230.0030.00622.58
8.2.220.0090.00024.06
8.2.210.0080.00026.77
8.2.200.0060.00318.54
8.2.190.0110.01116.63
8.2.180.0070.01025.92
8.2.170.0150.00019.03
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00019.31
8.2.110.0110.00022.26
8.2.100.0090.00317.97
8.2.90.0100.00017.75
8.2.80.0050.00318.91
8.2.70.0040.00417.63
8.2.60.0080.00017.75
8.2.50.0030.00517.63
8.2.40.0060.00319.35
8.2.30.0070.00018.10
8.2.20.0050.00317.70
8.2.10.0040.00418.03
8.2.00.0000.00718.08
8.1.340.0110.00919.89
8.1.330.0110.00716.54
8.1.320.0110.00816.00
8.1.310.0040.00416.73
8.1.300.0080.00016.64
8.1.290.0080.00318.88
8.1.280.0060.01225.92
8.1.270.0090.00020.70
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00019.21
8.1.230.0030.00920.83
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.22
8.1.190.0000.01117.10
8.1.180.0080.00018.10
8.1.170.0000.00817.62
8.1.160.0060.00322.05
8.1.150.0080.00018.72
8.1.140.0000.00717.38
8.1.130.0000.00717.35
8.1.120.0000.00717.31
8.1.110.0040.00417.43
8.1.100.0020.00517.26
8.1.90.0040.00417.41
8.1.80.0040.00417.40
8.1.70.0000.00717.29
8.1.60.0000.00917.50
8.1.50.0040.00417.58
8.1.40.0050.00317.60
8.1.30.0040.00417.63
8.1.20.0040.00417.65
8.1.10.0000.00717.65
8.1.00.0050.00317.53
8.0.300.0040.00419.60
8.0.290.0000.00716.75
8.0.280.0030.00318.59
8.0.270.0030.00317.42
8.0.260.0030.00316.84
8.0.250.0050.00217.11
8.0.240.0000.00817.14
8.0.230.0040.00417.14
8.0.220.0000.00717.05
8.0.210.0030.00317.01
8.0.200.0040.00417.00
8.0.190.0040.00417.01
8.0.180.0000.00817.07
8.0.170.0050.00316.96
8.0.160.0030.00317.02
8.0.150.0000.00717.00
8.0.140.0000.00816.91
8.0.130.0060.00013.41
8.0.120.0080.00215.24
8.0.110.0040.00415.26
8.0.100.0020.00515.17
8.0.90.0030.00515.14
8.0.80.0060.00415.24
8.0.70.0000.00715.22
8.0.60.0040.00415.27
8.0.50.0050.00215.15
8.0.30.0080.00815.95
8.0.20.0080.00716.06
8.0.10.0040.00415.13
8.0.00.0050.00815.72
7.4.330.0060.00015.03
7.4.320.0000.00616.53
7.4.300.0020.00516.53
7.4.290.0060.00316.55
7.4.280.0000.00816.51
7.4.270.0070.00016.52
7.4.260.0030.00316.58
7.4.250.0020.00514.85
7.4.240.0010.00615.48
7.4.230.0050.00214.97
7.4.220.0080.00514.87
7.4.210.0060.00714.93
7.4.200.0050.00214.87
7.4.190.0050.00213.35
7.4.180.0060.00013.33
7.4.160.0060.00514.84
7.4.150.0040.00815.31
7.4.140.0030.01116.30
7.4.130.0110.00515.38
7.4.120.0080.00615.45
7.4.110.0100.00514.78
7.4.100.0080.00814.99
7.4.90.0080.00614.75
7.4.80.0030.01016.28
7.4.70.0090.00414.86
7.4.60.0060.00714.76
7.4.50.0000.00714.79
7.4.40.0140.00314.80
7.4.30.0120.00314.89
7.4.20.0070.00013.01
7.4.10.0030.00813.94
7.4.00.0060.00714.35
7.3.330.0050.00013.23
7.3.320.0110.00313.25
7.3.310.0030.00314.76
7.3.300.0050.00214.71
7.3.290.0060.00815.56
7.3.280.0090.00515.59
7.3.270.0070.00415.24
7.3.260.0100.00214.71
7.3.250.0080.00815.62
7.3.240.0080.00714.83
7.3.230.0050.00914.83
7.3.220.0040.00213.03
7.3.210.0100.00314.83
7.3.200.0100.00514.70
7.3.190.0070.01014.75
7.3.180.0100.00314.82
7.3.170.0100.00614.77
7.3.160.0100.00314.81
7.3.150.0070.00213.16
7.3.140.0050.00413.18
7.3.130.0110.00314.06
7.3.120.0030.01013.87
7.3.110.0050.00613.88
7.3.100.0080.00413.94
7.3.90.0060.00414.04
7.3.80.0050.00313.99
7.3.70.0050.00413.94
7.3.60.0040.00413.82
7.3.50.0050.00714.00
7.3.40.0060.00313.97
7.3.30.0050.00513.90
7.3.20.0030.00615.85
7.3.10.0050.00716.06
7.3.00.0050.00516.00
7.2.340.0070.00513.06
7.2.330.0060.01014.80
7.2.320.0100.00514.86
7.2.310.0130.00214.93
7.2.300.0050.01314.81
7.2.290.0060.00814.91
7.2.280.0070.00513.02
7.2.270.0130.00013.00
7.2.260.0080.00514.02
7.2.250.0080.00814.08
7.2.240.0040.01213.89
7.2.230.0090.00513.92
7.2.220.0110.00313.97
7.2.210.0030.00813.97
7.2.200.0090.00413.92
7.2.190.0110.00313.91
7.2.180.0070.00814.05
7.2.170.0060.00714.05
7.2.160.0030.00714.03
7.2.150.0090.00516.02
7.2.140.0080.00515.93
7.2.130.0070.00616.25
7.2.120.0070.00716.30
7.2.110.0050.00716.29
7.2.100.0070.00616.28
7.2.90.0040.01016.30
7.2.80.0080.00716.21
7.2.70.0090.00416.24
7.2.60.0070.00616.20
7.2.50.0120.00615.95
7.2.40.0060.00916.11
7.2.30.0050.00716.18
7.2.20.0080.00616.07
7.2.10.0070.00616.34
7.2.00.0080.00716.98
7.1.330.0080.00514.84
7.1.320.0040.00614.91
7.1.310.0090.00614.83
7.1.300.0060.00614.81
7.1.290.0060.00414.90
7.1.280.0090.00214.88
7.1.270.0050.00514.87
7.1.260.0060.00614.70
7.1.250.0070.00415.12
7.1.240.0050.00614.84
7.1.230.0060.00614.91
7.1.220.0060.00514.79
7.1.210.0090.00514.94
7.1.200.0100.00414.85
7.1.190.0090.00514.88
7.1.180.0050.00814.88
7.1.170.0100.00414.78
7.1.160.0090.00414.80
7.1.150.0080.00514.83
7.1.140.0070.00714.94
7.1.130.0070.00714.83
7.1.120.0080.00514.85
7.1.110.0080.00514.88
7.1.100.0070.00415.75
7.1.90.0030.01114.98
7.1.80.0060.00514.90
7.1.70.0020.00915.52
7.1.60.0090.00716.47
7.1.50.0050.01115.50
7.1.40.0120.00114.85
7.1.30.0080.00414.82
7.1.20.0060.00514.98
7.1.10.0070.00514.89
7.1.00.0070.01817.27
7.0.330.0090.00414.62
7.0.320.0030.01014.70
7.0.310.0080.00414.51
7.0.300.0020.01114.65
7.0.290.0070.00514.69
7.0.280.0030.00714.66
7.0.270.0060.00514.69
7.0.260.0080.00714.51
7.0.250.0110.00414.75
7.0.240.0070.00514.76
7.0.230.0060.00614.60
7.0.220.0070.00514.78
7.0.210.0070.00614.74
7.0.200.0050.00715.40
7.0.190.0000.01214.52
7.0.180.0060.00814.65
7.0.170.0060.00614.67
7.0.160.0090.00314.55
7.0.150.0050.00714.63
7.0.140.0060.00814.66
7.0.130.0100.00114.54
7.0.120.0050.00614.64
7.0.110.0040.00714.78
7.0.100.0060.02216.48
7.0.90.0070.03016.33
7.0.80.0060.03316.37
7.0.70.0080.02516.41
7.0.60.0050.02216.41
7.0.50.0180.02716.45
7.0.40.0110.02315.86
7.0.30.0060.03415.85
7.0.20.0060.03015.80
7.0.10.0070.03015.71
7.0.00.0060.02215.83
5.6.400.0030.00713.42
5.6.390.0090.00413.40
5.6.380.0090.00213.31
5.6.370.0100.00313.31
5.6.360.0080.00213.24
5.6.350.0100.00213.37
5.6.340.0040.00913.45
5.6.330.0050.00713.32
5.6.320.0050.00613.25
5.6.310.0100.00313.34
5.6.300.0040.00913.17
5.6.290.0090.00413.29
5.6.280.0050.02815.89
5.6.270.0100.00313.21
5.6.260.0020.00913.41
5.6.250.0100.01915.63
5.6.240.0080.02815.86
5.6.230.0070.03015.81
5.6.220.0160.02415.75
5.6.210.0070.03215.70
5.6.200.0080.03015.88
5.6.190.0090.02915.99
5.6.180.0100.03015.96
5.6.170.0090.03215.87
5.6.160.0080.03015.89
5.6.150.0130.02715.84
5.6.140.0080.01815.85
5.6.130.0080.02915.83
5.6.120.0050.02215.95
5.6.110.0090.02915.91
5.6.100.0040.02615.81
5.6.90.0110.02715.80
5.6.80.0060.02215.81
5.6.70.0070.02015.64
5.6.60.0070.03115.68
5.6.50.0080.01915.56
5.6.40.0070.01815.68
5.6.30.0070.03015.73
5.6.20.0050.02115.62
5.6.10.0060.03315.63
5.6.00.0050.02815.64
5.5.380.0050.02615.56
5.5.370.0090.02315.74
5.5.360.0050.03215.72
5.5.350.0080.03015.68
5.5.340.0050.03215.81
5.5.330.0080.01915.75
5.5.320.0100.02715.71
5.5.310.0080.02415.77
5.5.300.0130.02415.68
5.5.290.0120.03115.76
5.5.280.0090.02815.81
5.5.270.0050.01915.74
5.5.260.0070.03115.86
5.5.250.0010.03415.58
5.5.240.0090.02915.71
5.5.230.0060.02315.55
5.5.220.0100.02515.58
5.5.210.0100.02515.61
5.5.200.0070.02215.56
5.5.190.0080.03115.47
5.5.180.0060.03415.54
5.5.170.0090.00313.24
5.5.160.0090.01715.55
5.5.150.0080.02715.56
5.5.140.0100.02315.48
5.5.130.0080.02915.47
5.5.120.0060.03015.46
5.5.110.0100.01315.43
5.5.100.0080.03015.36
5.5.90.0050.02115.38
5.5.80.0010.03115.45
5.5.70.0070.01715.42
5.5.60.0140.02215.37
5.5.50.0110.02115.50
5.5.40.0060.02815.45
5.5.30.0070.02815.51
5.5.20.0110.02515.48
5.5.10.0080.03015.52
5.5.00.0050.02815.49
5.4.450.0080.01914.25
5.4.440.0050.02314.13
5.4.430.0020.03314.24
5.4.420.0070.02714.05
5.4.410.0060.03214.02
5.4.400.0060.02913.97
5.4.390.0100.02514.02
5.4.380.0070.01714.14
5.4.370.0070.01614.04
5.4.360.0070.02814.20
5.4.350.0070.02914.14
5.4.340.0030.03114.00
5.4.330.0060.00311.54
5.4.320.0090.02314.08
5.4.310.0070.02313.95
5.4.300.0060.02714.13
5.4.290.0080.02714.08
5.4.280.0070.02614.05
5.4.270.0080.02714.07
5.4.260.0040.02813.99
5.4.250.0070.02314.17
5.4.240.0100.02613.97
5.4.230.0050.02714.06
5.4.220.0090.02613.97
5.4.210.0040.01713.98
5.4.200.0050.02714.01
5.4.190.0050.02913.98
5.4.180.0080.02514.02
5.4.170.0090.01214.08
5.4.160.0070.02714.01
5.4.150.0050.03013.94
5.4.140.0060.01413.28
5.4.130.0040.01513.14
5.4.120.0070.01613.08
5.4.110.0040.02313.19
5.4.100.0060.02313.21
5.4.90.0070.01413.04
5.4.80.0080.02613.18
5.4.70.0060.02713.15
5.4.60.0030.03213.18
5.4.50.0050.01913.13
5.4.40.0030.01813.22
5.4.30.0090.02113.15
5.4.20.0060.02513.10
5.4.10.0050.02213.18
5.4.00.0080.02513.00
5.3.290.0120.03313.87
5.3.280.0090.02313.75
5.3.270.0080.03613.66
5.3.260.0070.03913.77
5.3.250.0030.03913.80
5.3.240.0080.03113.73
5.3.230.0070.04213.71
5.3.220.0070.02713.73
5.3.210.0050.02213.54
5.3.200.0060.03913.74
5.3.190.0110.03313.71
5.3.180.0080.04013.68
5.3.170.0110.02513.65
5.3.160.0090.03513.71
5.3.150.0090.03813.65
5.3.140.0110.03213.71
5.3.130.0070.02413.68
5.3.120.0100.03613.63
5.3.110.0100.03813.80
5.3.100.0060.04313.56
5.3.90.0090.03713.49
5.3.80.0030.04213.39
5.3.70.0040.02413.34
5.3.60.0050.03813.46
5.3.50.0110.01613.35
5.3.40.0090.03713.31
5.3.30.0050.03313.17
5.3.20.0070.02313.29
5.3.10.0070.02013.12
5.3.00.0120.01713.21
5.2.170.0040.03411.41
5.2.160.0060.01811.42
5.2.150.0040.02311.47
5.2.140.0070.01911.40
5.2.130.0040.03311.49
5.2.120.0080.03011.49
5.2.110.0020.03411.43
5.2.100.0050.01811.49
5.2.90.0030.02011.38
5.2.80.0050.01811.46
5.2.70.0080.03211.32
5.2.60.0030.02611.28
5.2.50.0150.01711.43
5.2.40.0080.03011.29
5.2.30.0050.02911.21
5.2.20.0060.03311.18
5.2.10.0090.02511.15
5.2.00.0020.03411.08
5.1.60.0050.02710.53
5.1.50.0040.02810.55
5.1.40.0070.02510.45
5.1.30.0020.03210.71
5.1.20.0100.01310.54
5.1.10.0050.01410.56
5.1.00.0100.03010.35
5.0.50.0020.02710.33
5.0.40.0020.01710.33
5.0.30.0030.02510.33
5.0.20.0060.01810.33
5.0.10.0000.02810.33
5.0.00.0030.02710.33
4.4.90.0000.02010.33
4.4.80.0040.01010.33
4.4.70.0020.01010.33
4.4.60.0040.01710.33
4.4.50.0020.00810.33
4.4.40.0050.02510.33
4.4.30.0020.01810.33
4.4.20.0010.01110.33
4.4.10.0000.02210.33
4.4.00.0020.02810.33
4.3.110.0050.01310.33
4.3.100.0020.01810.33
4.3.90.0000.02110.33
4.3.80.0030.02610.33
4.3.70.0030.01710.33
4.3.60.0040.01710.33
4.3.50.0050.01710.33
4.3.40.0070.01010.33
4.3.30.0010.01810.33
4.3.20.0010.01810.33
4.3.10.0030.01210.33
4.3.00.0000.01510.33

preferences:
48.12 ms | 403 KiB | 5 Q