3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = 'секретный ключ'; class test { public function test(int $secret){} } $test = new test(); $test->test( $secret );
Output for git.master_jit, git.master
Fatal error: Uncaught TypeError: test::test(): Argument #1 ($secret) must be of type int, string given, called in /in/YXOrW on line 7 and defined in /in/YXOrW:4 Stack trace: #0 /in/YXOrW(7): test->test('\xD1\x81\xD0\xB5\xD0\xBA\xD1\x80\xD0\xB5\xD1\x82\xD0\xBD\xD1...') #1 {main} thrown in /in/YXOrW on line 4
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


preferences:
21.79 ms | 405 KiB | 5 Q