3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<figure class="item_img img-intro img-intro__' , htmlspecialchars($imgfloat) , '">'; $img_cap = '<img src="' . htmlspecialchars($item_images->image_intro) . '" alt="' . htmlspecialchars($item_images->image_intro_alt) . '">'; if ($item_images->image_intro_caption) { $img_cap .= '<figcaption>' . htmlspecialchars($item_images->image_intro_caption) . '</figcaption>'; } if ($params->get('link_titles') && $item->readmore && !empty($urls->urla)) { $img_cap = "<a href=\"{$urls->urla}\">{$img_cap}</a>"; } echo $img_cap; echo '</figure>';
based on TSGZW
Output for 8.0.0alpha3 - rc2
<figure class="item_img img-intro img-intro__ Warning: Undefined variable $imgfloat in /in/JFDRM on line 2 "> Warning: Undefined variable $item_images in /in/JFDRM on line 3 Warning: Attempt to read property "image_intro" on null in /in/JFDRM on line 3 Warning: Undefined variable $item_images in /in/JFDRM on line 3 Warning: Attempt to read property "image_intro_alt" on null in /in/JFDRM on line 3 Warning: Undefined variable $item_images in /in/JFDRM on line 4 Warning: Attempt to read property "image_intro_caption" on null in /in/JFDRM on line 4 Warning: Undefined variable $params in /in/JFDRM on line 8 Fatal error: Uncaught Error: Call to a member function get() on null in /in/JFDRM:8 Stack trace: #0 {main} thrown in /in/JFDRM on line 8
Process exited with code 255.
Output for 8.0.0alpha1 - alpha2
<figure class="item_img img-intro img-intro__ Warning: Undefined variable $imgfloat in /in/JFDRM on line 2 "> Warning: Undefined variable $item_images in /in/JFDRM on line 3 Warning: Attempt to read property 'image_intro' on null in /in/JFDRM on line 3 Warning: Undefined variable $item_images in /in/JFDRM on line 3 Warning: Attempt to read property 'image_intro_alt' on null in /in/JFDRM on line 3 Warning: Undefined variable $item_images in /in/JFDRM on line 4 Warning: Attempt to read property 'image_intro_caption' on null in /in/JFDRM on line 4 Warning: Undefined variable $params in /in/JFDRM on line 8 Fatal error: Uncaught Error: Call to a member function get() on null in /in/JFDRM:8 Stack trace: #0 {main} thrown in /in/JFDRM on line 8
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.23, 7.4.0 - 7.4.11
<figure class="item_img img-intro img-intro__ Notice: Undefined variable: imgfloat in /in/JFDRM on line 2 "> Notice: Undefined variable: item_images in /in/JFDRM on line 3 Notice: Trying to get property 'image_intro' of non-object in /in/JFDRM on line 3 Notice: Undefined variable: item_images in /in/JFDRM on line 3 Notice: Trying to get property 'image_intro_alt' of non-object in /in/JFDRM on line 3 Notice: Undefined variable: item_images in /in/JFDRM on line 4 Notice: Trying to get property 'image_intro_caption' of non-object in /in/JFDRM on line 4 Notice: Undefined variable: params in /in/JFDRM on line 8 Fatal error: Uncaught Error: Call to a member function get() on null in /in/JFDRM:8 Stack trace: #0 {main} thrown in /in/JFDRM on line 8
Process exited with code 255.
Output for 7.1.0 - 7.1.33
<figure class="item_img img-intro img-intro__ Notice: Undefined variable: imgfloat in /in/JFDRM on line 2 "> Notice: Undefined variable: item_images in /in/JFDRM on line 3 Notice: Trying to get property of non-object in /in/JFDRM on line 3 Notice: Undefined variable: item_images in /in/JFDRM on line 3 Notice: Trying to get property of non-object in /in/JFDRM on line 3 Notice: Undefined variable: item_images in /in/JFDRM on line 4 Notice: Trying to get property of non-object in /in/JFDRM on line 4 Notice: Undefined variable: params in /in/JFDRM on line 8 Fatal error: Uncaught Error: Call to a member function get() on null in /in/JFDRM:8 Stack trace: #0 {main} thrown in /in/JFDRM on line 8
Process exited with code 255.