3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = [ '#online' => 'System is operating at peak performance.', '#performancedegradation' => 'Performance is slower than normal.', '#directonly' => 'Traffic is bypassing Smart CDN system, and going directly to websites.' ]; $regex = '/^(?:' . implode('|', array_keys($lookup)) . ')(?=\s)/m'; $contents = <<<TEXT #online System is operating at peak performance. #directonly Traffic is bypassing Smart CDN system, and going directly to websites. TEXT; $matches = preg_match_all($regex, $contents, $m) ? $m[0] : []; foreach ($matches as $keyword) { printf( '<div class="badge_subpage_system"><h5>%s</h5><p>%s</p></div>', $keyword, $lookup[$keyword] ); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
<div class="badge_subpage_system"><h5>#online</h5><p>System is operating at peak performance.</p></div> <div class="badge_subpage_system"><h5>#directonly</h5><p>Traffic is bypassing Smart CDN system, and going directly to websites.</p></div>

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:
143.95 ms | 406 KiB | 5 Q