3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "2017 MODEL YEAR 6.7L POWER STROKE V8 DIESEL 6-SPEED AUTO TRANS 3.55 ELECTRONIC LOCKING AXLE FX4 OFF-ROAD PACKAGE .SKID PLATES 10000-lb. GVWR PACKAGE"; Preg_match("/(\d+)(\d{3})-lb/", $string, $match); $find = $match[0]; $replace = $match[1] .",". $match[2] ."-lb"; Echo str_replace($find, $replace, $string);
Output for git.master, git.master_jit, rfc.property-hooks
2017 MODEL YEAR 6.7L POWER STROKE V8 DIESEL 6-SPEED AUTO TRANS 3.55 ELECTRONIC LOCKING AXLE FX4 OFF-ROAD PACKAGE .SKID PLATES 10,000-lb. GVWR PACKAGE

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