run code in 300+ PHP versions simultaneously
<?php class Test { public function callback() {} } class Test2 { public function set(callable $callback) {} } $callback = 'Test::callback'; var_dump(is_callable($callback)); $a = new Test2(); $a->set($callback); ?>
Output for git.master
bool(false) Fatal error: Uncaught TypeError: Test2::set(): Argument #1 ($callback) must be of type callable, string given, called in /in/ilbYM on line 14 and defined in /in/ilbYM:6 Stack trace: #0 /in/ilbYM(14): Test2->set('Test::callback') #1 {main} thrown in /in/ilbYM on line 6
Process exited with code 255.

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

61.14 ms | 408 KiB | 5 Q