3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php similar_text('Yii', 'Laravel', $p); echo 'Yii and Laravel: ' . $p . PHP_EOL; similar_text('Symfony', 'Laravel', $p); echo 'Symfony and Laravel: ' . $p . PHP_EOL; similar_text('Yii', 'Symfony', $p); echo 'Yii and Symfony: ' . $p . PHP_EOL;
based on n2GnR
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.7
Yii and Laravel: 0 Symfony and Laravel: 0 Yii and Symfony: 0
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/mdgad on line 4 Yii and Laravel: 0PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/mdgad on line 7 Symfony and Laravel: 0PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/mdgad on line 10 Yii and Symfony: 0PHP_EOL