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 20000-lb PACKAGE"; Preg_match("/(\d+)(\d{3})-lb/ui", $string, $match); $find = $match[0]; $replace = $match[1] .",". $match[2] ."-lb"; Echo length($match); Echo str_replace($find, $replace, $string);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function length() in /in/uNZB6:10 Stack trace: #0 {main} thrown in /in/uNZB6 on line 10
Process exited with code 255.

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:
62.62 ms | 401 KiB | 8 Q