3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Handystore child functions. */ function child_theme_enqueue_styles() { wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css'); wp_enqueue_style('parent-style-woo', get_template_directory_uri().'/woo-styles.css'); wp_enqueue_style('child-style', get_stylesheet_directory_uri().'/style.css'); } add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_styles' ); /*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/ // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: // END ENQUEUE PARENT ACTION register_sidebar( array( 'name' => __( 'Special Wall Page Sidebar', 'plumtree' ), 'id' => 'wall-special-sidebar', 'description' => __( 'Located at the bottom of the page (appears only when using Front Page Template)', 'plumtree' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s col-xs-12 col-sm-6 col-md-3 lazyload" data-expand="-100" >', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title" itemprop="name">', 'after_title' => '</h3>', ) ); ?>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught Error: Call to undefined function add_action() in /in/l8QTA:10 Stack trace: #0 {main} thrown in /in/l8QTA on line 10
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function add_action() in /in/l8QTA:10 Stack trace: #0 {main} thrown in /in/l8QTA on line 10
Process exited with code 255.

preferences:
231.52 ms | 401 KiB | 171 Q