3v4l.org

run code in 300+ PHP versions simultaneously
<?php //select all attachments $attachments_select="('".implode("', '", $VAR['add_attachments'])."')"; $q = "SELECT * FROM ".PRFX."TABLE_WORK_ORDER_ATTACHMENTS WHERE `WO_ID`=".$db->qstr($wo_id)." AND `ATTACHMENT_ID` IN $attachments_select ORDER BY `ATTACHMENT_ID` DESC"; if(!$rs = $db->execute($q)) { force_page('core', 'error&error_msg=MySQL Error: '.$db->ErrorMsg().'&menu=1&type=database'); exit; } $attachments = $rs->GetArray(); foreach($attachments as $a){ $file=$a['WO_ID']."_".$a['ATTACHMENT_NUMBER']."_".$a['ATTACHMENT_FILE']; $email->addAttachment(FILE_ROOT.'upload/message_store/'.$file, $file); }
Output for git.master, git.master_jit
Warning: Undefined variable $VAR in /in/ZjmcA on line 4 Warning: Trying to access array offset on value of type null in /in/ZjmcA on line 4 Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /in/ZjmcA:4 Stack trace: #0 /in/ZjmcA(4): implode('', '', NULL) #1 {main} thrown in /in/ZjmcA on line 4
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $VAR in /in/ZjmcA on line 4 Warning: Trying to access array offset on null in /in/ZjmcA on line 4 Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /in/ZjmcA:4 Stack trace: #0 /in/ZjmcA(4): implode('', '', NULL) #1 {main} thrown in /in/ZjmcA on line 4
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:
35.39 ms | 401 KiB | 8 Q