3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class HelloWorld { /** * @param mixed $seed */ public static function sayHello($seed): void { print_r((array) $seed); } } HelloWorld::sayHello([0, 1]); HelloWorld::sayHello('test'); HelloWorld::sayHello(null); HelloWorld::sayHello(new \DateTime());
Output for git.master
Array ( [0] => 0 [1] => 1 ) Array ( [0] => test ) Array ( ) Array ( [date] => 2022-09-07 15:48:12.003866 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for git.master_jit
Array ( [0] => 0 [1] => 1 ) Array ( [0] => test ) Array ( ) Array ( [date] => 2022-09-07 15:48:12.004357 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for rfc.property-hooks
Array ( [0] => 0 [1] => 1 ) Array ( [0] => test ) Array ( ) Array ( [date] => 2022-09-07 15:48:12.003675 [timezone_type] => 3 [timezone] => Europe/Amsterdam )

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:
130.71 ms | 412 KiB | 6 Q