3v4l.org

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

preferences:
73.77 ms | 402 KiB | 5 Q