3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { // Fonksiyonu çağır ve sonucu $response değişkenine ata $response = myFunction(); // Eğer success değeri false ise bir işlem yap if (!$response['success']) { // İşlem yapılacak kod buraya gelecek echo "Başarısız bir işlem gerçekleşti."; } } catch (Exception $e) { // Fonksiyon bir hata fırlattığında bu blok çalışır echo "Hata oluştu: " . $e->getMessage(); } function myFunction() { // Fonksiyonun işlemleri burada gerçekleşir // Eğer bir hata olursa, Exception fırlatılabilir // Bu örnekte hata fırlatılmadığı varsayılarak basit bir dizi döndürüyoruz return ['success' => false]; // veya ['success' => true] gibi bir değer dönebilir }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eqRFW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $response, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL_BY_NAME                                       'myFunction'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    8     3        FETCH_DIM_R                                      ~4      !0, 'success'
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->7
   10     6    >   ECHO                                                     'Ba%C5%9Far%C4%B1s%C4%B1z+bir+i%C5%9Flem+ger%C3%A7ekle%C5%9Fti.'
          7    > > JMP                                                      ->13
   13     8  E > > CATCH                                       last         'Exception'
   15     9    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         10        DO_FCALL                                      0  $6      
         11        CONCAT                                           ~7      'Hata+olu%C5%9Ftu%3A+', $6
         12        ECHO                                                     ~7
   23    13    > > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eqRFW
function name:  myFunction
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E > > RETURN                                                   <array>
   23     1*     > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.59 ms | 1398 KiB | 13 Q