3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/html; charset=UIF-8'); mysql_connect('localhost', 'root', '') or die('Cannot connect to database'); mysql_select_db('test') or die('Cannot select database');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UhqH3
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fhtml%3B+charset%3DUIF-8'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL_BY_NAME                                       'mysql_connect'
          4        SEND_VAL_EX                                              'localhost'
          5        SEND_VAL_EX                                              'root'
          6        SEND_VAL_EX                                              ''
          7        DO_FCALL                                      0  $1      
          8      > JMPNZ_EX                                         ~2      $1, ->11
    6     9    > > EXIT                                                     'Cannot+connect+to+database'
         10*       BOOL                                             ~2      <true>
    8    11    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         12        SEND_VAL_EX                                              'test'
         13        DO_FCALL                                      0  $3      
         14      > JMPNZ_EX                                         ~4      $3, ->17
    9    15    > > EXIT                                                     'Cannot+select+database'
         16*       BOOL                                             ~4      <true>
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
262.48 ms | 1395 KiB | 16 Q