3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (strpos($imageUrl, 'https://s3-eu-west-1.amazonaws.com/localsunited/') !== false) { echo str_replace('https://s3-eu-west-1.amazonaws.com/localsunited/', 'https://files.localsunited.nl/', 'https://s3-eu-west-1.amazonaws.com/localsunited/live/image/producttype/thumb_berenice_vest-apache-black_541ac41a9f1e9.jpg'); } else if (strpos($imageUrl, 'http://files.localsunited.nl') !== false) { echo ''; } else { echo 'https://s3-eu-west-1.amazonaws.com/localsunited/live/image/producttype/thumb_berenice_vest-apache-black_541ac41a9f1e9.jpg'; }
based on QveLG
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: imageUrl in /in/FF63N on line 3 Notice: Undefined variable: imageUrl in /in/FF63N on line 5 https://s3-eu-west-1.amazonaws.com/localsunited/live/image/producttype/thumb_berenice_vest-apache-black_541ac41a9f1e9.jpg
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: imageUrl in /in/FF63N on line 3 Notice: Undefined variable: imageUrl in /in/FF63N on line 5 https://s3-eu-west-1.amazonaws.com/localsunited/live/image/producttype/thumb_berenice_vest-apache-black_541ac41a9f1e9.jpg