3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mac_address = array("00b3.62","00c2.c6","0874.02","0c15.39","20d1.60","3010.b3","3052.cb","34a3.95","34c0.59","3859.f9","3c33.00","3cbb.fd","4078.6a","4cb1.99","5440.ad","5832.77","5840.4e","5882.a8","60f4.45","64a6.51","64db.43","68ae.20","68db.ca","6c88.14","70de.e2","70f0.87","74c2.46","783a.84","789f.70","78ff.ca","8096.b1","8438.35","8438.38","886b.6e","8cbf.a6","90c7.d8","9453.30","98fe.94","9c04.eb","9c4f.da","a03b.e3","a0cb.fd","a45e.60","a4e4.b8","ac37.43","b045.19","b876.3f","c0f2.fb","c454.44","c869.cd","c8a8.23","cc3d.82","ccc3.ea","d0fc.cc","d81d.72","d8cf.9c","e425.e7","f0f6.1c"); foreach ($mac_address as $mac) { $url = "http://api.macvendors.com/" . urlencode($mac); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); if($response) { echo "Vendor: $response"; } else { echo "Not Found"; }} ?>
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/VK8AA:5 Stack trace: #0 {main} thrown in /in/VK8AA on line 5
Process exited with code 255.
Output for hhvm-3.12.14 - 3.17.3
Not FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot Found
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function curl_init() in /in/VK8AA on line 5
Process exited with code 255.