3v4l.org

run code in 300+ PHP versions simultaneously
<?php $description_data = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. "; $size_check = strlen($description_data); if ($size_check > 565) { print "<div class='category-description std'> <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>"; } else { print "<div class='category-description-sml std'> <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>"; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $_helper in /in/01eOQ on line 8 Warning: Attempt to read property "categoryAttribute" on null in /in/01eOQ on line 8 Warning: Undefined variable $_category in /in/01eOQ on line 8 Warning: Undefined variable $_description in /in/01eOQ on line 8 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: _helper in /in/01eOQ on line 8 Notice: Trying to get property 'categoryAttribute' of non-object in /in/01eOQ on line 8 Notice: Undefined variable: _category in /in/01eOQ on line 8 Notice: Undefined variable: _description in /in/01eOQ on line 8 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 7.3.32 - 7.3.33
<div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2, 7.0.0 - 7.0.31, 7.1.0 - 7.1.33
Notice: Undefined variable: _helper in /in/01eOQ on line 8 Notice: Trying to get property of non-object in /in/01eOQ on line 8 Notice: Undefined variable: _category in /in/01eOQ on line 8 Notice: Undefined variable: _description in /in/01eOQ on line 8 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Notice: Undefined variable: _helper in /in/01eOQ on line 8 Notice: Trying to get property of non-object in /in/01eOQ on line 8 Notice: Undefined variable: _category in /in/01eOQ on line 8 Notice: Undefined variable: _description in /in/01eOQ on line 9 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: _helper in /in/01eOQ on line 8 Notice: Trying to get property of non-object in /in/01eOQ on line 8 Notice: Undefined variable: _category in /in/01eOQ on line 8 Notice: Undefined variable: _description in /in/01eOQ on line 8 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Notice: Undefined variable: _helper in /in/01eOQ on line 8 Notice: Undefined variable: _category in /in/01eOQ on line 8 Notice: Undefined variable: _description in /in/01eOQ on line 8 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: _helper in /in/01eOQ on line 8 Notice: Undefined variable: _category in /in/01eOQ on line 8 Notice: Undefined variable: _description in /in/01eOQ on line 9 <div class='category-description std'> <?php echo (, , 'description') ?> </div><span class='read-more' id='togglr'>Read More</span>

preferences:
344.23 ms | 402 KiB | 449 Q