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 }
Output for git.master, git.master_jit, rfc.property-hooks
Başarısız bir işlem gerçekleşti.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
29.72 ms | 401 KiB | 8 Q