3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once("config.php"); class document_write extends config{ public function fret_write($fret_start,$fret_end){ for ($i = $fret_start; $i <= $fret_end; $i++) { echo '<div id="fret' . $i . '"></div> <div class="fretwire" id="fretwire' . $i . '"></div> '; } } public function string_write_calc($string_start, $string_end){ for ($i = $string_start; $i <= $string_end; $i++){ echo '<div id="string'.$i.'"></div>'; } } public function string_write(){ echo '<div class="string_bass">'; echo $this->string_write_calc($this->string_start,$this->string_bass); echo '</div>'; echo '<div class="string_treble">'; echo $this->string_write_calc($this->string_bass+1,$this->string_end); echo '</div>'; } } $fret_write = new document_write(); $string_write = new document_write(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/7BsSd on line 2 Warning: require_once(config.php): Failed to open stream: Operation not permitted in /in/7BsSd on line 2 Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='.:') in /in/7BsSd:2 Stack trace: #0 {main} thrown in /in/7BsSd on line 2
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:
40.41 ms | 401 KiB | 8 Q