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.25, 8.4.1 - 8.4.12
bool(true) bool(false)

preferences:
43.27 ms | 406 KiB | 5 Q