3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // ANYTHING WRONG THIS CODE? $file_path = get_template_directory().'/users/'.$_GET['user'].'/'.$_GET['file']; if( file_exists($file_path) ) { ob_clean(); flush(); readfile( $file_path ); }
based on RdmHo
Output for 7.0.30 - 7.3.1
Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /in/kd03r:4 Stack trace: #0 {main} thrown in /in/kd03r on line 4
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /in/kd03r:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /in/kd03r:4 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.30
Fatal error: Call to undefined function get_template_directory() in /in/kd03r on line 4
Process exited with code 255.