3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_week_number = date('W'); $current_date = date('d/m/Y'); $current_Month = date("m",strtotime($current_date)); echo $current_Month;

preferences:
56.58 ms | 402 KiB | 5 Q