3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Get the Audiomack URL if (!function_exists('samk_audio_audiomack')) { function samk_audio_audiomack($url, $width = '100%', $height = 250) { if($url!='') { $buff = ''; $buff .= "\n<!-- audiomack | {$plugin_data['name']} | {$plugin_data['url']} -->\n"; $embed_src = $url; $embed_ver_prefix = 'embed4'; // Check if the embedded source is song or album if(stripos($embed_src, '/song/') !== false) { //it is a song $embed_src = str_replace('/song/', "/$embed_ver_prefix-large/", $embed_src); }else{ //it is an album $height = 352; $embed_src = str_replace('/album/', "/$embed_ver_prefix-album/", $embed_src); } $height_str = "height='$height'"; $embed_code = "<iframe src='$embed_src' scrolling='no' width='$width' $height_str scrollbars='no' frameborder='0'></iframe>\n"; $buff .= "<div class='audiomack_player_container'>\n"; $buff .= $embed_code; $buff .= "</div> <!-- /audiomack_player_container -->\n"; $buff .= "\n<!-- /audiomack | {$plugin_data['name']} | {$plugin_data['url']} -->\n"; return $buff; } } } $audio_caller = samk_audio_audiomack('http://www.example.com'); echo $audio_caller;
Output for git.master, git.master_jit
Warning: Undefined variable $plugin_data in /in/CuE0f on line 8 Warning: Trying to access array offset on value of type null in /in/CuE0f on line 8 Warning: Undefined variable $plugin_data in /in/CuE0f on line 8 Warning: Trying to access array offset on value of type null in /in/CuE0f on line 8 Warning: Undefined variable $plugin_data in /in/CuE0f on line 28 Warning: Trying to access array offset on value of type null in /in/CuE0f on line 28 Warning: Undefined variable $plugin_data in /in/CuE0f on line 28 Warning: Trying to access array offset on value of type null in /in/CuE0f on line 28 <!-- audiomack | | --> <div class='audiomack_player_container'> <iframe src='http://www.example.com' scrolling='no' width='100%' height='352' scrollbars='no' frameborder='0'></iframe> </div> <!-- /audiomack_player_container --> <!-- /audiomack | | -->
Output for rfc.property-hooks
Warning: Undefined variable $plugin_data in /in/CuE0f on line 8 Warning: Trying to access array offset on null in /in/CuE0f on line 8 Warning: Undefined variable $plugin_data in /in/CuE0f on line 8 Warning: Trying to access array offset on null in /in/CuE0f on line 8 Warning: Undefined variable $plugin_data in /in/CuE0f on line 28 Warning: Trying to access array offset on null in /in/CuE0f on line 28 Warning: Undefined variable $plugin_data in /in/CuE0f on line 28 Warning: Trying to access array offset on null in /in/CuE0f on line 28 <!-- audiomack | | --> <div class='audiomack_player_container'> <iframe src='http://www.example.com' scrolling='no' width='100%' height='352' scrollbars='no' frameborder='0'></iframe> </div> <!-- /audiomack_player_container --> <!-- /audiomack | | -->

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:
29.79 ms | 409 KiB | 5 Q