3v4l.org

run code in 500+ PHP versions simultaneously
<?php $key = 12; print 'a: ' . substr((string) $key, 0, 1) . "\n"; $key = ''; print 'b: ' . substr((string) $key, 0, 1) . "\n"; $key = '_test'; print 'c: ' . substr((string) $key, 0, 1) . "\n";
Output for rfc.property-hooks, git.master, git.master_jit
a: 1 b: c: _

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:
108.58 ms | 2604 KiB | 4 Q