3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'js' => array( 'detailgallery' => array( 0 => 'wowslider.js', 1 => 'jquery.elevatezoom.min.js', 2 => 'jquery.fancybox.pack.js', 3 => 'prism.j' ), 'filemanager' => array( 0 => 'plugin.min.js', 1 => 'plugin.j' ), 'jqrating' => array( 0 => 'jRating.jquery.js', 1 => 'jq-rating.j' ), 'multiselect' => array( 0 => 'ui.multiselect.js', 1 => 'jquery.localisation-min.js', 2 => 'jquery.scrollTo.js', 3 => 'multi.j' ), 'imagegallery' => array( 0 => 'wowslider.j' ), 'x_editable' => array( 0 => '2-moment.min.js', 1 => '6-typeaheadjs.js', 2 => '3-bootstrap.js', 3 => '5-typeahead.js', 4 => '7-address.js', 5 => '4-bootstrap-editable.js', 6 => '1-jquery.mockjax.j' ), 'jqalert' => array( 0 => 'jquery.alerts.j' ), 'tiny_mce' => array( 0 => 'jquery.tinymce.js', 1 => 'tiny_mce.js', 2 => 'tinymce.min.js', 3 => 'tiny_mce_popup.js', 4 => 'tiny_mce_src.j' ), 'thickbox' => array( 0 => 'thickbox.j' ), 'colorbox' => array( 0 => 'colorbox.j' ), 'fancybox' => array( 0 => 'jquery.fancybox-media.js', 1 => 'jquery.fancybox-buttons.js', 2 => 'a_jquery.fancybox.js', 3 => 'jquery.mousewheel-3.0.6.pack.js', 4 => 'jquery.fancybox.pack.js', 5 => 'jquery.fancybox-thumbs.js', 6 => 'jquery.mockjax.j' ), 'chosen' => array( 0 => 'chosen.jquery.j' ), 'rating' => array( 0 => 'jquery.MetaData.js', 1 => 'jquery.rating.j' ), 'magnific-popup' => array( 0 => 'jquery.magnific-popup.j' ), 'glasscase' => array( 0 => 'jquery.glasscase.min.js', 1 => 'modernizr.custom.j' ), 'validate' => array( 0 => 'jquery.validate.j' ), 'uploadify' => array( 0 => 'jquery.uploadify.js', 1 => 'thickbox.j' ), 'smartmenus' => array( 0 => 'jquery.smartmenus.js', 1 => 'smartmenus.j' ), 'jqautocomplete' => array( -1 => '' ), 'jquery-ui' => array( 0 => 'jquery-ui.min.j' ), 'datepicker' => array( 0 => 'jquery-ui-timepicker-addon.j' ), 'flowplayer' => array( 0 => 'flowplayer-3.2.12.min.j' ), 'masonry' => array( 0 => 'imagesLoaded.js', 1 => 'masonry.pkgd.min.j' ), 'colorpicker' => array( 0 => 'rgbslider.js', 1 => 'jquery.ui.colorpicker-nl.js', 2 => 'memory.js', 3 => 'pantone.js', 4 => 'colorpicker.j' ), 'tinyslider' => array( 0 => 'tinycarousel.j' ), 'custom_checkbox' => array( 0 => 'icheck.j' ), 'captcha' => array( 0 => 'captcha.min.j' ), 'autocomplete_token' => array( 0 => 'jquery.tokeninput.j' ), 'tabs' => array( 0 => 'tabs.j' ) ), 'css' => array( 'detailgallery' => array( 0 => 'ws_zoom.css', 1 => 'wowslider.cs' ), 'jqrating' => array( 0 => 'font-awesome.min.css', 1 => 'jRating.jquery.cs' ), 'multiselect' => array( 0 => 'ui.multiselect.cs' ), 'imagegallery' => array( 0 => 'wowslider.cs' ), 'x_editable' => array( 0 => 'select2.css', 1 => 'typeahead.js-bootstrap.css', 2 => 'select2-bootstrap.css', 3 => 'bootstrap.css', 4 => 'bootstrap-editable.cs' ), 'jqalert' => array( 0 => 'jquery.alerts.cs' ), '__rating' => array( 0 => 'jquery.rating.cs' ), 'thickbox' => array( 0 => 'thickbox.cs' ), 'colorbox' => array( 0 => 'colorbox4.css', 1 => 'colorbox5.css', 2 => 'colorbox1.css', 3 => 'colorbox2.css', 4 => 'colorbox3.cs' ), 'fancybox' => array( 0 => 'jquery.fancybox-buttons.css', 1 => 'jquery.fancybox.css', 2 => 'jquery.fancybox-thumbs.cs' ), 'chosen' => array( 0 => 'chosen.min.cs' ), 'magnific-popup' => array( 0 => 'magnific-popup.cs' ), 'glasscase' => array( 0 => 'glasscase.min.cs' ), 'uploadify' => array( 0 => 'related.css', 1 => 'thickbox.css', 2 => 'uploadify.cs' ), 'smartmenus' => array( 0 => 'sm-blue.css', 1 => 'sm-core-css.css', 2 => 'demo.cs' ), 'jqautocomplete' => array( 0 => 'jquery-ui-1.10.4.custom.min.css', 1 => 'jqautocomplete.cs' ), 'jquery-ui' => array( 0 => 'jquery-ui-1.10.4.custom.min.cs' ), 'datepicker' => array( 0 => 'jquery-ui-1.10.4.custom.min.cs' ), 'masonry' => array( 0 => 'component.cs' ), 'colorpicker' => array( 0 => 'colorpicker.cs' ), 'tinyslider' => array( 0 => 'tinyslider.cs' ), 'custom_checkbox' => array( 0 => 'futurico.css', 1 => 'minimal.css', 2 => 'polaris.css', 3 => 'flat.css', 4 => 'square_red.css', 5 => 'line.cs' ), 'autocomplete_token' => array( 0 => 'token-input.css', 1 => 'token-input-facebook.css', 2 => 'token-input-mac.cs' ) ) ); print_r($arr);
Output for 4.3.0 - 7.1.7
Array ( [js] => Array ( [detailgallery] => Array ( [0] => wowslider.js [1] => jquery.elevatezoom.min.js [2] => jquery.fancybox.pack.js [3] => prism.j ) [filemanager] => Array ( [0] => plugin.min.js [1] => plugin.j ) [jqrating] => Array ( [0] => jRating.jquery.js [1] => jq-rating.j ) [multiselect] => Array ( [0] => ui.multiselect.js [1] => jquery.localisation-min.js [2] => jquery.scrollTo.js [3] => multi.j ) [imagegallery] => Array ( [0] => wowslider.j ) [x_editable] => Array ( [0] => 2-moment.min.js [1] => 6-typeaheadjs.js [2] => 3-bootstrap.js [3] => 5-typeahead.js [4] => 7-address.js [5] => 4-bootstrap-editable.js [6] => 1-jquery.mockjax.j ) [jqalert] => Array ( [0] => jquery.alerts.j ) [tiny_mce] => Array ( [0] => jquery.tinymce.js [1] => tiny_mce.js [2] => tinymce.min.js [3] => tiny_mce_popup.js [4] => tiny_mce_src.j ) [thickbox] => Array ( [0] => thickbox.j ) [colorbox] => Array ( [0] => colorbox.j ) [fancybox] => Array ( [0] => jquery.fancybox-media.js [1] => jquery.fancybox-buttons.js [2] => a_jquery.fancybox.js [3] => jquery.mousewheel-3.0.6.pack.js [4] => jquery.fancybox.pack.js [5] => jquery.fancybox-thumbs.js [6] => jquery.mockjax.j ) [chosen] => Array ( [0] => chosen.jquery.j ) [rating] => Array ( [0] => jquery.MetaData.js [1] => jquery.rating.j ) [magnific-popup] => Array ( [0] => jquery.magnific-popup.j ) [glasscase] => Array ( [0] => jquery.glasscase.min.js [1] => modernizr.custom.j ) [validate] => Array ( [0] => jquery.validate.j ) [uploadify] => Array ( [0] => jquery.uploadify.js [1] => thickbox.j ) [smartmenus] => Array ( [0] => jquery.smartmenus.js [1] => smartmenus.j ) [jqautocomplete] => Array ( [-1] => ) [jquery-ui] => Array ( [0] => jquery-ui.min.j ) [datepicker] => Array ( [0] => jquery-ui-timepicker-addon.j ) [flowplayer] => Array ( [0] => flowplayer-3.2.12.min.j ) [masonry] => Array ( [0] => imagesLoaded.js [1] => masonry.pkgd.min.j ) [colorpicker] => Array ( [0] => rgbslider.js [1] => jquery.ui.colorpicker-nl.js [2] => memory.js [3] => pantone.js [4] => colorpicker.j ) [tinyslider] => Array ( [0] => tinycarousel.j ) [custom_checkbox] => Array ( [0] => icheck.j ) [captcha] => Array ( [0] => captcha.min.j ) [autocomplete_token] => Array ( [0] => jquery.tokeninput.j ) [tabs] => Array ( [0] => tabs.j ) ) [css] => Array ( [detailgallery] => Array ( [0] => ws_zoom.css [1] => wowslider.cs ) [jqrating] => Array ( [0] => font-awesome.min.css [1] => jRating.jquery.cs ) [multiselect] => Array ( [0] => ui.multiselect.cs ) [imagegallery] => Array ( [0] => wowslider.cs ) [x_editable] => Array ( [0] => select2.css [1] => typeahead.js-bootstrap.css [2] => select2-bootstrap.css [3] => bootstrap.css [4] => bootstrap-editable.cs ) [jqalert] => Array ( [0] => jquery.alerts.cs ) [__rating] => Array ( [0] => jquery.rating.cs ) [thickbox] => Array ( [0] => thickbox.cs ) [colorbox] => Array ( [0] => colorbox4.css [1] => colorbox5.css [2] => colorbox1.css [3] => colorbox2.css [4] => colorbox3.cs ) [fancybox] => Array ( [0] => jquery.fancybox-buttons.css [1] => jquery.fancybox.css [2] => jquery.fancybox-thumbs.cs ) [chosen] => Array ( [0] => chosen.min.cs ) [magnific-popup] => Array ( [0] => magnific-popup.cs ) [glasscase] => Array ( [0] => glasscase.min.cs ) [uploadify] => Array ( [0] => related.css [1] => thickbox.css [2] => uploadify.cs ) [smartmenus] => Array ( [0] => sm-blue.css [1] => sm-core-css.css [2] => demo.cs ) [jqautocomplete] => Array ( [0] => jquery-ui-1.10.4.custom.min.css [1] => jqautocomplete.cs ) [jquery-ui] => Array ( [0] => jquery-ui-1.10.4.custom.min.cs ) [datepicker] => Array ( [0] => jquery-ui-1.10.4.custom.min.cs ) [masonry] => Array ( [0] => component.cs ) [colorpicker] => Array ( [0] => colorpicker.cs ) [tinyslider] => Array ( [0] => tinyslider.cs ) [custom_checkbox] => Array ( [0] => futurico.css [1] => minimal.css [2] => polaris.css [3] => flat.css [4] => square_red.css [5] => line.cs ) [autocomplete_token] => Array ( [0] => token-input.css [1] => token-input-facebook.css [2] => token-input-mac.cs ) ) )