3v4l.org

run code in 300+ PHP versions simultaneously
<?php function reverseString($string) { $l = strlen($string) - 1; for($i = 0, $j = $l, $e = $l / 2; $i < $e; $i++, $j--) { $string[$i] ^= $string[$j]; $string[$j] ^= $string[$i]; $string[$i] ^= $string[$j]; } return $string; } echo reverseString('fooooooooo');
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Cannot use assign-op operators with string offsets in /in/Y6pDL:8 Stack trace: #0 /in/Y6pDL(16): reverseString('fooooooooo') #1 {main} thrown in /in/Y6pDL on line 8
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:
41.23 ms | 401 KiB | 8 Q