3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { echo __METHOD__; yield 1; } foo(); // displays nothing, no code is executed echo 'the end'; // displays the end ?>
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.27, 8.3.29 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.6
the end
Output for 8.3.28
/bin/php-8.3.28: symbol lookup error: /lib/libpthread.so.0: undefined symbol: __libc_siglongjmp, version GLIBC_PRIVATE
Process exited with code 127.

preferences:
52.94 ms | 847 KiB | 4 Q