3v4l.org

run code in 300+ PHP versions simultaneously
<?php $roles = ['TestClosure','TestClosure','TestClosure']; $rolesTab = array_map(function($role){ return $role }, $roles);

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.260.0130.04318.64
5.4.250.0100.04718.73
5.4.240.0030.05318.98
5.4.230.0130.04718.97
5.4.220.0100.05018.93
5.4.210.0130.05018.83
5.4.200.0170.04018.64
5.4.190.0130.04318.79
5.4.180.0130.04718.83
5.4.170.0030.08318.83
5.4.160.0130.04719.08
5.4.150.0100.06318.92
5.4.140.0070.06016.57
5.4.130.0100.05316.36
5.4.120.0230.05716.56
5.4.110.0130.04316.33
5.4.100.0170.04016.55
5.4.90.0100.07016.46
5.4.80.0170.05716.48
5.4.70.0000.05316.38
5.4.60.0030.05716.33
5.4.50.0100.04316.63
5.4.40.0130.06016.58
5.4.30.0070.05016.38
5.4.20.0030.05016.46
5.4.10.0030.06716.46
5.4.00.0100.05015.99
5.3.280.0070.05314.46
5.3.270.0170.05714.48
5.3.260.0100.06714.46
5.3.250.0030.08314.49
5.3.240.0070.07014.65
5.3.230.0070.08014.61
5.3.220.0070.07014.59
5.3.210.0300.05014.48
5.3.200.0100.04714.66
5.3.190.0130.04714.72
5.3.180.0070.05314.43
5.3.170.0070.05014.61
5.3.160.0070.05014.26
5.3.150.0030.05314.41
5.3.140.0030.05314.41
5.3.130.0030.05714.25
5.3.120.0070.05014.34
5.3.110.0130.07314.46
5.3.100.0100.04714.13
5.3.90.0070.05014.17
5.3.80.0130.04714.05
5.3.70.0170.04713.81
5.3.60.0030.05313.77
5.3.50.0100.05013.94
5.3.40.0170.04313.96
5.3.30.0170.06013.68
5.3.20.0130.04713.73
5.3.10.0130.04713.35
5.3.00.0100.04713.63
5.2.170.0100.03711.16
5.2.160.0070.04011.25
5.2.150.0100.03710.98
5.2.140.0070.04711.23
5.2.130.0000.04711.11
5.2.120.0070.05311.11
5.2.110.0070.04011.25
5.2.100.0100.04011.11
5.2.90.0170.03011.11
5.2.80.0170.05311.02
5.2.70.0070.05010.85
5.2.60.0130.04011.14
5.2.50.0030.04311.05
5.2.40.0100.04010.98
5.2.30.0000.04310.91
5.2.20.0030.04010.96
5.2.10.0070.05310.79
5.2.00.0100.03710.55
5.1.60.0100.02710.05
5.1.50.0100.02710.08
5.1.40.0100.04710.00
5.1.30.0030.03710.54
5.1.20.0030.03710.43
5.1.10.0100.03310.11
5.1.00.0070.0439.84
5.0.50.0070.0278.39
5.0.40.0000.0308.49
5.0.30.0100.0378.16
5.0.20.0030.0278.16
5.0.10.0030.0308.22
5.0.00.0100.0338.34
4.4.90.0100.0177.03
4.4.80.0070.0177.03
4.4.70.0030.0207.03
4.4.60.0000.0277.03
4.4.50.0000.0237.03
4.4.40.0070.0277.03
4.4.30.0000.0237.03
4.4.20.0070.0207.04
4.4.10.0030.0207.04
4.4.00.0130.0237.03
4.3.110.0000.0237.03
4.3.100.0000.0307.03
4.3.90.0070.0177.04
4.3.80.0070.0277.04
4.3.70.0000.0237.04
4.3.60.0070.0177.04
4.3.50.0030.0207.04
4.3.40.0030.0307.04
4.3.30.0030.0207.04
4.3.20.0030.0207.04
4.3.10.0000.0237.04
4.3.00.0170.01714.49

preferences:
141.07 ms | 1394 KiB | 7 Q