3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; }} ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 34
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 34
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/VK8AA
function name:  (null)
number of ops:  36
compiled vars:  !0 = $mac_address, !1 = $mac, !2 = $url, !3 = $ch, !4 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_R                                       $6      !0, ->34
          2    > > FE_FETCH_R                                               $6, !1, ->34
    4     3    >   INIT_FCALL                                               'urlencode'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        CONCAT                                           ~8      'http%3A%2F%2Fapi.macvendors.com%2F', $7
          7        ASSIGN                                                   !2, ~8
    5     8        INIT_FCALL_BY_NAME                                       'curl_init'
          9        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !3, $10
    6    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !3
         13        FETCH_CONSTANT                                   ~12     'CURLOPT_URL'
         14        SEND_VAL_EX                                              ~12
         15        SEND_VAR_EX                                              !2
         16        DO_FCALL                                      0          
    7    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !3
         19        FETCH_CONSTANT                                   ~14     'CURLOPT_RETURNTRANSFER'
         20        SEND_VAL_EX                                              ~14
         21        SEND_VAL_EX                                              1
         22        DO_FCALL                                      0          
    8    23        INIT_FCALL_BY_NAME                                       'curl_exec'
         24        SEND_VAR_EX                                              !3
         25        DO_FCALL                                      0  $16     
         26        ASSIGN                                                   !4, $16
    9    27      > JMPZ                                                     !4, ->32
   10    28    >   NOP                                                      
         29        FAST_CONCAT                                      ~18     'Vendor%3A+', !4
         30        ECHO                                                     ~18
         31      > JMP                                                      ->33
   12    32    >   ECHO                                                     'Not+Found'
    3    33    > > JMP                                                      ->2
         34    >   FE_FREE                                                  $6
   14    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.1 ms | 1396 KiB | 15 Q