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: assert($oldcat !== serialize($category)) in /in/aHp9r:19 Stack trace: #0 /in/aHp9r(19): assert(false, 'assert($oldcat ...') #1 {main} thrown in /in/aHp9r 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:
40 ms | 401 KiB | 8 Q