3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "socket extension: ", function_exists("socket_create"), "\n"; echo "socket_import_stream: ", function_exists("socket_import_stream"), "\n"; echo "SOL_SOCKET: ", defined("SOL_SOCKET"), "\n"; echo "SO_KEEPALIVE: ", defined("SO_KEEPALIVE"), "\n";
based on rToJK
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
socket extension: socket_import_stream: SOL_SOCKET: SO_KEEPALIVE:
Output for 4.3.0 - 5.3.29, hhvm-3.10.0 - 3.13.2
socket extension: 1 socket_import_stream: SOL_SOCKET: 1 SO_KEEPALIVE: 1