3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(SOCKET_ECONNREFUSED);
Output for 7.2.0
Warning: Use of undefined constant SOCKET_ECONNREFUSED - assumed 'SOCKET_ECONNREFUSED' (this will throw an Error in a future version of PHP) in /in/6P97S on line 3 string(19) "SOCKET_ECONNREFUSED"
Output for 5.4.10 - 7.1.10
Notice: Use of undefined constant SOCKET_ECONNREFUSED - assumed 'SOCKET_ECONNREFUSED' in /in/6P97S on line 3 string(19) "SOCKET_ECONNREFUSED"
Output for 5.3.20 - 5.3.29
int(111)