3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = '31 May 2018'; echo strtotime(date('Y-m-d', strtotime($date))); echo "\n"; echo strtotime($date);

preferences:
28.41 ms | 402 KiB | 5 Q