3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysql_connect ("localhst","root",""); if(!$con) die('could not correct'); $db=mysql_select_db("bsit 4g",$con); if(!$db) die('database not found'); php?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SWf2t
function name:  (null)
number of ops:  20
compiled vars:  !0 = $con, !1 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'localhst'
          2        SEND_VAL_EX                                              'root'
          3        SEND_VAL_EX                                              ''
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
    3     6        BOOL_NOT                                         ~4      !0
          7      > JMPZ                                                     ~4, ->9
    4     8    > > EXIT                                                     'could+not+correct'
    5     9    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         10        SEND_VAL_EX                                              'bsit+4g'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $5      
         13        ASSIGN                                                   !1, $5
    6    14        BOOL_NOT                                         ~7      !1
         15      > JMPZ                                                     ~7, ->17
    7    16    > > EXIT                                                     'database+not+found'
    8    17    >   FETCH_CONSTANT                                   ~8      'php'
         18        FREE                                                     ~8
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.64 ms | 1393 KiB | 13 Q