3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = mysql_connect('service.davenportmotorco.com', 'jdixon', 'jdixon'); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db('main', $link); if (!db_selected) { die ('Can\'t use myDB: ' . mysql_error()); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/psuOJ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $link, !1 = $db_selected
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'service.davenportmotorco.com'
          2        SEND_VAL_EX                                              'jdixon'
          3        SEND_VAL_EX                                              'jdixon'
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    4     6        BOOL_NOT                                         ~4      !0
          7      > JMPZ                                                     ~4, ->12
    5     8    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          9        DO_FCALL                                      0  $5      
         10        CONCAT                                           ~6      'Not+connected+%3A+', $5
         11      > EXIT                                                     ~6
    8    12    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         13        SEND_VAL_EX                                              'main'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $7      
         16        ASSIGN                                                   !1, $7
    9    17        FETCH_CONSTANT                                   ~9      'db_selected'
         18        BOOL_NOT                                         ~10     ~9
         19      > JMPZ                                                     ~10, ->24
   10    20    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         21        DO_FCALL                                      0  $11     
         22        CONCAT                                           ~12     'Can%27t+use+myDB%3A+', $11
         23      > EXIT                                                     ~12
   12    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.55 ms | 1385 KiB | 13 Q