3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "WALIOFANYA MTIHANI : 70 WASTANI WA SHULE : 138.2571 NAFASI YA SHULE KIWILAYA: 25 kati ya 125 NAFASI YA SHULE KIMKOA : 117 kati ya 571 NAFASI YA SHULE KITAIFA : 1249 kati ya 15656 "; if (preg_match_all('/\((\d+(?:\.\d+)?)\)/', $str, $matches) > 0) { var_dump($matches[1]); } preg_match_all('#([0-9.]+)#is', $string, $matches); print_r($matches[1]);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $str in /in/uG41q on line 9 Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/uG41q on line 9 Array ( [0] => 70 [1] => 138.2571 [2] => 25 [3] => 125 [4] => 117 [5] => 571 [6] => 1249 [7] => 15656 )

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:
42.46 ms | 402 KiB | 8 Q