3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_loc3 = 'abcd'; $_loc2 = 0; // Wrong: var_dump( ($_loc3[$_loc2] << 24) + ($_loc3[$_loc2 + 1] << 16) + ($_loc3[$_loc2 + 2] << 8) + $_loc3[$_loc2 + 3] ); // Right: var_dump( (ord($_loc3[$_loc2]) << 24) + (ord($_loc3[$_loc2 + 1]) << 16) + (ord($_loc3[$_loc2 + 2]) << 8) + ord($_loc3[$_loc2 + 3]) ); var_dump(0x61626364);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Unsupported operand types: string << int in /in/Y7C24:8 Stack trace: #0 {main} thrown in /in/Y7C24 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:
177.84 ms | 405 KiB | 5 Q