3v4l.org

run code in 300+ PHP versions simultaneously
<div style="text-align: justify;"> <h3>插入最新動態</h3> <?php $flashMessage = $this->session->flashdata('flash_message'); echo (!empty($flashMessage)) ? $flashMessage : ''; ?> <div id="formpan"> <?php echo form_open('rakunpanel/newsPan/insert', 'enctype="multipart/form-data"'); ?> <div> <fieldset> <legend>插入詳情</legend> <!-- <label>Post Date</label> datepicker <input type="hidden" id="DPC_TODAY_TEXT" value="today"> <input type="hidden" id="DPC_BUTTON_TITLE" value="Open calendar..."> <input type="hidden" id="DPC_MONTH_NAMES" value="['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']"> <input type="hidden" id="DPC_DAY_NAMES" value="['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']"> end datepicker <input id="DPC_carlendar1_YYYY-MM-DD" type="text" name="waktu" value="<?php //print(Datetime("Y-m-d H:i:s")); ?>" /><br /> <label class="error"><?php //echo form_error('waktu'); ?></label><br/>--> <label>標題</label><br/> <input type="text" name="judul" style="width: 500px;" value="<?php echo set_value('judul'); ?>" /><br /> <label class="error"><?php echo form_error('judul'); ?></label><br/> <div style="text-align: justify;"> <label for="isi">內容</label><br /> <textarea id="content" name="isi" cols="40" rows="10"><?php echo set_value('isi')?></textarea> <label class="error"><?php echo form_error('isi'); ?></label><br/> </div> <input type="submit" name="submit" value="保存並添加圖片" /> </fieldset> </div> <?php form_close(); ?> </div><br><br> </div>
Output for git.master, git.master_jit, rfc.property-hooks
<div style="text-align: justify;"> <h3>插入最新動態</h3> Fatal error: Uncaught Error: Using $this when not in object context in /in/s7AYq:4 Stack trace: #0 {main} thrown in /in/s7AYq 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:
54.98 ms | 401 KiB | 8 Q