3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $postvals = array( 'barcode' => 'CP021325078TR', 'security_code' => 'v6qnf' ); $_h = curl_init(); curl_setopt($_h, CURLOPT_HEADER, 1); curl_setopt($_h, CURLOPT_RETURNTRANSFER, 1); curl_setopt($_h, CURLOPT_HTTPGET, 1); curl_setopt($_h, CURLOPT_URL, 'http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php' ); curl_setopt($_h, CURLOPT_POST, true ); curl_setopt($_h, CURLOPT_POSTFIELDS, $postvals ); curl_setopt($_h, CURLOPT_DNS_USE_GLOBAL_CACHE, false ); curl_setopt($_h, CURLOPT_DNS_CACHE_TIMEOUT, 2 ); var_dump(curl_exec($_h)); var_dump(curl_getinfo($_h)); var_dump(curl_error($_h));
based on FCYJ5
Output for 7.0.0 - 7.2.12
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/eejtd:8 Stack trace: #0 {main} thrown in /in/eejtd on line 8
Process exited with code 255.
Output for hhvm-3.22.0
Warning: Invalid argument: option: 91 in /in/eejtd on line -1 bool(false) array(26) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(7.7E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) ["redirect_url"]=> NULL ["primary_ip"]=> string(0) "" ["certinfo"]=> array(0) { } ["primary_port"]=> int(0) ["local_ip"]=> string(0) "" ["local_port"]=> int(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.21.3
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(26) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.000101) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) ["redirect_url"]=> NULL ["primary_ip"]=> string(0) "" ["certinfo"]=> array(0) { } ["primary_port"]=> int(0) ["local_ip"]=> string(0) "" ["local_port"]=> int(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.21.0
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(26) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.000105) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) ["redirect_url"]=> NULL ["primary_ip"]=> string(0) "" ["certinfo"]=> array(0) { } ["primary_port"]=> int(0) ["local_ip"]=> string(0) "" ["local_port"]=> int(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.20.2
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(9.6E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.13.2, hhvm-3.19.2
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(8.9E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.18.5
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(8.1E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.18.4
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(7.5E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.11.1, hhvm-3.17.3
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(9.4E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.15.4
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(9.1E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.12.14
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(0.000107) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for hhvm-3.10.1
Warning: Invalid argument: option: 91 in /in/eejtd on line 16 bool(false) array(21) { ["url"]=> string(49) "http://www1.ptt.gov.tr/tr/interaktif/sonuc-yd.php" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["local_port"]=> int(0) ["total_time"]=> float(9.2E-5) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) } string(39) "Could not resolve host: www1.ptt.gov.tr"
Output for 5.0.0 - 5.6.38
Fatal error: Call to undefined function curl_init() in /in/eejtd on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl_init() in /in/eejtd on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl_init() in /in/eejtd on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl_init() in /in/eejtd on line 8