3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); $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> ";
based on LTcEo
Output for 7.0.28 - 7.2.11
Fatal error: Uncaught Error: Call to undefined function the_title() in /in/u3fr1:5 Stack trace: #0 {main} thrown in /in/u3fr1 on line 5
Process exited with code 255.
Output for 5.6.38
Warning: Unsupported declare 'strict_types' in /in/u3fr1 on line 2 Fatal error: Call to undefined function the_title() in /in/u3fr1 on line 5
Process exited with code 255.