3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s1 = 'natujeszczak'; $s2 = 'piekierski'; echo similar_text($s1, $s2), PHP_EOL, similar_text($s2, $s1), PHP_EOL, PHP_VERSION;
Output for 4.3.10 - 4.3.11
3 2 4.3.10
Output for 4.4.0 - 4.4.9
3 2 4.4.0
Output for 5.0.2 - 5.0.5
3 2 5.0.2
Output for 5.1.0 - 5.1.6
3 2 5.1.0
Output for 5.2.0 - 5.2.17
3 2 5.2.0
Output for 5.3.0 - 5.3.29
3 2 5.3.0
Output for 5.4.0 - 5.4.45
3 2 5.4.0
Output for 5.5.0 - 5.5.38
3 2 5.5.0
Output for 5.6.0 - 5.6.40
3 2 5.6.0
Output for 7.0.0 - 7.0.33
3 2 7.0.0
Output for 7.1.0 - 7.1.33
3 2 7.1.0
Output for 7.2.0 - 7.2.34
3 2 7.2.0
Output for 7.3.0 - 7.3.33
3 2 7.3.0
Output for 7.4.0 - 7.4.33
3 2 7.4.0
Output for 8.0.0 - 8.0.30
3 2 8.0.0
Output for 8.1.0 - 8.1.34
3 2 8.1.0
Output for 8.2.0 - 8.2.34
3 2 8.2.0
Output for 8.3.0 - 8.3.35
3 2 8.3.0
Output for 8.4.1 - 8.4.26
3 2 8.4.1
Output for 8.5.0 - 8.5.11
3 2 8.5.0
Output for 4.3.0 - 4.3.9
3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/N6j98 on line 5 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/N6j98 on line 5 PHP_EOL4.3.0
Output for 5.0.0 - 5.0.1
3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/N6j98 on line 5 PHP_EOL2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/N6j98 on line 5 PHP_EOL5.0.0

preferences:
29.45 ms | 1147 KiB | 13 Q