3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo sscanf('', '%d', $num); // -1 echo "\n"; echo sscanf('foo', '%d', $num); // 0 echo "\n"; echo sscanf('411', '%d', $num); // 1 echo "\n"; echo sscanf('411', '%d%d', $num); // Fatal error: Uncaught ValueError: Different numbers of variable names and field specifiers /* echo "\n---\n"; var_export(sscanf('', '%d')); // null echo "\n"; var_export(sscanf('foo', '%d')); // [null] echo "\n"; var_export(sscanf('411', '%d')); // [411] echo "\n"; var_export(sscanf('411', '%d%d')); // [411, null] */
Output for git.master_jit, git.master
-1 0 1 Fatal error: Uncaught ValueError: Different numbers of variable names and field specifiers in /in/hbI7n:9 Stack trace: #0 /in/hbI7n(9): sscanf('411', '%d%d', 411) #1 {main} thrown in /in/hbI7n on line 9
Process exited with code 255.

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:
41.18 ms | 766 KiB | 4 Q