3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s=''; $s++; var_dump($s); var_dump(str_increment($s)); var_dump(str_increment('')); var_dump(str_decrement(''));
Output for git.master, git.master_jit
Deprecated: Increment on non-numeric string is deprecated, use str_increment() instead in /in/8jhPc on line 4 string(1) "1" string(1) "2" Fatal error: Uncaught ValueError: str_increment(): Argument #1 ($string) must not be empty in /in/8jhPc:7 Stack trace: #0 /in/8jhPc(7): str_increment('') #1 {main} thrown in /in/8jhPc on line 7
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.67 ms | 405 KiB | 5 Q