3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<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 7.0.0 - 7.1.0
<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.
Output for 5.0.0 - 5.6.28
<div style="text-align: justify;"> <h3>插入最新動態</h3> Fatal error: Using $this when not in object context in /in/s7AYq on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<div style="text-align: justify;"> <h3>插入最新動態</h3> Fatal error: Call to a member function on a non-object in /in/s7AYq on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<div style="text-align: justify;"> <h3>插入最新動態</h3> Fatal error: Call to a member function on a non-object in /in/s7AYq on line 4