3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt = '2011-12-17 09:30:56'; var_dump( sscanf($dt, '%04s-%02s-%02s %02s:%02s:%02s'), sscanf($dt, '%[^-]-%[^-]-%s %[^:]:%[^:]:%s'), sscanf($dt, '%d-%d-%d %d:%d:%d'), );
Output for git.master_jit, git.master, rfc.property-hooks
array(6) { [0]=> string(4) "2011" [1]=> string(2) "12" [2]=> string(2) "17" [3]=> string(2) "09" [4]=> string(2) "30" [5]=> string(2) "56" } array(6) { [0]=> string(4) "2011" [1]=> string(2) "12" [2]=> string(2) "17" [3]=> string(2) "09" [4]=> string(2) "30" [5]=> string(2) "56" } array(6) { [0]=> int(2011) [1]=> int(12) [2]=> int(17) [3]=> int(9) [4]=> int(30) [5]=> int(56) }

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:
37.78 ms | 406 KiB | 5 Q