3v4l.org

run code in 200+ PHP versions simultaneously
<?php define('FOO', bin2hex(random_bytes(32))); class Bar { const BAZ = FOO; } var_dump(Bar::BAZ);

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
string(64) "c6ad8c9107a149dce25824851d747db8663e4be91e0ab16d392c20178e632f69"
Output for branch php-master+opcache
string(64) "39c1824fca7a518942219b4813feac0acf79922f9c957617f336bfd334adcafe"
Output for branch php-master+jit
string(64) "fb331c80cb714bb6a9e62cbb313f50f83886249c5f5737daa242258da01bf768"
Output for Typed properties v2
string(64) "8ef5ce87a0193725e092de5f4c3307eca31cfc48126509143297c82b106fa20e"
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