3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_slice([1,2,3,4,5], "2")); var_dump(array_slice([1,2,3,4,5], "string"));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> int(3) [1]=> int(4) [2]=> int(5) } Fatal error: Uncaught TypeError: array_slice(): Argument #2 ($offset) must be of type int, string given in /in/L1DSG:5 Stack trace: #0 /in/L1DSG(5): array_slice(Array, 'string') #1 {main} thrown in /in/L1DSG 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:
84.25 ms | 401 KiB | 8 Q