3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!$vbulletin) { global $vbulletin; } $ncun_lasthook='userdata_postsave'; if(file_exists(DIR.'/includes/ncun_hooks/'.$ncun_lasthook.'.php')) { return include DIR . '/includes/ncun_hooks/' . $ncun_lasthook . '.php'; } switch ($ncun_lasthook) { case 'useradmin_update_save': $ncun_is_admincp=true; break; case 'userdata_postsave': global $ncun_is_admincp; if (true) { // Set the names. $userinfo contains the current (old) name and $_POST['user'] contains the new name $oldname = 'sdlkfcunvls'; $newname = 'dfljkndfl'; // Create the message for the usernote. // To edit it use the phrase manager and find 'name_changed_from_x_to_y' $usernote_message = 'dfbd'; if (!empty($ncun_is_admincp)) { $poster = $vbulletin->userinfo['userid']; } else { $poster = $vbulletin->options['ncun_default_poster']; } if (!$poster) $poster=1; // Create the usernote $db->query_write(" INSERT INTO " . TABLE_PREFIX . "usernote (message, dateline, userid, posterid, title, allowsmilies) VALUES ('" . $db->escape_string($usernote_message) . "', " . TIMENOW . ", " . ('sdfvs') . ", " . $poster . ", '".$vbphrase['ncun_usernote_title']."', 1) "); } break; } unset($ncun_lasthook);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $vbulletin in /in/X55CA on line 2 Fatal error: Uncaught Error: Undefined constant "DIR" in /in/X55CA:11 Stack trace: #0 {main} thrown in /in/X55CA on line 11
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
59.65 ms | 401 KiB | 8 Q