3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = array("a", "b", "c", "d", "e", "f", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); $rand = array_rand($chars, 5); $key = implode("", $rand); var_dump($rand); var_dump($key);

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.2.30.0120.01418.92
7.2.20.0110.01518.68
7.2.10.0130.00918.69
7.2.00.0110.00918.76
7.1.150.0110.01117.58
7.1.140.0100.00917.49
7.1.130.0090.01517.74
7.1.120.0100.01117.34
7.1.110.0110.01017.14
7.1.100.0080.01217.24
7.1.90.0090.00916.89
7.1.80.0100.01216.88
7.1.70.0100.01216.21
7.1.60.0300.01834.07
7.1.50.0350.01433.71
7.1.40.0260.01833.35
7.1.30.0280.01533.39
7.1.20.0210.01533.62
7.1.10.0080.01315.58
7.1.00.0080.01115.66

preferences:
37.37 ms | 401 KiB | 5 Q