3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public const MAX_LARGE_LENGTH_BYTES = 1024 + 1; // 1 KiB + 1 % public const MAX_LARGE_LENGTH_BYTES2 = (int) (1024 * 1.01); } var_dump(Foo::MAX_LARGE_LENGTH_BYTES); var_dump(Foo::MAX_LARGE_LENGTH_BYTES2);
Output for git.master_jit, git.master
Fatal error: Constant expression contains invalid operations in /in/OVu3r on line 8 Stack trace: #0 {main}
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:
142.78 ms | 1002 KiB | 7 Q