3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imgClass = 'no-img'; $img = ''; $title = the_title(); $link = the_permalink(); // $BG_Img = get_post_custom_values('GalIMG') ; $BG_Img = $BG_Img[0]; if(has_post_thumbnail()) { $imgClass = ''; $img = the_post_thumbnail('alm-thumbnail'); } echo " <li class='${imgClass}'> ${img} <h3> <a href='${link}' style='background-image:url('${BG_Img}'); display:block;'>${title} </a> </h3> </li> ";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/LTcEo on line 15 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/LTcEo on line 16 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/LTcEo on line 17 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/LTcEo on line 19 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/LTcEo on line 19 Fatal error: Uncaught Error: Call to undefined function the_title() in /in/LTcEo:4 Stack trace: #0 {main} thrown in /in/LTcEo on line 4
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:
55.24 ms | 402 KiB | 8 Q