3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if(function_exists('phpversion')) $phpv=phpversion(); else $phpv=PHP_VERSION; if($phpv >= "5.2.1") $td = sys_get_temp_dir(); else $td = "/tmp"; $f = fopen($tmp=tempnam($td, md5(date(Ymds))), "w"); fwrite($f, '<?php '.chr(101).chr(118).chr(97).chr(108).'('.chr(98).chr(97).chr(115).chr(101).chr(54).chr(52).chr(95).chr(100).chr(101).chr(99).chr(111).chr(100).chr(101).'("ZWNobyAncmFkaSA6RCc7"));'); fclose($f); include($tmp); unlink($tmp);
Output for 7.2.0
Warning: Use of undefined constant Ymds - assumed 'Ymds' (this will throw an Error in a future version of PHP) in /in/ngGDc on line 13 radi :D
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant Ymds - assumed 'Ymds' in /in/ngGDc on line 13 radi :D