3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $term= '1234'; $term= 'diego 1234'; $term= 'diego rodriguez'; */ $term= 'diego rodriguez 1234'; $terms=explode(' ',$term); var_dump(count($terms)); $where=" AND ("; $i=0; var_dump(is_numeric($term)); /* foreach ($terms as $value) { if($i!=0) $where.=" AND "; $where.=" (firstname LIKE '%".$value."%' OR lastname LIKE '%".$value."%')"; $where.=" ) OR ci LIKE '%".$value."%'"; $where.=" OR nroanterior LIKE '%".$value."%'"; $i++; } var_dump($where); */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/78IFE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $term, !1 = $terms, !2 = $where, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'diego+rodriguez+1234'
   10     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   11     6        INIT_FCALL                                               'var_dump'
          7        COUNT                                            ~7      !1
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
   12    10        ASSIGN                                                   !2, '+AND+%28'
   13    11        ASSIGN                                                   !3, 0
   14    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'is_numeric'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $11     
         16        SEND_VAR                                                 $11
         17        DO_ICALL                                                 
   24    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.54 ms | 1394 KiB | 19 Q