3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = mysql_query('SELECT * WHERE 1=1'); if (!$result) { die('Invalid query: ' . mysql_error()); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JKLgl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_query'
          1        SEND_VAL_EX                                              'SELECT+%2A+WHERE+1%3D1'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    3     4        BOOL_NOT                                         ~3      !0
          5      > JMPZ                                                     ~3, ->10
    4     6    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          7        DO_FCALL                                      0  $4      
          8        CONCAT                                           ~5      'Invalid+query%3A+', $4
          9      > EXIT                                                     ~5
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.44 ms | 1392 KiB | 13 Q