3v4l.org

run code in 300+ PHP versions simultaneously
<?php $camelTests = [ 'hereIsOne', 'andAnother', 'tryAThirdOne', 'kebab-case', 'getUuid', 'getUUID', 'snake_case', 'mysteryMethod1', 'printIf0Or1', 'itsAMeWario', 'acronymOMGInMiddle', 'DELIMITED_CONSTANT', 'a1AndA2', 'a1andA2', 'StudlyCase', 'FLOTUS', 'makePlanC', '4Life', 'wakeInTheAM', 'code1B35F2', '42', 'aB1c1De' ]; foreach ($camelTests as $test) { printf( "%s%s\n", str_pad($test, 20), preg_match('/^[a-z]+(?:[A-Z](?:[A-Z]?[a-z]+|\d+|$)|\d+)*$/', $test) ? 'PASS' : 'FAIL' ); }
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
hereIsOne PASS andAnother PASS tryAThirdOne PASS kebab-case FAIL getUuid PASS getUUID FAIL snake_case FAIL mysteryMethod1 PASS printIf0Or1 PASS itsAMeWario PASS acronymOMGInMiddle FAIL DELIMITED_CONSTANT FAIL a1AndA2 PASS a1andA2 FAIL StudlyCase FAIL FLOTUS FAIL makePlanC PASS 4Life FAIL wakeInTheAM FAIL code1B35F2 PASS 42 FAIL aB1c1De FAIL

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:
107.46 ms | 408 KiB | 5 Q