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.31, 8.3.0 - 8.3.27, 8.3.29 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
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:
51.04 ms | 863 KiB | 4 Q