3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strlen(0)); var_dump(strlen(0.0)); var_dump(strlen(null)); var_dump(strlen(false)); var_dump(strlen([]));
Output for git.master, git.master_jit
int(1) int(1) Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/LqVmG on line 4 int(0) int(0) Fatal error: Uncaught TypeError: strlen(): Argument #1 ($str) must be of type string, array given in /in/LqVmG:6 Stack trace: #0 {main} thrown in /in/LqVmG on line 6
Process exited with code 255.
Output for rfc.property-hooks
int(1) int(1) Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/LqVmG on line 4 int(0) int(0) Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in /in/LqVmG:6 Stack trace: #0 {main} thrown in /in/LqVmG on line 6
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:
28.09 ms | 407 KiB | 5 Q