3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1=new DateTime('NOW'); print_r( $d1 ) ;