3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myArray = array( "title" => "My Title", "description" => "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 Code: No Promo Code Required Begin: 2014-07-25 00:00:00 Expire: 0000-00-00 00:00:00", "link" => "http://www.gopjn.com/t/3-79115-101746-99698" ); preg_match("/(Code.*Expire:\s\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})/", $myArray["description"], $matches); echo $matches[2];
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 2 in /in/63W2Y on line 12
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 2 in /in/63W2Y on line 12