3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "💩 happens", "I'm getting too old for this 💩", "shiitake", "Mondays are 💩, Tuesdays are 💩, and so on!", "Here is your Finnish itinerary", "Is this chocolate or 💩?" ]; var_export( preg_filter('/💩/u', 'poop', $array, 1, $count) ); echo "\n---\ncount: $count";
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'poop happens', 1 => 'I\'m getting too old for this poop', 3 => 'Mondays are poop, Tuesdays are 💩, and so on!', 5 => 'Is this chocolate or poop?', ) --- count: 4

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