3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function wpt_theme_styles() { wp_enqueue_style('foundation_css', get_template_directory_uri().'css/foundation.css'); wp_enqueue_style('normalize_css', get_template_directory_uri().'css/normalize.css'); wp_enqueue_style('normalize_css','http://fonts.googleapis.com/css?family=Asap:400,700,400italic,700italic'); wp_enqueue_style('main_css', get_template_directory_uri().'/style.css'); } add_action( 'wp_enqueue_styles', 'wpt_theme_styles' ); function wpt_theme_js() { wp_enqueue_scripts( 'modernizr.js', get_template_directory_uri(). '/js/modernizr.js', ' ', '', false); wp_enqueue_scripts( 'foundation.js', get_template_directory_uri(). '/js/foundation.js', array('jquery'), '', true); wp_enqueue_scripts( 'main.js', get_template_directory_uri(). '/js/foundation.js', array('jquery', 'foundation_js'), '', true); } add_action( 'wp_enqueue_scripts', 'wpt_theme_js' ); ?>
based on XYXRd
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function add_action() in /in/kdrmN:11 Stack trace: #0 {main} thrown in /in/kdrmN on line 11
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function add_action() in /in/kdrmN on line 11
Process exited with code 255.