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/Gb8Be
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/Gb8Be
function name:  getCarrierByName
number of ops:  12
compiled vars:  !0 = $name, !1 = $sql, !2 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        FETCH_CONSTANT                                   ~3      '_DB_PREFIX_'
          2        CONCAT                                           ~4      'SELECT+%2A+FROM+%60', ~3
          3        CONCAT                                           ~5      ~4, 'carrier%60'
          4        ASSIGN                                                   !1, ~5
    5     5        INIT_STATIC_METHOD_CALL                                  'Db', 'getInstance'
          6        DO_FCALL                                      0  $7      
          7        INIT_METHOD_CALL                                         $7, 'executeS'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
   16    11      > RETURN                                                   null

End of function getcarrierbyname

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.64 ms | 1397 KiB | 13 Q