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' );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/giQf8
function name:  (null)
number of ops:  47
compiled vars:  !0 = $wgRequest, !1 = $configFactory, !2 = $resourceLoader, !3 = $mediawiki
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   INIT_FCALL                                               'dirname'
          1        SEND_VAL                                                 '%2Fin%2FgiQf8'
          2        DO_ICALL                                         $4      
          3        CONCAT                                           ~5      $4, '%2Fincludes%2FPHPVersionCheck.php'
          4        INCLUDE_OR_EVAL                                          ~5, REQUIRE_ONCE
   30     5        INIT_FCALL_BY_NAME                                       'wfEntryPointCheck'
          6        SEND_VAL_EX                                              'load.php'
          7        DO_FCALL                                      0          
   32     8        INCLUDE_OR_EVAL                                          '%2Fin%2Fincludes%2FWebStart.php', REQUIRE
   36     9        INIT_METHOD_CALL                                         !0, 'checkUrlExtension'
         10        DO_FCALL                                      0  $9      
         11        BOOL_NOT                                         ~10     $9
         12      > JMPZ                                                     ~10, ->14
   37    13    > > RETURN                                                   null
   42    14    >   INIT_STATIC_METHOD_CALL                                  'ConfigFactory', 'getDefaultInstance'
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !1, $11
   43    17        NEW                                              $13     'ResourceLoader'
   44    18        INIT_METHOD_CALL                                         !1, 'makeConfig'
         19        SEND_VAL_EX                                              'main'
         20        DO_FCALL                                      0  $14     
         21        SEND_VAR_NO_REF_EX                                       $14
   45    22        INIT_STATIC_METHOD_CALL                                  'MediaWiki%5CLogger%5CLoggerFactory', 'getInstance'
         23        SEND_VAL_EX                                              'resourceloader'
         24        DO_FCALL                                      0  $15     
         25        SEND_VAR_NO_REF_EX                                       $15
         26        DO_FCALL                                      0          
   43    27        ASSIGN                                                   !2, $13
   47    28        INIT_METHOD_CALL                                         !2, 'respond'
         29        NEW                                              $18     'ResourceLoaderContext'
         30        SEND_VAR_EX                                              !2
         31        SEND_VAR_EX                                              !0
         32        DO_FCALL                                      0          
         33        SEND_VAR_NO_REF_EX                                       $18
         34        DO_FCALL                                      0          
   49    35        INIT_STATIC_METHOD_CALL                                  'Profiler', 'instance'
         36        DO_FCALL                                      0  $21     
         37        INIT_METHOD_CALL                                         $21, 'setTemplated'
         38        SEND_VAL_EX                                              <true>
         39        DO_FCALL                                      0          
   51    40        NEW                                              $23     'MediaWiki'
         41        DO_FCALL                                      0          
         42        ASSIGN                                                   !3, $23
   52    43        INIT_METHOD_CALL                                         !3, 'doPostOutputShutdown'
         44        SEND_VAL_EX                                              'fast'
         45        DO_FCALL                                      0          
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.17 ms | 1400 KiB | 15 Q