3v4l.org

run code in 300+ PHP versions simultaneously
<?php $signum = 15; var_dump( current( array_flip( array_filter( get_defined_constants(true)['pcntl'], fn($value, $name) => preg_match("/^SIG[A-Z]/", $name) && $value == $signum, ARRAY_FILTER_USE_BOTH ) ) ) );
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
Warning: Undefined array key "pcntl" in /in/Mk9F4 on line 8 Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /in/Mk9F4:7 Stack trace: #0 /in/Mk9F4(7): array_filter(NULL, Object(Closure), 1) #1 {main} thrown in /in/Mk9F4 on line 7
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:
91.27 ms | 407 KiB | 5 Q