3v4l.org

run code in 300+ PHP versions simultaneously
<?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; } ?>
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
Fatal error: Uncaught Error: Undefined constant "arrImages" in /in/Wn2vg:10 Stack trace: #0 {main} thrown in /in/Wn2vg on line 10
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
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 1447372800
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Use of undefined constant arrImages - assumed 'arrImages' in /in/Wn2vg on line 10 1447369200
Output for 5.5.24 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/Wn2vg on line 10
Process exited with code 255.

preferences:
196.77 ms | 401 KiB | 182 Q