3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = ['', 3, 2]; $min = -str_repeat(9, -str_repeat(9, $matches[1] - $matches[2])); var_dump($min);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: str_repeat(): Argument #2 ($times) must be greater than or equal to 0 in /in/Q4ZUg:5 Stack trace: #0 /in/Q4ZUg(5): str_repeat('9', -9) #1 {main} thrown in /in/Q4ZUg on line 5
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:
38.34 ms | 401 KiB | 8 Q