3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ (object)['serial' => 4444, 'note' => '-'], (object)['serial' => 4444, 'note' => 'information'], (object)['serial' => 111, 'note' => '-'], ]; $serialCounts = array_count_values(array_column($data, 'serial')); foreach ($data as $obj) { printf( '<span class="%s">%s</span>', $serialCounts[$obj->serial] > 1 ? 'text-danger' : 'text-success', $obj->serial ); echo "\n"; }
Output for rfc.property-hooks, git.master, git.master_jit
<span class="text-danger">4444</span> <span class="text-danger">4444</span> <span class="text-success">111</span>

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:
54.96 ms | 1377 KiB | 4 Q