3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Content-Type: text/xml'; print substr($text, strchr($text, ':')); print substr($text, strchr($text, ':') + 1); print substr($text, strpos($text, ':') + 1); print substr($text, strpos($text, ':') + 2); print substr($text, 0, strchr($text, ':'));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: substr(): Argument #2 ($offset) must be of type int, string given in /in/TF9f1:4 Stack trace: #0 /in/TF9f1(4): substr('Content-Type: t...', ': text/xml') #1 {main} thrown in /in/TF9f1 on line 4
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:
57.33 ms | 401 KiB | 8 Q