3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address="127.0.0.1"; $port=9875; echo "I am here"; set_time_limit (0); if(false==($socket= socket_create(AF_INET,SOCK_STREAM, SOL_TCP))) { echo "could not create socket"; } socket_bind($socket, $address, $port) or die ("could not bind socket"); socket_listen($socket); if(($client=socket_accept($socket))) echo "client is here"; socket_close($socket); ?>
Output for git.master, git.master_jit, rfc.property-hooks
I am here Fatal error: Uncaught Error: Call to undefined function socket_create() in /in/r1JqK:6 Stack trace: #0 {main} thrown in /in/r1JqK on line 6
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.64 ms | 401 KiB | 8 Q