3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "<html>3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more than 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, this site tells you:3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more than 200 di<pre>testfferent PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, th<b>is sit</b>e tells <p>you:3v4l</p>test</pre>.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more than 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, this site tells you:3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more than 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, this site tells you:3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. <pre>testI compiled more than 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you stest</pre>ubmit, this site tells you:3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more than 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, this <pre>testsite tells you:3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more thantest</pre> 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, this site tells you:</html>"; function getTagContent($data, $tag) { $openingTag = "<$tag>"; $closingTag = "</$tag>"; $results = array(); $content = $data; $pos = strpos($content, $openingTag); while($pos !== FALSE) { $content = substr($content, $pos+strlen($openingTag)); $results[] = htmlentities(substr($content, 0, strpos($content, $closingTag))); $pos = strpos($content, $openingTag); } return $results; } var_dump(getTagContent($data, "pre"));
Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
array(3) { [0]=> string(183) "testfferent PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you submit, th&lt;b&gt;is sit&lt;/b&gt;e tells &lt;p&gt;you:3v4l&lt;/p&gt;test" [1]=> string(141) "testI compiled more than 200 different PHP versions (every version released since 4.3.0) plus HHVM for you to use. For every script you stest" [2]=> string(139) "testsite tells you:3v4l.org (leetspeak for eval) is an online shell that allows you to run your code on my server. I compiled more thantest" }

preferences:
155.36 ms | 404 KiB | 165 Q