3v4l.org

run code in 300+ PHP versions simultaneously
<?php $category = array('Home', 'Kategória 1', 'Kategória 2', 'Kategória 3', 'Kategória 4'); $oldcat = serialize($category); echo( implode( "|", array_slice( $category, 1, count($category) // kompatibilita s PHP =< 5.2.4 ) ) ); // pole sa nezmenilo assert($oldcat !== serialize($category), 'Pole $category sa zmenilo');
Output for git.master, git.master_jit, rfc.property-hooks
Kategória 1|Kategória 2|Kategória 3|Kategória 4 Fatal error: Uncaught AssertionError: Pole $category sa zmenilo in /in/K7mqf:19 Stack trace: #0 /in/K7mqf(19): assert(false, 'Pole $category ...') #1 {main} thrown in /in/K7mqf on line 19
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:
67.23 ms | 401 KiB | 8 Q