3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function _isCurl(){ return function_exists('curl_version'); } if(_isCurl){ echo 'yes'; }
based on 4MKHO
Output for 7.2.0
Warning: Use of undefined constant _isCurl - assumed '_isCurl' (this will throw an Error in a future version of PHP) in /in/YqRVO on line 6 yes
Output for 5.5.0 - 7.1.10
Notice: Use of undefined constant _isCurl - assumed '_isCurl' in /in/YqRVO on line 6 yes