3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello fri3nd, you're looking good today! What a Great day this is! How fancy and cool!"; var_export(preg_split('/(?:\S+\K +){3}/', $str));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'Hello fri3nd, you\'re', 1 => 'looking good today!', 2 => 'What a Great', 3 => 'day this is!', 4 => 'How fancy and', 5 => 'cool!', )

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