3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month_name = 'Feb'; $month_number = date("m", strtotime($month_name)); echo $month_number;

preferences:
37.41 ms | 402 KiB | 5 Q