3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s0 = 'a'; $s1 = 'a'; $s2 = 'а'; $err = null; $sp = new \Spoofchecker(); $sp->setAllowedLocales('en_EN'); $sp->setChecks(\Spoofchecker::SINGLE_SCRIPT_CONFUSABLE | \Spoofchecker::MIXED_SCRIPT_CONFUSABLE | \Spoofchecker::WHOLE_SCRIPT_CONFUSABLE); var_dump(ord($s0), ord($s1), ord($s2)); echo "\n"; var_dump('Confusable: ' . $sp->areConfusable($s0, $s1, $err), 'Error: ' . $err); var_dump('Confusable: ' . $sp->areConfusable($s1, $s2, $err), 'Error: ' . $err); echo "\n"; var_dump('Suspicious #0: ' . $sp->isSuspicious($s0, $err), 'Error: ' . $err); echo "\n"; var_dump('Suspicious #1: ' . $sp->isSuspicious($s1, $err), 'Error: ' . $err); echo "\n"; var_dump('Suspicious #2: ' . $sp->isSuspicious($s2, $err), 'Error: ' . $err);
Output for git.master, git.master_jit
int(97) int(97) int(208) string(13) "Confusable: 1" string(7) "Error: " string(13) "Confusable: 1" string(7) "Error: " string(16) "Suspicious #0: 1" string(7) "Error: " string(16) "Suspicious #1: 1" string(7) "Error: " string(16) "Suspicious #2: 1" string(7) "Error: "
Output for rfc.property-hooks
int(97) int(97) int(208) string(13) "Confusable: 1" string(8) "Error: 1" string(13) "Confusable: 1" string(8) "Error: 6" string(16) "Suspicious #0: 1" string(8) "Error: 4" string(16) "Suspicious #1: 1" string(8) "Error: 4" string(16) "Suspicious #2: 1" string(8) "Error: 4"

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:
48.66 ms | 401 KiB | 8 Q