3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rooms = array ( 'The Lounge' => array ( 'id' => 1, 'privacy' => 'public', 'users' => array ( 'QUICHE POIREAU' => array ( 'smiley' => 'smi_smile.gif', 'name' => 'QUICHEPOIREAU', 'state' => NULL, 'id' => 1 ), 'JOHN DOE' => array ( 'smiley' => 'smi_smile.gif', 'name' => 'JoeFRANC', 'id' => 40 ), ) ), 'The Beach' => array ( 'id' => 2, 'privacy' => 'public', 'users' => array ( Null => array ( 'smiley' => Null, 'name' => Null, 'state' => Null, 'id' => Null ), ), ) ); foreach ($rooms as $name => $room) { $users = count(array_filter(array_keys($room['users']))); echo "$name: $users users\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
The Lounge: 2 users The Beach: 0 users

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:
126.88 ms | 405 KiB | 5 Q