3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<select class="input-text validate-custom chzn-select" name="<?php //echo $this->getFieldName('month') ?>" id="<?php //echo $this->getFieldId('month') ?>"> <option value="0"><?php echo $this->__('Month'); ?></option> <?php for ($month = 1; $month <= 12; $month++) : ?> <option value="<?php echo date('m', mktime(0, 0, 0, $month)) ?>"><?php echo date('F', mktime(0, 0, 0, $month)) ?></option> <?php endfor; ?> </select>
Output for 7.0.0 - 7.1.0
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0"> Fatal error: Uncaught Error: Using $this when not in object context in /in/BiXFb:2 Stack trace: #0 {main} thrown in /in/BiXFb on line 2
Process exited with code 255.
Output for hhvm-3.12.0
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0"> Fatal error: Uncaught Error: $this is null in /in/BiXFb:2 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0"> Fatal error: $this is null in /in/BiXFb on line 2
Process exited with code 255.
Output for 5.0.0 - 5.6.28
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0"> Fatal error: Using $this when not in object context in /in/BiXFb on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0"> Fatal error: Call to a member function on a non-object in /in/BiXFb on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0"> Fatal error: Call to a member function on a non-object in /in/BiXFb on line 2