3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arTemplateFunction = function(&$AR_this) { $local = new ar_core_pinpSandbox($AR_this); ?><?php $local->load('mod_edit.php'); $local->graphicsURL = pinp_ar::_acquire('settings.graphicsURL'); $local->site = pinp_ar::_acquire('settings.site'); $local->siteURL = pinp_ar::_acquire('settings.siteURL'); $local->editURL = pinp_edit::_getEditMode() ? $local->siteURL . pinp_edit::_getEditTemplate() : $local->siteURL; $local->section = pinp_ar::_getvar('section'); ?> <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="<?php echo $local->graphicsURL; ?>layout.css" type="text/css"> <link rel="stylesheet" href="<?php echo $local->graphicsURL; ?>style.css" type="text/css"> <title><?php echo $local->this->nlsdata->name; ?></title> <script type="text/javascript" src="<?php echo $local->graphicsURL; ?>ariadne.load.js?muze+muze.event"></script> <script type="text/javascript" src="<?php echo $local->graphicsURL; ?>search.js"></script> <meta charset="UTF-8"> </head> <body class="<?php echo $local->this->type; ?>"> <div id="header"> <?php pinp_ar::_get( $local->site )->_call( 'view.title.html' ); pinp_ar::_call( 'view.searchform.html' ); echo ar('html')->_menu() ->_template('menu.item.html') ->_setAttribute('id', 'menu') ->_current( $local->section ? $local->section : $local->editURL ) ->_fill( array( $local->editURL => 'Home' ), pinp_ar::_get( $local->site ) ->_find( "object.implements='psection' and object.parent='".($local->site)."'" ) ->_order('object.priority ASC') ); ?> </div> <hr class="noscreen"> <?php };$arTemplateFunction() ?>
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 0 passed in /in/9biVs on line 38 and exactly 1 expected in /in/9biVs:1 Stack trace: #0 /in/9biVs(38): {closure}() #1 {main} thrown in /in/9biVs on line 1
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 0 passed in /in/9biVs on line 38 and exactly 1 expected in /in/9biVs:1 Stack trace: #0 /in/9biVs(38): {closure}() #1 {main} thrown in /in/9biVs on line 1
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Warning: Missing argument 1 for {closure}(), called in /in/9biVs on line 38 and defined in /in/9biVs on line 1 Fatal error: Uncaught Error: Class 'ar_core_pinpSandbox' not found in /in/9biVs:1 Stack trace: #0 /in/9biVs(38): {closure}() #1 {main} thrown in /in/9biVs on line 1
Process exited with code 255.
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.21
Warning: Missing argument 1 for {closure}(), called in /in/9biVs on line 38 and defined in /in/9biVs on line 1 Fatal error: Class 'ar_core_pinpSandbox' not found in /in/9biVs on line 1
Process exited with code 255.

preferences:
185.07 ms | 402 KiB | 241 Q