3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tags = '<meta itemprop="datePublished" content="Mon Mar 04 08:52:45 PST 2013"/>'; $tags = array_map('trim', explode(',', $tags['content'])); foreach($tags as $tag) { echo $tag; }
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Illegal string offset 'content' in /in/i0bvQ on line 4 <
Output for 4.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
<