3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host="mysql153.secureserver.net"; $uname="java2s"; $pass="password"; $connection= mysql_connect ($host, $uname, $pass); if (!$connection) { die ("A connection to the server could not be established!"); } $result=mysql_create_db ("mydatabase"); if (!$result) { die ("database could not be created!"); } echo "Database megabase was created successfully."; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tuHgD
function name:  (null)
number of ops:  21
compiled vars:  !0 = $host, !1 = $uname, !2 = $pass, !3 = $connection, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mysql153.secureserver.net'
    3     1        ASSIGN                                                   !1, 'java2s'
    4     2        ASSIGN                                                   !2, 'password'
    6     3        INIT_FCALL_BY_NAME                                       'mysql_connect'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                                   !3, $8
    7     9        BOOL_NOT                                         ~10     !3
         10      > JMPZ                                                     ~10, ->12
    8    11    > > EXIT                                                     'A+connection+to+the+server+could+not+be+established%21'
   11    12    >   INIT_FCALL_BY_NAME                                       'mysql_create_db'
         13        SEND_VAL_EX                                              'mydatabase'
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !4, $11
   13    16        BOOL_NOT                                         ~13     !4
         17      > JMPZ                                                     ~13, ->19
   14    18    > > EXIT                                                     'database+could+not+be+created%21'
   16    19    >   ECHO                                                     'Database+megabase+was+created+successfully.'
   17    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.24 ms | 1398 KiB | 13 Q