3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $event['event_time'] = "90'+1"; $eventTimeStrip = strtr($event['event_time'], "'", ''); if (false !== strpos($eventTimeStrip, '+')) { $explodeTime = explode('+', $eventTimeStrip); $eventTime = $explodeTime[0] + $explodeTime[1]; } else { $eventTime = $eventTimeStrip; } var_dump($eventTime);
based on RFvOs
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/VkbTq on line 6 int(91)
Output for 5.3.20 - 7.0.20
int(91)