3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bin = '402100'; $getbank = explode($bin, file_get_contents("http://bins.pro/search?action=searchbins&bins=" . $bin . "&bank=&country=")); $jeniscc = explode("</td><td>", $getbank[2]); $namabnk = explode("</td></tr>", $jeniscc[5]); $ccbrand = $jeniscc[2]; $ccbank = $namabnk[0]; $cctype = $jeniscc[3]; $ccklas = $jeniscc[4]; //$details = json_decode(xcurl('https://bins.ribbon.co/api/v1/bins/420000'.substr($cardnum, 0, 6))); $info = $ccbrand.'['.$cctype.'-'.$ccklas.'] : '.$ccbank;
Output for 5.3.20 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/Tv8Ko on line 3 Warning: file_get_contents(http://bins.pro/search?action=searchbins&bins=402100&bank=&country=): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/Tv8Ko on line 3 Notice: Undefined offset: 2 in /in/Tv8Ko on line 4 Notice: Undefined offset: 5 in /in/Tv8Ko on line 5 Notice: Undefined offset: 2 in /in/Tv8Ko on line 6 Notice: Undefined offset: 3 in /in/Tv8Ko on line 8 Notice: Undefined offset: 4 in /in/Tv8Ko on line 9
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/Tv8Ko on line 3 Warning: file_get_contents(http://bins.pro/search?action=searchbins&bins=402100&bank=&country=): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/Tv8Ko on line 3 Notice: Undefined offset: 2 in /in/Tv8Ko on line 4 Notice: Undefined offset: 5 in /in/Tv8Ko on line 5 Notice: Undefined offset: 2 in /in/Tv8Ko on line 6 Notice: Undefined offset: 3 in /in/Tv8Ko on line 8 Notice: Undefined offset: 4 in /in/Tv8Ko on line 9