3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $blob = "https://campus360.blob.core.windows.net/campus360/CultureCampaign/100~13-11-2015~Image (0).jpg"; if(strpos($blob, "/CultureCampaign/") != false) { $lastIndex = strrpos($blob, "/", 0); $name = substr($blob, $lastIndex + 1); $arrImages = explode("~", $name); $id = arrImages[0]; $date = strtotime($arrImages[1]); echo $date; } ?>
based on r8ZCl
Output for 7.2.0
Warning: Use of undefined constant arrImages - assumed 'arrImages' (this will throw an Error in a future version of PHP) in /in/Wn2vg on line 10 1447369200
Output for 5.6.8 - 7.1.10
Notice: Use of undefined constant arrImages - assumed 'arrImages' in /in/Wn2vg on line 10 1447369200
Output for 5.3.21 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/Wn2vg on line 10
Process exited with code 255.