3v4l.org

run code in 300+ PHP versions simultaneously
<?php $link = mysql_connect('localhost', 'root', '') or die('ERROR: ' . mysql_error()); $sel = mysql_select_db(DB_NAME, $link) or die('ERROR: ' . mysql_error()); echo 'Hello World'; //echo my_reale_escape_string(trim($_SERVER['HTTP_USER_AGENT']); echo 'Hello World'; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 47) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYhYh
function name:  (null)
number of ops:  27
compiled vars:  !0 = $link, !1 = $sel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_connect'
          1        SEND_VAL_EX                                              'localhost'
          2        SEND_VAL_EX                                              'root'
          3        SEND_VAL_EX                                              ''
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                           ~3      !0, $2
          6      > JMPNZ_EX                                         ~3      ~3, ->12
          7    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          8        DO_FCALL                                      0  $4      
          9        CONCAT                                           ~5      'ERROR%3A+', $4
         10      > EXIT                                                     ~5
         11*       BOOL                                             ~3      <true>
    3    12    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         13        FETCH_CONSTANT                                   ~6      'DB_NAME'
         14        SEND_VAL_EX                                              ~6
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $7      
         17        ASSIGN                                           ~8      !1, $7
         18      > JMPNZ_EX                                         ~8      ~8, ->24
         19    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         20        DO_FCALL                                      0  $9      
         21        CONCAT                                           ~10     'ERROR%3A+', $9
         22      > EXIT                                                     ~10
         23*       BOOL                                             ~8      <true>
    6    24    >   ECHO                                                     'Hello+World'
    8    25        ECHO                                                     'Hello+World'
    9    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.63 ms | 1394 KiB | 13 Q