3v4l.org

run code in 300+ PHP versions simultaneously
<?php $safe_var = 'all your base they belong to us'; file_put_contents('/tmp/exploit.txt',$safe_var ); // imagine lots of stuff going on here... $safe_var = file_get_contents('/tmp/exploit.txt'); function make_literal(string $non_literal):string { $literal = ''; for( $i = 0; $i< strlen($non_literal); $i++ ){ $literal .= chr(ord($non_literal[$i])); } return $literal; } if ( !is_noble($safe_var)) { printf( "Darn! I can't use the data I need to use.\n"); } printf( "But wait...\n"); $safe_var = make_literal($safe_var); if ( is_noble($safe_var)) { printf( "Well, since you did not provide any way to handle *legitimate* exceptions\n"); printf( "then I will just work around you, you annoying little is_literal() function!\n\n"); echo strtoupper($safe_var); echo "!!!"; }
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function is_noble() in /in/oCBp7:17 Stack trace: #0 {main} thrown in /in/oCBp7 on line 17
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:
27.87 ms | 405 KiB | 5 Q