3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ /** * [getData description] * @param array $data [description] * @param string $a [description] * @param int $b [description] * @param boolean $c [description] * @param float $d [description] * @return [type] [description] */ public function getData(array $data, string $a, int $b, float $f, double $d, boolean $c) {} } $a = new A(); $a->getData(["as"],"assasa",12345, 64.153454, 65.41, true);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: "double" will be interpreted as a class name. Did you mean "float"? Write "\double" to suppress this warning in /in/hUEnW on line 13 Warning: "boolean" will be interpreted as a class name. Did you mean "bool"? Write "\boolean" to suppress this warning in /in/hUEnW on line 13 Fatal error: Uncaught TypeError: A::getData(): Argument #5 ($d) must be of type double, float given, called in /in/hUEnW on line 18 and defined in /in/hUEnW:13 Stack trace: #0 /in/hUEnW(18): A->getData(Array, 'assasa', 12345, 64.153454, 65.41, true) #1 {main} thrown in /in/hUEnW on line 13
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:
61.99 ms | 402 KiB | 8 Q