3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); echo "HELLO"; $x = mysql_connect("localhost","peneder","peneder") or die("LOL"); var_dump("BYE"); $sql = new mysqli("localhost:3306", "peneder", "peneder", "peneder"); echo "ASH"; if($sql->connect_errno > 0) echo("SQL ERROR"); $q = $sql->query("SELECT `peneder` FROM `peneder`.`peneder`"); if(!$q) echo("QUERY ERROR"); $PENEDER = []; while($row = $q->fetch_assoc()) array_push($PENEDER[],$row["peneder"]); echo $PENEDER[rand(0,count($PENEDER)-1)]; $q->free(); $sql->close();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 35
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 37
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 37
Branch analysis from position: 47
Branch analysis from position: 37
Branch analysis from position: 35
Branch analysis from position: 28
filename:       /in/OFX6e
function name:  (null)
number of ops:  60
compiled vars:  !0 = $x, !1 = $sql, !2 = $q, !3 = $PENEDER, !4 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        ECHO                                                     'HELLO'
    5     4        INIT_FCALL_BY_NAME                                       'mysql_connect'
          5        SEND_VAL_EX                                              'localhost'
          6        SEND_VAL_EX                                              'peneder'
          7        SEND_VAL_EX                                              'peneder'
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                           ~7      !0, $6
         10      > JMPNZ_EX                                         ~7      ~7, ->13
         11    > > EXIT                                                     'LOL'
         12*       BOOL                                             ~7      <true>
    6    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAL                                                 'BYE'
         15        DO_ICALL                                                 
    7    16        NEW                                              $9      'mysqli'
         17        SEND_VAL_EX                                              'localhost%3A3306'
         18        SEND_VAL_EX                                              'peneder'
         19        SEND_VAL_EX                                              'peneder'
         20        SEND_VAL_EX                                              'peneder'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !1, $9
    8    23        ECHO                                                     'ASH'
    9    24        FETCH_OBJ_R                                      ~12     !1, 'connect_errno'
         25        IS_SMALLER                                               0, ~12
         26      > JMPZ                                                     ~13, ->28
         27    >   ECHO                                                     'SQL+ERROR'
   10    28    >   INIT_METHOD_CALL                                         !1, 'query'
         29        SEND_VAL_EX                                              'SELECT+%60peneder%60+FROM+%60peneder%60.%60peneder%60'
         30        DO_FCALL                                      0  $14     
         31        ASSIGN                                                   !2, $14
   11    32        BOOL_NOT                                         ~16     !2
         33      > JMPZ                                                     ~16, ->35
         34    >   ECHO                                                     'QUERY+ERROR'
   12    35    >   ASSIGN                                                   !3, <array>
   13    36      > JMP                                                      ->43
         37    >   INIT_FCALL                                               'array_push'
         38        FETCH_DIM_W                                      $18     !3
         39        SEND_REF                                                 $18
         40        FETCH_DIM_R                                      ~19     !4, 'peneder'
         41        SEND_VAL                                                 ~19
         42        DO_ICALL                                                 
         43    >   INIT_METHOD_CALL                                         !2, 'fetch_assoc'
         44        DO_FCALL                                      0  $21     
         45        ASSIGN                                           ~22     !4, $21
         46      > JMPNZ                                                    ~22, ->37
   14    47    >   INIT_FCALL                                               'rand'
         48        SEND_VAL                                                 0
         49        COUNT                                            ~23     !3
         50        SUB                                              ~24     ~23, 1
         51        SEND_VAL                                                 ~24
         52        DO_ICALL                                         $25     
         53        FETCH_DIM_R                                      ~26     !3, $25
         54        ECHO                                                     ~26
   15    55        INIT_METHOD_CALL                                         !2, 'free'
         56        DO_FCALL                                      0          
   16    57        INIT_METHOD_CALL                                         !1, 'close'
         58        DO_FCALL                                      0          
         59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.02 ms | 1400 KiB | 21 Q