3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'http://example.com/topic/Funny/G1pdeJm', 'http://example.com/topic/Funny/viral', 'http://example.com/topic/Funny/time', 'http://example.com/topic/Funny/top', 'http://example.com/topic/Funny/top/week', 'http://example.com/topic/Funny/top/month', 'http://example.com/topic/Funny/top/year', 'http://example.com/topic/Funny/top/all', 'http://example.com/topic/NotFunny/IL2dsRq', ]; $result = []; foreach ($tests as $str) { if (preg_match('~^http://[^/]+/topic/Funny/(?!viral|time|top(?:/week|/month|/year|/all)?)~', $str)) { $result[] = $str; } } var_export($result);
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => 'http://example.com/topic/Funny/G1pdeJm', )

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:
25.32 ms | 408 KiB | 5 Q