3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$lines=file('your.txt'); $lines=[ 'a:849444988- b:10.0', 'a:748449844- b:15.0', 'a:123456789- b:120.0', 'a:940849847- b:20.0', 'a:474844994- b:55.0' ]; usort($lines,function($a,$b){ return strnatcmp( substr($b,strpos($b,'b:')+2) , substr($a,strpos($a,'b:')+2) ); }); echo implode("\n",$lines);
Output for git.master, git.master_jit, rfc.property-hooks
a:123456789- b:120.0 a:474844994- b:55.0 a:940849847- b:20.0 a:748449844- b:15.0 a:849444988- b:10.0

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