3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = sha256('hello'); $mutated = mutate($result); $unmutated = unmutate($mutated); echo "hello in sha256 is $result. Mutated it becomes $mutated, and when unmutated it is returned to $unmutated"); function mutate($hash) { return str_replace(['a', 'b', 'c', 'd', 'e', 'f'], ['f', 'e', 'd', 'c', 'b', 'a'], $hash); } function unmutate($hash) { return str_replace(['f', 'e', 'd', 'c', 'b', 'a'], ['a', 'b', 'c', 'd', 'e', 'f'], $hash); }

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.290.0180.07512.48
5.4.280.0080.04512.38
5.4.270.0100.04612.38
5.4.260.0120.10812.37
5.4.250.0100.07412.37
5.4.240.0120.10812.38
5.4.230.0140.07512.37
5.4.220.0080.04212.36
5.4.210.0060.03912.37
5.4.200.0100.07412.37
5.4.190.0070.05612.36
5.4.180.0080.04812.36
5.4.170.0080.05112.37
5.4.160.0080.04812.36
5.4.150.0110.06712.36
5.4.140.0120.10812.05
5.4.130.0130.07812.03
5.4.120.0090.04512.00
5.4.110.0130.08711.99
5.4.100.0040.06012.00
5.4.90.0050.04511.99
5.4.80.0080.04412.00
5.4.70.0110.03311.99
5.4.60.0090.04211.99
5.4.50.0100.05211.99
5.4.40.0070.04911.98
5.4.30.0170.06211.98
5.4.20.0120.04411.98
5.4.10.0180.05011.98
5.4.00.0100.04311.47
5.3.280.0150.08512.71
5.3.270.0130.06912.72
5.3.260.0080.05712.72
5.3.250.0070.05212.72
5.3.240.0090.04112.72
5.3.230.0100.04712.71
5.3.220.0130.06312.68
5.3.210.0150.08212.68
5.3.200.0040.04712.68
5.3.190.0080.07212.68
5.3.180.0130.04312.67
5.3.170.0070.04912.66
5.3.160.0080.07012.67
5.3.150.0100.04512.67
5.3.140.0120.04012.66
5.3.130.0070.05512.66
5.3.120.0090.06412.66
5.3.110.0150.05912.65
5.3.100.0090.05212.12
5.3.90.0110.05112.09
5.3.80.0100.04512.08
5.3.70.0090.05412.07
5.3.60.0050.05312.06
5.3.50.0210.07512.00
5.3.40.0110.05112.00
5.3.30.0270.07611.95
5.3.20.0070.03911.73
5.3.10.0070.04011.70
5.3.00.0090.04711.68

preferences:
143.35 ms | 1394 KiB | 7 Q