3v4l.org

run code in 300+ PHP versions simultaneously
<?php $css = ' .some_class { font-size: 11px; margin-left: 0.45px; margin-top:11.0005px; border: 1.1px solid blue; } .another_class { background: rgba(0, 0, 0, 0.2); width: 100%; color: #012345; z-index: 12; font-size: calc(100% + 888.888px); }'; $pattern = "/\b\d{1,4}(?:\.\d{1,4})?px/"; var_export(preg_match_all($pattern, $css, $matches) ? $matches[0] : 'fail');
Output for git.master_jit, git.master, rfc.property-hooks
array ( 0 => '11px', 1 => '0.45px', 2 => '11.0005px', 3 => '1.1px', 4 => '888.888px', )

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