3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=0); function a(float $a) { var_dump($a); } a(1); a(1.1); a("12"); a("banana");
Output for git.master_jit, git.master, rfc.property-hooks
float(1) float(1.1) float(12) Fatal error: Uncaught TypeError: a(): Argument #1 ($a) must be of type float, string given, called in /in/GrMs9 on line 10 and defined in /in/GrMs9:3 Stack trace: #0 /in/GrMs9(10): a('banana') #1 {main} thrown in /in/GrMs9 on line 3
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:
37.55 ms | 1658 KiB | 4 Q