3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sambung=mysql_pconnect("localhost","root",""); if($sambung){ echo"Koneksi berhasil <br>"; } else{ echo"Koneksi gagal<brr>"; } $pilih=mysql_select_db("latihan"); $tabel="create table siswa(nomor int(10) auto_increment primary key, nama char(50), alamat char(250))"; $buat_tabel=mysql_query($tabel); if($buat_tabel){ echo"Tabel siswa berhasil dibuat"; } else{ echo"Tabel siswa gagal dibuat:".mysql_error(); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
Branch analysis from position: 22
filename:       /in/eu2dl
function name:  (null)
number of ops:  27
compiled vars:  !0 = $sambung, !1 = $pilih, !2 = $tabel, !3 = $buat_tabel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysql_pconnect'
          1        SEND_VAL_EX                                              'localhost'
          2        SEND_VAL_EX                                              'root'
          3        SEND_VAL_EX                                              ''
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !0, $4
    3     6      > JMPZ                                                     !0, ->9
    4     7    >   ECHO                                                     'Koneksi+berhasil+%3Cbr%3E'
          8      > JMP                                                      ->10
    7     9    >   ECHO                                                     'Koneksi+gagal%3Cbrr%3E'
   10    10    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
         11        SEND_VAL_EX                                              'latihan'
         12        DO_FCALL                                      0  $6      
         13        ASSIGN                                                   !1, $6
   11    14        ASSIGN                                                   !2, 'create+table+siswa%28nomor+int%2810%29+auto_increment+primary+key%2C%0Anama+char%2850%29%2C+alamat+char%28250%29%29'
   13    15        INIT_FCALL_BY_NAME                                       'mysql_query'
         16        SEND_VAR_EX                                              !2
         17        DO_FCALL                                      0  $9      
         18        ASSIGN                                                   !3, $9
   15    19      > JMPZ                                                     !3, ->22
   16    20    >   ECHO                                                     'Tabel+siswa+berhasil+dibuat'
         21      > JMP                                                      ->26
   19    22    >   INIT_FCALL_BY_NAME                                       'mysql_error'
         23        DO_FCALL                                      0  $11     
         24        CONCAT                                           ~12     'Tabel+siswa+gagal+dibuat%3A', $11
         25        ECHO                                                     ~12
   21    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.96 ms | 1395 KiB | 13 Q