3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $relatedproduct .=' Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a>'; $relatedproduct .=' <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a>'; $relatedproduct .=' <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span> </a>'; preg_match_all('/\s*(.*) <\/a>/', $relatedproduct, $relatedtit); var_dump($relatedtit);
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: relatedproduct in /in/sfQGL on line 3 array(2) { [0]=> array(1) { [0]=> string(612) " Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a> <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a> <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span> </a>" } [1]=> array(1) { [0]=> string(586) "Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a> <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a> <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span>" } }
Output for hhvm-3.10.0 - 3.12.0
array(2) { [0]=> array(1) { [0]=> string(612) " Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a> <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a> <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span> </a>" } [1]=> array(1) { [0]=> string(586) "Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a> <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a> <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span>" } }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: relatedproduct in /in/sfQGL on line 3 array(2) { [0]=> array(1) { [0]=> string(612) " Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a> <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a> <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span> </a>" } [1]=> array(1) { [0]=> string(586) "Belkin Cat6 Snagless UTP Patch Cable (Black) 0.5m </a> <span title="B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8&quot;) - Finished in Black">B-Tech BT604 - AtlasTM Sound Isolating Loudspeaker Floor Stands 40cm (15.8") - Finished &#133;</span> </a> <span title="jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft Non-toxic and environmentally friendly">jntworld 4m length table edge Guard baby toddler protector +4 corner (black) extra thick (13 mm) soft &#133;</span>" } }