3v4l.org

run code in 500+ PHP versions simultaneously
<?php $start_date2='10-30-2022'; //date format inccorect $start_date2=str_replace('-','/',$start_date2); // correct date format echo $new_date = date("Y-m-d", strtotime($start_date2)); // now you will get correct result
Output for rfc.property-hooks, git.master, git.master_jit
2022-10-30

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.82 ms | 1249 KiB | 4 Q