3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $vyhladavanie = 'zelená hruška'; ?> <script> $(".vysledky").load("data.php?vyhladavanie=" + <?=json_encode(urlencode($vyhladavanie)) ?>"); </script>
Output for 5.4.0 - 7.1.0
<script> $(".vysledky").load("data.php?vyhladavanie=" + "zelen%C3%A1+hru%C5%A1ka""); </script>
Output for 4.3.0 - 5.3.29
<script> $(".vysledky").load("data.php?vyhladavanie=" + <?=json_encode(urlencode($vyhladavanie)) ?>"); </script>