3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $json1 = '[ [ "adminer", "http:\/\/wpn-xm.org\/get.php?s=adminer", "adminer.php", "3.7.1" ], [ "composer", "http:\/\/wpn-xm.org\/get.php?s=composer", "composer.phar", "1.0" ], [ "junction", "http:\/\/wpn-xm.org\/get.php?s=junction", "junction.zip", "1.0" ], [ "mariadb", "http:\/\/wpn-xm.org\/get.php?s=mariadb", "mariadb.zip", "5.5.34" ], [ "memadmin", "http:\/\/wpn-xm.org\/get.php?s=memadmin", "memadmin.zip", "1.0.12" ], [ "memcached", "http:\/\/wpn-xm.org\/get.php?s=memcached", "memcached.zip", "1.4.5" ], [ "mongodb", "http:\/\/wpn-xm.org\/get.php?s=mongodb&v=2.0.8", "mongodb.zip", "2.0.8" ], [ "nginx", "http:\/\/wpn-xm.org\/get.php?s=nginx", "nginx.zip", "1.5.7" ], [ "openssl", "http:\/\/wpn-xm.org\/get.php?s=openssl", "openssl.exe", "1.0.1e" ], [ "pear", "http:\/\/wpn-xm.org\/get.php?s=pear", "go-pear.phar", "1.0" ], [ "php", "http:\/\/wpn-xm.org\/get.php?s=php", "php.zip", "5.4.22" ], [ "phpext_apc", "http:\/\/wpn-xm.org\/get.php?s=phpext_apc", "phpext_apc.zip", "3.1.13" ], [ "phpext_memcache", "http:\/\/wpn-xm.org\/get.php?s=phpext_memcache", "phpext_memcache.zip", "3.0.8" ], [ "phpext_mongo", "http:\/\/wpn-xm.org\/get.php?s=phpext_mongo", "phpext_mongo.zip", "1.4.5" ], [ "phpext_xdebug", "http:\/\/wpn-xm.org\/get.php?s=phpext_xdebug", "phpext_xdebug.dll", "2.2.3" ], [ "phpext_xhprof", "http:\/\/wpn-xm.org\/get.php?s=phpext_xhprof", "phpext_xhprof.zip", "0.10.6" ], [ "phpmemcachedadmin", "http:\/\/wpn-xm.org\/get.php?s=phpmemcachedadmin", "phpmemcachedadmin.zip", "1.2.2" ], [ "phpmyadmin", "http:\/\/wpn-xm.org\/get.php?s=phpmyadmin", "phpmyadmin.zip", "4.1.0-rc1" ], [ "rockmongo", "http:\/\/wpn-xm.org\/get.php?s=rockmongo", "rockmongo.zip", "1.1.5" ], [ "sendmail", "http:\/\/wpn-xm.org\/get.php?s=sendmail", "sendmail.zip", "1.0" ], [ "webgrind", "http:\/\/wpn-xm.org\/get.php?s=webgrind", "webgrind.zip", "1.0" ], [ "wpnxmscp", "http:\/\/wpn-xm.org\/get.php?s=wpnxmscp", "wpnxmscp.zip", "0.5.4" ], [ "xhprof", "http:\/\/wpn-xm.org\/get.php?s=xhprof", "xhprof.zip", "1.0" ] ]'; $json2 = '[ [ "adminer", "http:\/\/wpn-xm.org\/get.php?s=adminer", "adminer.php", "3.7.1" ], [ "composer", "http:\/\/wpn-xm.org\/get.php?s=composer", "composer.phar", "1.0" ], [ "junction", "http:\/\/wpn-xm.org\/get.php?s=junction", "junction.zip", "1.0" ], [ "mariadb", "http:\/\/wpn-xm.org\/get.php?s=mariadb", "mariadb.zip", "5.5.34" ], [ "memadmin", "http:\/\/wpn-xm.org\/get.php?s=memadmin", "memadmin.zip", "1.0.12" ], [ "memcached", "http:\/\/wpn-xm.org\/get.php?s=memcached", "memcached.zip", "1.4.5" ], [ "mongodb", "http:\/\/wpn-xm.org\/get.php?s=mongodb&v=2.0.8", "mongodb.zip", "2.0.8" ], [ "nginx", "http:\/\/wpn-xm.org\/get.php?s=nginx", "nginx.zip", "1.5.8" ], [ "openssl", "http:\/\/wpn-xm.org\/get.php?s=openssl", "openssl.exe", "1.0.1e" ], [ "pear", "http:\/\/wpn-xm.org\/get.php?s=pear", "go-pear.phar", "1.0" ], [ "php", "http:\/\/wpn-xm.org\/get.php?s=php", "php.zip", "5.4.23" ], [ "phpext_apc", "http:\/\/wpn-xm.org\/get.php?s=phpext_apc", "phpext_apc.zip", "3.1.13" ], [ "phpext_memcache", "http:\/\/wpn-xm.org\/get.php?s=phpext_memcache", "phpext_memcache.zip", "3.0.8" ], [ "phpext_mongo", "http:\/\/wpn-xm.org\/get.php?s=phpext_mongo", "phpext_mongo.zip", "1.4.5" ], [ "phpext_xdebug", "http:\/\/wpn-xm.org\/get.php?s=phpext_xdebug", "phpext_xdebug.dll", "2.2.3" ], [ "phpext_xhprof", "http:\/\/wpn-xm.org\/get.php?s=phpext_xhprof", "phpext_xhprof.zip", "0.10.6" ], [ "phpmemcachedadmin", "http:\/\/wpn-xm.org\/get.php?s=phpmemcachedadmin", "phpmemcachedadmin.zip", "1.2.2" ], [ "phpmyadmin", "http:\/\/wpn-xm.org\/get.php?s=phpmyadmin", "phpmyadmin.zip", "4.1.1" ], [ "rockmongo", "http:\/\/wpn-xm.org\/get.php?s=rockmongo", "rockmongo.zip", "1.1.5" ], [ "sendmail", "http:\/\/wpn-xm.org\/get.php?s=sendmail", "sendmail.zip", "1.0" ], [ "webgrind", "http:\/\/wpn-xm.org\/get.php?s=webgrind", "webgrind.zip", "1.0" ], [ "wpnxmscp", "http:\/\/wpn-xm.org\/get.php?s=wpnxmscp", "wpnxmscp.zip", "0.6.0" ], [ "xhprof", "http:\/\/wpn-xm.org\/get.php?s=xhprof", "xhprof.zip", "1.0" ] ]'; $array1 = json_decode($json1, true); $array2 = json_decode($json2, true); $ids = array_map(function($value) { return $value[0]; }, $array2[4]); $new = array_filter($array1, function($var) use ($ids) { return !in_array($var[4], $ids); }); var_dump($new);
based on j38AC
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 Notice: Undefined offset: 4 in /in/3XHV7 on line 59 array(23) { [0]=> array(4) { [0]=> string(7) "adminer" [1]=> string(35) "http://wpn-xm.org/get.php?s=adminer" [2]=> string(11) "adminer.php" [3]=> string(5) "3.7.1" } [1]=> array(4) { [0]=> string(8) "composer" [1]=> string(36) "http://wpn-xm.org/get.php?s=composer" [2]=> string(13) "composer.phar" [3]=> string(3) "1.0" } [2]=> array(4) { [0]=> string(8) "junction" [1]=> string(36) "http://wpn-xm.org/get.php?s=junction" [2]=> string(12) "junction.zip" [3]=> string(3) "1.0" } [3]=> array(4) { [0]=> string(7) "mariadb" [1]=> string(35) "http://wpn-xm.org/get.php?s=mariadb" [2]=> string(11) "mariadb.zip" [3]=> string(6) "5.5.34" } [4]=> array(4) { [0]=> string(8) "memadmin" [1]=> string(36) "http://wpn-xm.org/get.php?s=memadmin" [2]=> string(12) "memadmin.zip" [3]=> string(6) "1.0.12" } [5]=> array(4) { [0]=> string(9) "memcached" [1]=> string(37) "http://wpn-xm.org/get.php?s=memcached" [2]=> string(13) "memcached.zip" [3]=> string(5) "1.4.5" } [6]=> array(4) { [0]=> string(7) "mongodb" [1]=> string(43) "http://wpn-xm.org/get.php?s=mongodb&v=2.0.8" [2]=> string(11) "mongodb.zip" [3]=> string(5) "2.0.8" } [7]=> array(4) { [0]=> string(5) "nginx" [1]=> string(33) "http://wpn-xm.org/get.php?s=nginx" [2]=> string(9) "nginx.zip" [3]=> string(5) "1.5.7" } [8]=> array(4) { [0]=> string(7) "openssl" [1]=> string(35) "http://wpn-xm.org/get.php?s=openssl" [2]=> string(11) "openssl.exe" [3]=> string(6) "1.0.1e" } [9]=> array(4) { [0]=> string(4) "pear" [1]=> string(32) "http://wpn-xm.org/get.php?s=pear" [2]=> string(12) "go-pear.phar" [3]=> string(3) "1.0" } [10]=> array(4) { [0]=> string(3) "php" [1]=> string(31) "http://wpn-xm.org/get.php?s=php" [2]=> string(7) "php.zip" [3]=> string(6) "5.4.22" } [11]=> array(4) { [0]=> string(10) "phpext_apc" [1]=> string(38) "http://wpn-xm.org/get.php?s=phpext_apc" [2]=> string(14) "phpext_apc.zip" [3]=> string(6) "3.1.13" } [12]=> array(4) { [0]=> string(15) "phpext_memcache" [1]=> string(43) "http://wpn-xm.org/get.php?s=phpext_memcache" [2]=> string(19) "phpext_memcache.zip" [3]=> string(5) "3.0.8" } [13]=> array(4) { [0]=> string(12) "phpext_mongo" [1]=> string(40) "http://wpn-xm.org/get.php?s=phpext_mongo" [2]=> string(16) "phpext_mongo.zip" [3]=> string(5) "1.4.5" } [14]=> array(4) { [0]=> string(13) "phpext_xdebug" [1]=> string(41) "http://wpn-xm.org/get.php?s=phpext_xdebug" [2]=> string(17) "phpext_xdebug.dll" [3]=> string(5) "2.2.3" } [15]=> array(4) { [0]=> string(13) "phpext_xhprof" [1]=> string(41) "http://wpn-xm.org/get.php?s=phpext_xhprof" [2]=> string(17) "phpext_xhprof.zip" [3]=> string(6) "0.10.6" } [16]=> array(4) { [0]=> string(17) "phpmemcachedadmin" [1]=> string(45) "http://wpn-xm.org/get.php?s=phpmemcachedadmin" [2]=> string(21) "phpmemcachedadmin.zip" [3]=> string(5) "1.2.2" } [17]=> array(4) { [0]=> string(10) "phpmyadmin" [1]=> string(38) "http://wpn-xm.org/get.php?s=phpmyadmin" [2]=> string(14) "phpmyadmin.zip" [3]=> string(9) "4.1.0-rc1" } [18]=> array(4) { [0]=> string(9) "rockmongo" [1]=> string(37) "http://wpn-xm.org/get.php?s=rockmongo" [2]=> string(13) "rockmongo.zip" [3]=> string(5) "1.1.5" } [19]=> array(4) { [0]=> string(8) "sendmail" [1]=> string(36) "http://wpn-xm.org/get.php?s=sendmail" [2]=> string(12) "sendmail.zip" [3]=> string(3) "1.0" } [20]=> array(4) { [0]=> string(8) "webgrind" [1]=> string(36) "http://wpn-xm.org/get.php?s=webgrind" [2]=> string(12) "webgrind.zip" [3]=> string(3) "1.0" } [21]=> array(4) { [0]=> string(8) "wpnxmscp" [1]=> string(36) "http://wpn-xm.org/get.php?s=wpnxmscp" [2]=> string(12) "wpnxmscp.zip" [3]=> string(5) "0.5.4" } [22]=> array(4) { [0]=> string(6) "xhprof" [1]=> string(34) "http://wpn-xm.org/get.php?s=xhprof" [2]=> string(10) "xhprof.zip" [3]=> string(3) "1.0" } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /in/3XHV7 on line 57
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION, expecting ')' in /in/3XHV7 on line 57
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/3XHV7 on line 57
Process exited with code 255.