3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $mustget = 'Kw4SCQ=='; $string = 'Josh'; echo("Must get: " . $mustget . "\n"); echo("We got: " . base64_encode(xor_this($string)) . "\n"); function xor_this($text) { $key = 'frtkj'; $i = 0; $encrypted = ''; foreach (str_split($text) as $char) { $encrypted .= $char ^ $key{$i++ % strlen($key)}; } return $encrypted; } ?>

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)
5.4.90.0100.04716.39
5.4.80.0070.04016.41
5.4.70.0170.06316.36
5.4.60.0000.06716.35
5.4.50.0130.06016.37
5.4.40.0030.04716.38
5.4.30.0000.05316.40
5.4.20.0030.07316.64
5.4.10.0100.07316.42
5.4.00.0170.05015.95
5.3.190.0100.05714.53
5.3.180.0100.03714.45
5.3.170.0030.07314.53
5.3.160.0170.05314.53
5.3.150.0030.04014.50
5.3.140.0100.04014.48
5.3.130.0070.07714.45
5.3.120.0070.04714.55
5.3.110.0030.08314.57
5.3.100.0030.07713.98
5.3.90.0070.06713.95
5.3.80.0130.07313.94
5.3.70.0100.05713.94
5.3.60.0000.07313.93
5.3.50.0100.03713.87
5.3.00.0070.06013.60

preferences:
144.34 ms | 939 KiB | 8 Q