3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = <<<EOF a:13:{i:1;a:11:{s:2:"id";i:1;s:8:"naviname";s:6:"首页";s:3:"url";s:0:"";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"y";s:4:"type";i:1;s:6:"typeId";i:0;s:5:"taxis";i:1;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:4;a:11:{s:2:"id";i:4;s:8:"naviname";s:3:"PHP";s:3:"url";s:31:"http://blog.libnav.com/sort/php";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:1;s:5:"taxis";i:4;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:30;a:11:{s:2:"id";i:30;s:8:"naviname";s:6:"Python";s:3:"url";s:34:"http://blog.libnav.com/sort/python";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:18;s:5:"taxis";i:5;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:15;a:11:{s:2:"id";i:15;s:8:"naviname";s:9:"服务端";s:3:"url";s:33:"http://blog.libnav.com/sort/linux";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:6;s:5:"taxis";i:6;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:23;a:11:{s:2:"id";i:23;s:8:"naviname";s:9:"数据库";s:3:"url";s:31:"http://blog.libnav.com/sort/sql";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:16;s:5:"taxis";i:7;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:19;a:11:{s:2:"id";i:19;s:8:"naviname";s:6:"版本";s:3:"url";s:31:"http://blog.libnav.com/sort/git";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:12;s:5:"taxis";i:8;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:27;a:11:{s:2:"id";i:27;s:8:"naviname";s:6:"开源";s:3:"url";s:32:"http://blog.libnav.com/sort/open";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:19;s:5:"taxis";i:9;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:24;a:11:{s:2:"id";i:24;s:8:"naviname";s:6:"前端";s:3:"url";s:36:"http://blog.libnav.com/sort/frontend";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:17;s:5:"taxis";i:10;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:20;a:11:{s:2:"id";i:20;s:8:"naviname";s:6:"随笔";s:3:"url";s:33:"http://blog.libnav.com/sort/essay";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:13;s:5:"taxis";i:11;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:28;a:11:{s:2:"id";i:28;s:8:"naviname";s:6:"留言";s:3:"url";s:40:"http://blog.libnav.com/message-wall.html";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:5;s:6:"typeId";i:322;s:5:"taxis";i:12;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:31;a:12:{s:2:"id";i:31;s:8:"naviname";s:12:"分享导航";s:3:"url";s:24:"http://share.libnav.com/";s:6:"newtab";s:1:"y";s:9:"isdefault";s:1:"n";s:4:"type";i:0;s:6:"typeId";i:0;s:5:"taxis";i:14;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}s:9:"childnavi";a:0:{}}i:34;a:12:{s:2:"id";i:34;s:8:"naviname";s:14:"Github Project";s:3:"url";s:20:"http://sae.cfphp.com";s:6:"newtab";s:1:"y";s:9:"isdefault";s:1:"n";s:4:"type";i:0;s:6:"typeId";i:0;s:5:"taxis";i:15;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}s:9:"childnavi";a:0:{}}i:33;a:12:{s:2:"id";i:33;s:8:"naviname";s:6:"投稿";s:3:"url";s:45:"http://blog.libnav.com/?plugin=qiukong_submit";s:6:"newtab";s:1:"y";s:9:"isdefault";s:1:"n";s:4:"type";i:0;s:6:"typeId";i:0;s:5:"taxis";i:100;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}s:9:"childnavi";a:0:{}}} EOF; echo $a;
Output for 4.3.0 - 7.2.0
a:13:{i:1;a:11:{s:2:"id";i:1;s:8:"naviname";s:6:"首页";s:3:"url";s:0:"";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"y";s:4:"type";i:1;s:6:"typeId";i:0;s:5:"taxis";i:1;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:4;a:11:{s:2:"id";i:4;s:8:"naviname";s:3:"PHP";s:3:"url";s:31:"http://blog.libnav.com/sort/php";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:1;s:5:"taxis";i:4;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:30;a:11:{s:2:"id";i:30;s:8:"naviname";s:6:"Python";s:3:"url";s:34:"http://blog.libnav.com/sort/python";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:18;s:5:"taxis";i:5;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:15;a:11:{s:2:"id";i:15;s:8:"naviname";s:9:"服务端";s:3:"url";s:33:"http://blog.libnav.com/sort/linux";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:6;s:5:"taxis";i:6;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:23;a:11:{s:2:"id";i:23;s:8:"naviname";s:9:"数据库";s:3:"url";s:31:"http://blog.libnav.com/sort/sql";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:16;s:5:"taxis";i:7;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:19;a:11:{s:2:"id";i:19;s:8:"naviname";s:6:"版本";s:3:"url";s:31:"http://blog.libnav.com/sort/git";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:12;s:5:"taxis";i:8;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:27;a:11:{s:2:"id";i:27;s:8:"naviname";s:6:"开源";s:3:"url";s:32:"http://blog.libnav.com/sort/open";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:19;s:5:"taxis";i:9;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:24;a:11:{s:2:"id";i:24;s:8:"naviname";s:6:"前端";s:3:"url";s:36:"http://blog.libnav.com/sort/frontend";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:17;s:5:"taxis";i:10;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:20;a:11:{s:2:"id";i:20;s:8:"naviname";s:6:"随笔";s:3:"url";s:33:"http://blog.libnav.com/sort/essay";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:4;s:6:"typeId";i:13;s:5:"taxis";i:11;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:28;a:11:{s:2:"id";i:28;s:8:"naviname";s:6:"留言";s:3:"url";s:40:"http://blog.libnav.com/message-wall.html";s:6:"newtab";s:1:"n";s:9:"isdefault";s:1:"n";s:4:"type";i:5;s:6:"typeId";i:322;s:5:"taxis";i:12;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}}i:31;a:12:{s:2:"id";i:31;s:8:"naviname";s:12:"分享导航";s:3:"url";s:24:"http://share.libnav.com/";s:6:"newtab";s:1:"y";s:9:"isdefault";s:1:"n";s:4:"type";i:0;s:6:"typeId";i:0;s:5:"taxis";i:14;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}s:9:"childnavi";a:0:{}}i:34;a:12:{s:2:"id";i:34;s:8:"naviname";s:14:"Github Project";s:3:"url";s:20:"http://sae.cfphp.com";s:6:"newtab";s:1:"y";s:9:"isdefault";s:1:"n";s:4:"type";i:0;s:6:"typeId";i:0;s:5:"taxis";i:15;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}s:9:"childnavi";a:0:{}}i:33;a:12:{s:2:"id";i:33;s:8:"naviname";s:6:"投稿";s:3:"url";s:45:"http://blog.libnav.com/?plugin=qiukong_submit";s:6:"newtab";s:1:"y";s:9:"isdefault";s:1:"n";s:4:"type";i:0;s:6:"typeId";i:0;s:5:"taxis";i:100;s:4:"hide";s:1:"n";s:3:"pid";i:0;s:8:"children";a:0:{}s:9:"childnavi";a:0:{}}}