3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'my_name_is_John_Doe', 'my_name_is john doe', 'my_name_is_john_doe', 'i_am_20_years_old', "i'm_cool!" ]; foreach ($strings as $string) { echo json_encode([ $string, !strlen(ltrim($string, 'a..z_')), !preg_match('/[a-z_]*[^a-z_]/', $string) ]); echo "\n\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
["my_name_is_John_Doe",false,false] ["my_name_is john doe",false,false] ["my_name_is_john_doe",true,true] ["i_am_20_years_old",false,false] ["i'm_cool!",false,false]

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:
26.23 ms | 405 KiB | 5 Q