3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = 'root'; $password = 'root'; $db = 'inventory'; $host = 'localhost'; $port = 8889; $link = mysql_connect( "$host:$port", $user, $password ); $db_selected = mysql_select_db( $db, $link ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqVLn
function name:  (null)
number of ops:  20
compiled vars:  !0 = $user, !1 = $password, !2 = $db, !3 = $host, !4 = $port, !5 = $link, !6 = $db_selected
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'root'
    4     1        ASSIGN                                                   !1, 'root'
    5     2        ASSIGN                                                   !2, 'inventory'
    6     3        ASSIGN                                                   !3, 'localhost'
    7     4        ASSIGN                                                   !4, 8889
    9     5        INIT_FCALL_BY_NAME                                       'mysql_connect'
   10     6        ROPE_INIT                                     3  ~13     !3
          7        ROPE_ADD                                      1  ~13     ~13, '%3A'
          8        ROPE_END                                      2  ~12     ~13, !4
          9        SEND_VAL_EX                                              ~12
         10        SEND_VAR_EX                                              !0
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $15     
    9    13        ASSIGN                                                   !5, $15
   14    14        INIT_FCALL_BY_NAME                                       'mysql_select_db'
   15    15        SEND_VAR_EX                                              !2
         16        SEND_VAR_EX                                              !5
         17        DO_FCALL                                      0  $17     
   14    18        ASSIGN                                                   !6, $17
   19    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.73 ms | 1394 KiB | 13 Q