3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(array_column( [(object) ['foo' => 'bar']], 'foo' ));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
array(1) { [0]=> string(3) "bar" }
Output for branch php-master+opcache
array(1) { [0]=> string(3) "bar" }
Output for branch php-master+jit
array(1) { [0]=> string(3) "bar" }
Output for Typed properties v2
array(1) { [0]=> string(3) "bar" }
Output for Arrow functions
/bin/php-rfc-arrow_functions: error while loading shared libraries: libicui18n.so.58: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for Object typehint
/bin/php-rfc-object-typehint: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for Array change keys
/bin/php-rfc-array_change_keys: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for Lexical anon
/bin/php-rfc-lexical-anon: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory
Process exited with code 127.

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