3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function(){echo 'A';}); class B { public function __destruct() { echo 'B'; } } $b = new B; ob_start(function($buffer){ $buffer .= 'C'; return $buffer;});

preferences:
46.15 ms | 402 KiB | 5 Q