3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'C7130A-B', 'RB2-8120', 'RM1-1082-000B', '0950-4768B', 'C7130B', ]; var_export( preg_replace('/-?B$/', '', $array) );
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => 'C7130A', 1 => 'RB2-8120', 2 => 'RM1-1082-000', 3 => '0950-4768', 4 => 'C7130', )

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