3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getCarrierByName($name) { $sql = 'SELECT * FROM `'._DB_PREFIX_.'carrier`'; /* $res = Db::getInstance()->executeS($sql); $id_carrier = intval(Configuration::get('PS_CARRIER_DEFAULT')); foreach($res as $c) { if(strstr(strtolower($name), strtolower($c['name']))) { $id_carrier = $c['id_carrier']; } } return $id_carrier; */ } echo 'ok';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vc1cp
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     'ok'
          1      > RETURN                                                   1

Function getcarrierbyname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vc1cp
function name:  getCarrierByName
number of ops:  6
compiled vars:  !0 = $name, !1 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FETCH_CONSTANT                                   ~2      '_DB_PREFIX_'
          2        CONCAT                                           ~3      'SELECT+%2A+FROM+%60', ~2
          3        CONCAT                                           ~4      ~3, 'carrier%60'
          4        ASSIGN                                                   !1, ~4
   16     5      > RETURN                                                   null

End of function getcarrierbyname

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.41 ms | 933 KiB | 14 Q