3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '127.0.0.1 - - [08/Dec/2015:13:39:52 +0800] "GET /static/img/demo/av1.jpg?eventCode=pv&pageId=40119E07-6F56-4007-8C95-6F7533F11A86&siteId=1&referrer=http%3A%2F%2Ff.iqiyi.com%2F&url=http%3A%2F%2Fstar.haibao.com%2Farticle%2F2214845.htm&userId=0&unRegUserId=B178F3C8-02A8-428C-B466-265B8A2AD8C0 HTTP/1.1" 200 2110 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36"'; //print_r(explode(' ', $str)); $p = '/^(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\s-\s(.*)\s\[(.*)\]\s"(.*)\"\s(\d{3})\s(\d+)\s"(.*)"\s\"(.*)\"(.*)$/u'; preg_match($p,$str,$a_match); var_dump($a_match);
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { [0]=> string(424) "127.0.0.1 - - [08/Dec/2015:13:39:52 +0800] "GET /static/img/demo/av1.jpg?eventCode=pv&pageId=40119E07-6F56-4007-8C95-6F7533F11A86&siteId=1&referrer=http%3A%2F%2Ff.iqiyi.com%2F&url=http%3A%2F%2Fstar.haibao.com%2Farticle%2F2214845.htm&userId=0&unRegUserId=B178F3C8-02A8-428C-B466-265B8A2AD8C0 HTTP/1.1" 200 2110 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36"" [1]=> string(9) "127.0.0.1" [2]=> string(1) "-" [3]=> string(26) "08/Dec/2015:13:39:52 +0800" [4]=> string(255) "GET /static/img/demo/av1.jpg?eventCode=pv&pageId=40119E07-6F56-4007-8C95-6F7533F11A86&siteId=1&referrer=http%3A%2F%2Ff.iqiyi.com%2F&url=http%3A%2F%2Fstar.haibao.com%2Farticle%2F2214845.htm&userId=0&unRegUserId=B178F3C8-02A8-428C-B466-265B8A2AD8C0 HTTP/1.1" [5]=> string(3) "200" [6]=> string(4) "2110" [7]=> string(1) "-" [8]=> string(108) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36" [9]=> string(0) "" }

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:
43.92 ms | 403 KiB | 8 Q