3v4l.org

run code in 300+ PHP versions simultaneously
<?php $create = 'Datetime::createFromFormat'; $invoke = [new stdClass, '__invoke']; var_dump(is_callable($create), is_callable($invoke));
Output for 8.1.32, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
bool(true) bool(false)

preferences:
55.61 ms | 406 KiB | 5 Q