3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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));
Output for 5.3.20 - 7.2.0
Array ( [0] => 127.0.0.1 [1] => - [2] => - [3] => [08/Dec/2015:13:39:52 [4] => +0800] [5] => "GET [6] => /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 [7] => HTTP/1.1" [8] => 200 [9] => 2110 [10] => "-" [11] => "Mozilla/5.0 [12] => (Windows [13] => NT [14] => 6.1; [15] => WOW64) [16] => AppleWebKit/537.36 [17] => (KHTML, [18] => like [19] => Gecko) [20] => Chrome/46.0.2490.71 [21] => Safari/537.36" )