3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Anthony"; var_dump( mb_substr(new stdClass, 0, 7), mb_substr($name, "a", 20), mb_substr($name, 20, "b") );
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: mb_substr(): Argument #1 ($string) must be of type string, stdClass given in /in/sH51s:5 Stack trace: #0 /in/sH51s(5): mb_substr(Object(stdClass), 0, 7) #1 {main} thrown in /in/sH51s 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:
122.17 ms | 405 KiB | 5 Q