3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = [new Datetime('2025-01-30'), 'format']; echo call_user_func($format, 'd/m/Y');
Output for 8.2.0 - 8.2.27, 8.3.0 - 8.3.16, 8.4.1 - 8.4.3
30/01/2025

preferences:
41.99 ms | 406 KiB | 5 Q