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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.02019.52
8.3.50.0190.01221.90
8.3.40.0100.01019.91
8.3.30.0130.00321.32
8.3.20.0080.00021.43
8.3.10.0030.00623.12
8.3.00.0030.00623.70
8.2.180.0090.02518.25
8.2.170.0070.01322.96
8.2.160.0060.00921.68
8.2.150.0030.00624.18
8.2.140.0100.01024.66
8.2.130.0090.00926.16
8.2.120.0070.00721.03
8.2.110.0060.00323.36
8.2.100.0110.00322.36
8.2.90.0000.00920.52
8.2.80.0030.00620.90
8.2.70.0130.00019.00
8.2.60.0090.00519.18
8.2.50.0100.00319.00
8.2.40.0080.00419.28
8.2.30.0110.00919.35
8.2.20.0030.00619.03
8.2.10.0030.00619.18
8.2.00.0150.00419.04
8.1.280.0070.01625.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00725.12
8.1.230.0060.00620.47
8.1.220.0050.00919.05
8.1.210.0060.00318.86
8.1.200.0190.00018.85
8.1.190.0030.00618.90
8.1.180.0060.00321.38
8.1.170.0120.00619.93
8.1.160.0060.00623.39
8.1.150.0060.00619.89
8.1.140.0050.00518.80
8.1.130.0080.00519.15
8.1.120.0080.00619.02
8.1.110.0070.00218.80
8.1.100.0000.01018.73
8.1.90.0080.00418.82
8.1.80.0130.00018.90
8.1.70.0060.00318.89
8.1.60.0110.00518.89
8.1.50.0000.01018.82
8.1.40.0000.01218.82
8.1.30.0090.00019.09
8.1.20.0030.00619.01
8.1.10.0080.00319.02
8.1.00.0190.00418.89
8.0.300.0000.00918.77
8.0.290.0040.00418.68
8.0.280.0030.00719.72
8.0.270.0030.00618.72
8.0.260.0020.00718.21
8.0.250.0000.01218.11
8.0.240.0080.00818.20
8.0.230.0030.00818.04
8.0.220.0060.00618.20
8.0.210.0060.00318.25
8.0.200.0050.00818.24
8.0.190.0110.00418.14
8.0.180.0040.01118.12
8.0.170.0060.00618.25
8.0.160.0000.00918.14
8.0.150.0100.00318.32
8.0.140.0070.00418.03
8.0.130.0050.00013.34
8.0.120.0030.00618.45
8.0.110.0000.00918.32
8.0.100.0000.00818.35
8.0.90.0030.00518.25
8.0.80.0110.01518.14
8.0.70.0000.01118.25
8.0.60.0000.00818.35
8.0.50.0000.00818.06
8.0.30.0140.01118.30
8.0.20.0090.01218.38
8.0.10.0090.00018.32
8.0.00.0160.00917.95
7.4.330.0050.00015.00
7.4.320.0030.00617.89
7.4.300.0050.00817.81
7.4.290.0100.00717.79
7.4.280.0040.00817.76
7.4.270.0080.00817.91
7.4.260.0000.00817.88
7.4.250.0030.00617.74
7.4.240.0000.00917.74
7.4.230.0030.00617.88
7.4.220.0080.01617.82
7.4.210.0070.01017.88
7.4.200.0050.00318.00
7.4.190.0040.00617.77
7.4.160.0230.00417.70
7.4.150.0190.01317.68
7.4.140.0210.00817.86
7.4.130.0090.01317.76
7.4.120.0130.01017.66
7.4.110.0180.01717.52
7.4.100.0160.01017.74
7.4.90.0120.00917.92
7.4.80.0160.00919.39
7.4.70.0100.01417.79
7.4.60.0080.02017.82
7.4.50.0000.01117.41
7.4.40.0040.01422.77
7.4.30.0160.00817.64
7.4.10.0030.01716.33
7.4.00.0060.00916.35
7.3.330.0000.00513.03
7.3.320.0000.00713.21
7.3.310.0000.00917.68
7.3.300.0040.00417.74
7.3.290.0070.01617.82
7.3.280.0160.00917.78
7.3.270.0070.01117.65
7.3.260.0180.01218.09
7.3.250.0160.01017.89
7.3.240.0250.00918.05
7.3.230.0100.01417.84
7.3.210.0030.01617.69
7.3.200.0140.01419.39
7.3.190.0090.00917.77
7.3.180.0290.00417.77
7.3.170.0130.00817.92
7.3.160.0130.00817.98
7.3.130.0070.01116.36
7.3.120.0070.01016.19
7.3.110.0060.01216.27
7.3.100.0070.00616.43
7.3.90.0030.01016.40
7.3.80.0030.00915.99
7.3.70.0030.01016.41
7.3.60.0020.01016.42
7.3.50.0070.01016.26
7.3.40.0060.00916.32
7.3.30.0060.00915.98
7.3.20.0030.01018.24
7.3.10.0120.00317.89
7.3.00.0120.00317.98
7.2.330.0070.01417.96
7.2.320.0250.00717.88
7.2.310.0130.01618.22
7.2.300.0190.00618.04
7.2.290.0070.01318.00
7.2.260.0000.01316.24
7.2.250.0000.01416.59
7.2.240.0080.00816.46
7.2.230.0060.00316.60
7.2.220.0090.00616.36
7.2.210.0090.00916.16
7.2.200.0070.01416.50
7.2.190.0030.01016.26
7.2.180.0000.01716.61
7.2.170.0030.00916.54
7.2.160.0100.00616.29
7.2.150.0030.01018.13
7.2.140.0090.00318.12
7.2.130.0120.00618.29
7.2.120.0060.00318.34
7.2.110.0110.00417.98
7.2.100.0030.00718.00
7.2.90.0070.00718.35
7.2.80.0070.00718.29
7.2.70.0130.00318.16
7.2.60.0100.00718.18
7.2.50.0040.01218.28
7.2.40.0090.00618.23
7.2.30.0030.01218.27
7.2.20.0110.00318.29
7.2.10.0100.01018.13
7.2.00.0050.00919.63
7.1.330.0080.00417.11
7.1.320.0030.01016.95
7.1.310.0030.01017.15
7.1.300.0040.01217.16
7.1.290.0120.00317.23
7.1.280.0070.00717.16
7.1.270.0030.01016.97
7.1.260.0030.01017.18
7.1.250.0030.00617.20
7.1.240.0070.01017.25
7.1.230.0040.00816.93
7.1.220.0030.00817.08
7.1.210.0140.00017.11
7.1.200.0050.00716.99
7.1.190.0060.00917.13
7.1.180.0090.00017.08
7.1.170.0060.01317.28
7.1.160.0040.00717.15
7.1.150.0060.00817.11
7.1.140.0030.00716.82
7.1.130.0130.00617.16
7.1.120.0030.00717.07
7.1.110.0090.00317.04
7.1.100.0070.00716.81
7.1.90.0060.00917.18
7.1.80.0000.01517.20
7.1.70.0020.01017.84
7.1.60.0090.00617.93
7.1.50.0180.00625.67
7.1.40.0090.00617.31
7.1.30.0030.01017.08
7.1.20.0040.00817.10
7.1.10.0050.00516.84
7.1.00.0000.02920.66
7.0.330.0090.00616.78
7.0.320.0060.00616.73
7.0.310.0000.01616.94
7.0.300.0060.01016.71
7.0.290.0080.00316.97
7.0.280.0030.00916.73
7.0.270.0040.01416.85
7.0.260.0060.00816.66
7.0.250.0030.00716.91
7.0.240.0060.00916.95
7.0.230.0110.00416.69
7.0.220.0030.01016.57
7.0.210.0080.00816.74
7.0.200.0100.00817.45
7.0.190.0070.00316.96
7.0.180.0060.00916.94
7.0.170.0090.00316.77
7.0.160.0110.00416.56
7.0.150.0080.00416.83
7.0.140.0030.04320.06
7.0.130.0090.00616.62
7.0.120.0060.00916.52
7.0.110.0030.00916.89
7.0.100.0030.01316.73
7.0.90.0040.00716.82
7.0.80.0030.01016.74
7.0.70.2530.02519.04
7.0.60.0050.02519.00
7.0.50.0070.03617.19
7.0.40.0080.04717.99
7.0.30.0180.02618.07
7.0.20.0240.03618.02
7.0.10.0160.04718.00
7.0.00.0050.03817.79
5.6.400.0050.00515.75
5.6.390.0120.00315.34
5.6.380.0000.01315.61
5.6.370.0000.01415.85
5.6.360.0090.00615.60
5.6.350.0030.00815.44
5.6.340.0000.01815.72
5.6.330.0090.00015.62
5.6.320.0110.00316.07
5.6.310.0000.01415.67
5.6.300.0000.01215.89
5.6.290.0110.00415.63
5.6.280.0050.04418.99
5.6.270.0030.00915.89
5.6.260.0060.00915.91
5.6.250.0080.00815.56
5.6.240.0000.01516.00
5.6.230.0060.01015.68
5.6.220.0120.00415.59
5.6.210.0060.05018.62
5.6.200.0050.03717.07
5.6.190.0030.03518.92
5.6.180.0020.03218.44
5.6.170.0350.03718.74
5.6.160.0020.03518.72
5.6.150.0030.03017.00
5.6.140.0050.04216.89
5.6.130.0070.03316.74
5.6.120.0180.03519.08
5.6.110.0100.02318.90
5.6.100.0070.04318.98
5.6.90.0060.04918.83
5.6.80.0070.04818.62
5.6.70.0150.03018.46
5.6.60.0030.00915.55
5.6.50.0040.01115.76
5.6.40.0060.01215.60
5.6.30.0070.01315.45
5.6.20.0040.01115.82
5.6.10.0030.01315.29
5.6.00.0000.01715.32
5.5.380.0030.01215.76
5.5.370.0130.00015.66
5.5.360.0070.01115.50
5.5.350.0050.03518.58
5.5.340.0060.02516.79
5.5.330.0070.04318.36
5.5.320.0080.04618.33
5.5.310.0100.03918.66
5.5.300.0050.04716.79
5.5.290.0020.03616.96
5.5.280.0090.02418.85
5.5.270.0050.04218.90
5.5.260.0020.02918.83
5.5.250.0080.04118.79
5.5.240.0070.03718.58
5.5.230.0030.01315.59
5.5.220.0000.01115.67
5.5.210.0060.01015.50
5.5.200.0090.00915.46
5.5.190.0100.01015.36
5.5.180.0090.00615.52
5.5.170.0040.01115.50
5.5.160.0030.01415.71
5.5.150.0030.01215.73
5.5.140.0060.00615.77
5.5.130.0040.00415.78
5.5.120.0150.00015.50
5.5.110.0070.00715.43
5.5.100.0060.00315.64
5.5.90.0040.00815.67
5.5.80.0040.00715.36
5.5.70.0090.00315.64
5.5.60.0040.01215.55
5.5.50.0000.01515.43
5.5.40.0030.00615.49
5.5.30.0000.01215.72
5.5.20.0100.00715.50
5.5.10.0000.01315.68
5.5.00.0030.01215.58
5.4.450.0330.03216.47
5.4.440.0450.03216.49
5.4.430.0370.03216.42
5.4.420.0180.02716.53
5.4.410.0510.03316.40
5.4.400.0290.03116.37
5.4.390.0470.04116.25
5.4.380.0130.02516.17
5.4.370.0050.03316.09
5.4.360.0110.02515.99
5.4.350.0050.02112.13
5.4.340.0070.03612.13
5.4.330.0060.00612.29
5.4.320.0050.02412.38
5.4.310.0080.02112.38
5.4.300.0040.02412.38
5.4.290.0060.02512.38
5.4.280.0050.02112.32
5.4.270.0020.02412.32
5.4.260.0040.02012.32
5.4.250.0070.02716.10
5.4.240.0110.02316.19
5.4.230.0060.04016.06
5.4.220.0070.03016.13
5.4.210.0050.03016.12
5.4.200.0130.03416.14
5.4.190.0100.02516.11
5.4.180.0070.02916.12
5.4.170.0140.02316.16
5.4.160.0090.02416.06
5.4.150.0020.03616.06
5.4.140.0050.04214.89
5.4.130.0080.03514.98
5.4.120.0060.03014.88
5.4.110.0070.02714.93
5.4.100.0100.02314.88
5.4.90.0050.02814.85
5.4.80.0030.02914.96
5.4.70.0060.02814.94
5.4.60.0080.02714.24
5.4.50.0110.02214.32
5.4.40.0090.02514.39
5.4.30.0040.02714.37
5.4.20.0030.02814.37
5.4.10.0030.03214.29
5.4.00.0120.02313.98
5.3.290.0040.02812.54
5.3.280.0060.02813.43
5.3.270.0110.02613.45
5.3.260.0120.02613.47
5.3.250.0070.02513.47
5.3.240.0090.02513.41
5.3.230.0090.02213.53
5.3.220.0020.03013.33
5.3.210.0020.04613.43
5.3.200.0050.02713.46
5.3.190.0050.02813.29
5.3.180.0100.02413.36
5.3.170.0050.02713.44
5.3.160.0080.02513.35
5.3.150.0040.03113.39
5.3.140.0090.03213.45
5.3.130.0050.03213.45
5.3.120.0060.02613.47
5.3.110.0050.02813.45
5.3.100.0000.03413.17
5.3.90.0030.02813.17
5.3.80.0060.02513.20
5.3.70.0030.02813.00
5.3.60.0060.02613.16
5.3.50.0030.02913.01
5.3.40.0090.02313.20
5.3.30.0050.02613.10
5.3.20.0040.02912.94
5.3.10.0070.02512.82
5.3.00.0080.02512.81
5.2.170.0130.03711.09
5.2.160.0100.03711.05
5.2.150.0030.04310.91
5.2.140.0000.04711.26
5.2.130.0000.04311.13
5.2.120.0100.03311.03
5.2.110.0070.04011.27
5.2.100.0030.04311.11
5.2.90.0100.03711.03
5.2.80.0200.02710.99
5.2.70.0070.04011.13
5.2.60.0100.05710.90
5.2.50.0100.03310.87
5.2.40.0030.04011.16
5.2.30.0100.03711.01
5.2.20.0070.03710.99
5.2.10.0000.04010.86
5.2.00.0000.04310.74
5.1.60.0030.03310.07
5.1.50.0000.03710.07
5.1.40.0030.0479.85
5.1.30.0100.03010.11
5.1.20.0070.03310.13
5.1.10.0070.03710.14
5.1.00.0030.03310.32
5.0.50.0100.0278.66
5.0.40.0100.0208.50
5.0.30.0100.0338.02
5.0.20.0030.0238.16
5.0.10.0030.0278.25
5.0.00.0100.0338.17
4.4.90.0030.0237.08
4.4.80.0070.0177.08
4.4.70.0000.0237.08
4.4.60.0000.0237.08
4.4.50.0100.0137.08
4.4.40.0000.0377.08
4.4.30.0030.0207.08
4.4.20.0000.0237.08
4.4.10.0030.0207.08
4.4.00.0030.0337.08
4.3.110.0070.0177.08
4.3.100.0030.0177.08
4.3.90.0070.0177.08
4.3.80.0030.0307.08
4.3.70.0070.0177.08
4.3.60.0030.0207.08
4.3.50.0030.0207.08
4.3.40.0030.0337.08
4.3.30.0000.0237.08
4.3.20.0000.0237.08
4.3.10.0000.0207.08
4.3.00.0170.0207.27

preferences:
39.78 ms | 401 KiB | 5 Q