3v4l.org

run code in 300+ PHP versions simultaneously
<?php str_contains("", null); // > No errors function _str_contains ( string $haystack , string $needle ) : bool { return true; } _str_contains("", null);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: str_contains(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/OVoa0A on line 3 Fatal error: Uncaught TypeError: _str_contains(): Argument #2 ($needle) must be of type string, null given, called in /in/OVoa0A on line 11 and defined in /in/OVoa0A:6 Stack trace: #0 /in/OVoa0A(11): _str_contains('', NULL) #1 {main} thrown in /in/OVoa0A 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:
60.5 ms | 401 KiB | 8 Q