3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeSecret($secret) { return base64_decode(strrev(hex2bin($secret)); } function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } //$secret = "3d3d516343746d4d6d6c315669563362"; echo decodeSecret("3d3d516343746d4d6d6c315669563362"); //echo $s2 = base64_decode($secret); //echo $s3 = strrev($s2); //echo hex2bin($s3); echo "\n----------\n"; echo encodeSecret("TEST");

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.110.0140.04612.00
5.4.100.0170.04712.00
5.4.90.0210.06612.00
5.4.80.0190.05512.00
5.4.70.0320.09012.00
5.4.60.0180.05711.99
5.4.50.0190.06812.00
5.4.40.0140.07511.98
5.4.30.0190.07511.98
5.4.20.0230.06811.98
5.4.10.0140.04711.98
5.4.00.0190.04111.47
5.3.210.0210.05512.68
5.3.200.0200.04312.68
5.3.190.0230.05812.68
5.3.180.0230.07312.68
5.3.170.0250.06712.67
5.3.160.0190.04312.67
5.3.150.0180.04912.67
5.3.140.0290.07812.66
5.3.130.0200.04412.66
5.3.120.0210.04312.66
5.3.110.0270.07212.66
5.3.100.0200.05112.12
5.3.90.0130.04712.08
5.3.80.0270.06612.08
5.3.70.0230.08512.08
5.3.60.0180.04312.06
5.3.50.0210.08212.01
5.3.40.0200.05612.01
5.3.30.0150.04411.97
5.3.20.0250.06611.76
5.3.10.0190.04911.71
5.3.00.0200.04811.70

preferences:
139.22 ms | 1386 KiB | 7 Q