3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "SELECT * FROM coches WHERE TIPO LIKE '%pequeño%'"; $result = mysql_query($query) or die("Consulta fallida: " . mysql_error()); $numpeq= mysql_num_rows($result); echo $numpeq;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ukbec
function name:  (null)
number of ops:  17
compiled vars:  !0 = $query, !1 = $result, !2 = $numpeq
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'SELECT+%2A+FROM++coches+WHERE++TIPO+LIKE+%27%25peque%C3%B1o%25%27'
    3     1        INIT_FCALL_BY_NAME                                       'mysql_query'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $4      
          4        ASSIGN                                           ~5      !1, $4
          5      > JMPNZ_EX                                         ~5      ~5, ->11
          6    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          7        DO_FCALL                                      0  $6      
          8        CONCAT                                           ~7      'Consulta+fallida%3A+', $6
          9      > EXIT                                                     ~7
         10*       BOOL                                             ~5      <true>
    4    11    >   INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                                   !2, $8
    5    15        ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.8 ms | 1394 KiB | 13 Q