3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kitchen = new Kitchen(); // Closure::bind() actually creates a new instance of the closure $sweetsThief = Closure::bind($sweetsThief, null, $kitchen); var_dump($sweetsThief($kitchen));

preferences:
30.78 ms | 402 KiB | 5 Q