3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ie11_ua = 'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko'; $ie10_ua = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)'; $chrome_ua = 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'; $pattern = '/MSIE|Trident/'; $matches = preg_match($pattern, $ie11_ua) === 1; var_dump($matches); $matches = preg_match($pattern, $ie10_ua) === 1; var_dump($matches); $matches = preg_match($pattern, $chrome_ua) === 1; var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(false)

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:
47.88 ms | 401 KiB | 8 Q