3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1,2,3,4,5,6); array_walk($array, function($i){ return $i * $i; }) var_dump($array);

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.0060.04012.51
5.4.280.0090.03412.41
5.4.270.0080.04112.41
5.4.260.0040.03912.41
5.4.250.0020.04212.41
5.4.240.0070.04312.41
5.4.230.0080.04312.40
5.4.220.0050.03712.40
5.4.210.0090.04312.40
5.4.200.0050.04112.40
5.4.190.0080.06212.40
5.4.180.0090.03812.39
5.4.170.0080.04912.41
5.4.160.0060.05012.40
5.4.150.0150.05212.39
5.4.140.0080.04712.09
5.4.130.0040.03712.07
5.4.120.0090.04212.03
5.4.110.0060.05412.03
5.4.100.0100.04612.03
5.4.90.0070.04412.03
5.4.80.0100.04212.03
5.4.70.0050.04212.03
5.4.60.0030.03912.03
5.4.50.0050.03812.03
5.4.40.0060.04012.02
5.4.30.0040.04212.01
5.4.20.0040.03612.01
5.4.10.0050.03512.01
5.4.00.0070.03411.50
5.3.280.0090.05512.71
5.3.270.0070.06512.72
5.3.260.0050.05812.72
5.3.250.0090.04012.72
5.3.240.0040.04012.72
5.3.230.0060.03712.71
5.3.220.0070.03612.68
5.3.210.0090.03612.68
5.3.200.0090.04112.68
5.3.190.0090.04212.68
5.3.180.0090.05312.67
5.3.170.0070.03812.67
5.3.160.0040.04312.67
5.3.150.0120.03312.68
5.3.140.0020.04012.66
5.3.130.0050.04112.66
5.3.120.0060.04512.66
5.3.110.0040.04112.66
5.3.100.0100.03312.13
5.3.90.0060.03712.11
5.3.80.0060.03712.10
5.3.70.0080.03412.10
5.3.60.0080.03412.08
5.3.50.0070.03712.02
5.3.40.0100.04512.03
5.3.30.0070.03611.98
5.3.20.0060.04011.77
5.3.10.0050.03511.73
5.3.00.0080.03511.72
5.2.170.0030.0349.18
5.2.160.0050.0309.18
5.2.150.0080.0289.18
5.2.140.0060.0309.18
5.2.130.0090.0399.14
5.2.120.0060.0439.14
5.2.110.0100.0509.14
5.2.100.0100.0379.14
5.2.90.0070.0339.14
5.2.80.0100.0479.14
5.2.70.0110.0369.14
5.2.60.0080.0459.09
5.2.50.0050.0449.06
5.2.40.0070.0289.04
5.2.30.0030.0349.02
5.2.20.0060.0329.00
5.2.10.0060.0288.93
5.2.00.0070.0408.79
5.1.60.0070.0248.07
5.1.50.0150.0398.07
5.1.40.0120.0418.05
5.1.30.0120.0818.40
5.1.20.0060.0258.42
5.1.10.0060.0298.15
5.1.00.0120.0418.14
5.0.50.0050.0206.63
5.0.40.0050.0186.48
5.0.30.0050.0316.29
5.0.20.0010.0226.27
5.0.10.0050.0246.24
5.0.00.0080.0396.23
4.4.90.0030.0184.78
4.4.80.0040.0184.75
4.4.70.0030.0194.75
4.4.60.0150.0384.75
4.4.50.0040.0164.77
4.4.40.0050.0244.71
4.4.30.0050.0134.76
4.4.20.0040.0144.84
4.4.10.0040.0164.85
4.4.00.0080.0414.76
4.3.110.0070.0664.67
4.3.100.0050.0164.66
4.3.90.0050.0264.63
4.3.80.0030.0334.58
4.3.70.0070.0244.63
4.3.60.0030.0164.63
4.3.50.0060.0164.63
4.3.40.0060.0264.54
4.3.30.0010.0223.28
4.3.20.0030.0203.26
4.3.10.0030.0233.21
4.3.00.0030.0207.09

preferences:
140.58 ms | 1394 KiB | 7 Q