3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(string $a) {} // Calling internal function that uses standard ZPP try { random_bytes([]); } catch(TypeError $e) { echo $e->getMessage() . "\n"; } // Calling internal function that uses custom ZPP try { min(""); } catch(TypeError $e) { echo $e->getMessage() . "\n"; } // Calling user-land function try { foo([]); } catch(TypeError $e) { echo $e->getMessage() . "\n"; }

preferences:
32.29 ms | 405 KiB | 5 Q