3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_1 = array('something1', something2); $array_2 = array('something3', something4); $array_3 = array(); $array_4 = array('something1', something2); array_walk([$array_1,$array_2,$array_3,$array_4],function(&$value, $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)
8.3.60.0090.00916.63
8.3.50.0070.01017.46
8.3.40.0130.00618.70
8.3.30.0090.00618.89
8.3.20.0140.00418.73
8.3.10.0060.00320.34
8.3.00.0040.00419.38
8.2.180.0090.00616.75
8.2.170.0030.00922.96
8.2.160.0110.00418.96
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.76
8.2.110.0030.00622.13
8.2.100.0030.00619.04
8.1.280.0130.01025.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0070.00728.09
8.1.240.0070.00318.35
8.1.230.0100.00018.45
5.5.60.0100.07017.21
5.5.50.0070.04317.16
5.5.40.0030.07717.23
5.5.30.0130.07317.13
5.5.20.0070.06017.11
5.5.10.0030.07317.20
5.5.00.0070.08017.23
5.4.220.0030.08019.04
5.4.210.0030.06018.92
5.4.200.0070.08018.98
5.4.190.0100.04019.09
5.4.180.0170.06319.08
5.4.170.0030.04019.08
5.4.160.0070.04019.02
5.4.150.0070.07719.04
5.4.140.0070.07316.37
5.4.130.0000.08016.26
5.4.120.0070.06716.21
5.4.110.0030.06716.28
5.4.100.0070.04316.39
5.4.90.0170.04316.29
5.4.80.0070.07016.35
5.4.70.0000.07716.27
5.4.60.0130.06716.27
5.4.50.0100.05016.38
5.4.40.0130.06316.29
5.4.30.0070.05316.38
5.4.20.0000.05716.23
5.4.10.0070.07716.24
5.4.00.0000.05315.78
5.3.270.0030.04014.53
5.3.260.0000.08714.39
5.3.250.0030.06714.56
5.3.240.0030.08014.58
5.3.230.0030.05014.57
5.3.220.0100.07314.52
5.3.210.0070.06314.56
5.3.200.0000.08714.56
5.3.190.0100.05314.54
5.3.180.0170.04314.56
5.3.170.0000.05714.48
5.3.160.0030.05714.39
5.3.150.0070.07714.50
5.3.140.0100.06714.53
5.3.130.0000.04314.51
5.3.120.0100.06714.63
5.3.110.0100.08014.52
5.3.100.0070.07714.11
5.3.90.0030.06013.98
5.3.80.0030.07713.98
5.3.70.0030.04013.77
5.3.60.0030.04713.94
5.3.50.0100.05013.91
5.3.40.0070.05713.91
5.3.30.0100.06713.89
5.3.20.0130.07013.63
5.3.10.0030.04313.60
5.3.00.0070.07713.41

preferences:
30.81 ms | 401 KiB | 5 Q