3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $bar = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); echo (string) $foo, "\n", (string) $bar;
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function socket_create() in /in/CcvHd:2 Stack trace: #0 {main} thrown in /in/CcvHd on line 2
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function socket_create() in /in/CcvHd on line 2
Process exited with code 255.
Output for 5.2.3 - 5.3.29
Resource id #4 Resource id #5
Output for 4.3.0 - 5.2.2
Resource id #1 Resource id #2