3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dbconn = pg_connect("host=localhost dbname=publishing user=www password=foo") or die('No se ha podido conectar: ' . pg_last_error());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i7ueM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $dbconn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'pg_connect'
          1        SEND_VAL_EX                                              'host%3Dlocalhost+dbname%3Dpublishing+user%3Dwww+password%3Dfoo'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                           ~2      !0, $1
          4      > JMPNZ_EX                                         ~2      ~2, ->10
    4     5    >   INIT_FCALL_BY_NAME                                       'pg_last_error'
          6        DO_FCALL                                      0  $3      
          7        CONCAT                                           ~4      'No+se+ha+podido+conectar%3A+', $3
          8      > EXIT                                                     ~4
          9*       BOOL                                             ~2      <true>
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.07 ms | 1393 KiB | 13 Q