3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "You came in 21st out of 53"; sscanf($str, '%*[^0-9]%d%*[^0-9]%d', $place, $total); var_export(compact(['place', 'total'])); echo "\n---\n"; var_export(sscanf($str, '%*[^0-9]%d%*[^0-9]%d'));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'place' => 21, 'total' => 53, ) --- array ( 0 => 21, 1 => 53, )

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