3v4l.org

run code in 300+ PHP versions simultaneously
<?php $onMay31 = DateTime::createFromFormat("F Y", "June 2017"); $bangDate = DateTime::createFromFormat("!F Y", "June 2017"); $pipeDate = DateTime::createFromFormat("F Y|", "June 2017"); printf("Regular date: %s\nBang date: %s\nPipe date: %s", $onMay31->format("M j, Y"), $bangDate->format("M j, Y"), $pipeDate->format("M j, Y"));

preferences:
53.49 ms | 402 KiB | 5 Q