3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $arr = array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"); $arrd echo base64_encode(xor_encrypt(json_encode($arr))); echo json_decode(xor_encrypt(base64_decode($arrd))); ?>

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)
7.1.70.0030.00916.82
7.1.60.0130.02335.00
7.1.50.0240.01234.64
7.1.40.0270.01134.19
7.1.30.0200.01834.42
7.1.20.0270.00834.64
7.1.10.0090.00816.48
7.1.00.0060.00916.66
7.0.200.0070.01016.69
7.0.190.0030.01316.46
7.0.180.0080.01115.84
7.0.170.0090.00816.09
7.0.160.0030.01015.85
7.0.150.0080.00816.09
7.0.140.0070.01016.36
7.0.130.0030.01316.44
7.0.120.0060.00716.25
7.0.110.0030.01316.21
7.0.100.0090.00616.08
7.0.90.0060.01116.20
7.0.80.0140.00316.14
7.0.70.0000.01716.19
7.0.60.0030.01215.96
7.0.50.0030.01016.38
7.0.40.0000.01416.59
7.0.30.0030.00916.47
7.0.20.0000.01416.32
7.0.10.0030.01116.36
7.0.00.0090.00916.45

preferences:
137.14 ms | 1386 KiB | 7 Q