3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = "2008-02-23"; echo 'First day : '. date("Y-m-01", strtotime($dt)).' - Last day : '. date("Y-m-t", strtotime($dt)); ?>
Output for 5.3.0 - 7.1.0
First day : 2008-02-01 - Last day : 2008-02-29