3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1 => 2, 6=>7, 3=>4); foreach($a as &$key => $value){ $key *= 10; } print_r($a);

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.320.0090.04412.46
5.4.310.0090.05612.46
5.4.300.0090.04312.46
5.4.290.0080.04612.46
5.4.280.0130.03812.36
5.4.270.0170.04912.36
5.4.260.0110.04412.36
5.4.250.0140.04312.36
5.4.240.0070.04512.36
5.4.230.0110.04212.35
5.4.220.0070.04012.36
5.4.210.0100.03712.35
5.4.200.0050.04412.35
5.4.190.0060.04012.34
5.4.180.0110.03812.34
5.4.170.0040.04312.36
5.4.160.0110.04612.35
5.4.150.0090.04212.34
5.4.140.0070.04112.04
5.4.130.0060.04012.02
5.4.120.0090.03911.98
5.4.110.0160.04111.98
5.4.100.0100.04511.97
5.4.90.0040.05111.97
5.4.80.0060.05011.97
5.4.70.0090.05111.97
5.4.60.0130.03711.97
5.4.50.0100.04211.97
5.4.40.0080.04511.96
5.4.30.0030.04711.96
5.4.20.0060.04311.95
5.4.10.0090.04411.95
5.4.00.0090.05011.45
5.3.290.0100.04512.80
5.3.280.0110.03812.70
5.3.270.0080.04712.73
5.3.260.0090.04812.71
5.3.250.0050.04312.72
5.3.240.0090.04212.71
5.3.230.0090.03912.71
5.3.220.0080.04112.68
5.3.210.0060.04512.68
5.3.200.0100.04512.68
5.3.190.0090.03912.68
5.3.180.0140.03412.68
5.3.170.0080.03912.67
5.3.160.0080.03812.67
5.3.150.0100.04412.67
5.3.140.0100.04612.66
5.3.130.0100.03912.66
5.3.120.0080.04012.66
5.3.110.0050.04212.66
5.3.100.0070.04112.12
5.3.90.0030.04312.08
5.3.80.0080.03712.07
5.3.70.0110.03412.08
5.3.60.0110.03412.06
5.3.50.0080.03812.00
5.3.40.0110.03612.00
5.3.30.0100.03511.94
5.3.20.0070.04011.72
5.3.10.0050.03911.69
5.3.00.0080.03711.68
5.2.170.0010.0379.18
5.2.160.0040.0329.18
5.2.150.0060.0329.18
5.2.140.0090.0299.18
5.2.130.0090.0319.13
5.2.120.0030.0329.13
5.2.110.0080.0359.14
5.2.100.0050.0369.14
5.2.90.0080.0309.14
5.2.80.0050.0339.13
5.2.70.0070.0319.14
5.2.60.0060.0319.09
5.2.50.0040.0349.06
5.2.40.0070.0349.03
5.2.30.0060.0349.01
5.2.20.0070.0299.00
5.2.10.0040.0388.92
5.2.00.0060.0318.77
5.1.60.0030.0288.06
5.1.50.0050.0308.06
5.1.40.0080.0278.04
5.1.30.0060.0298.40
5.1.20.0070.0398.41
5.1.10.0080.0328.14
5.1.00.0040.0288.13
5.0.50.0080.0206.62
5.0.40.0060.0226.48
5.0.30.0060.0456.29
5.0.20.0050.0236.26
5.0.10.0060.0276.23
5.0.00.0050.0316.23
4.4.90.0060.0154.78
4.4.80.0030.0164.75
4.4.70.0020.0174.75
4.4.60.0040.0234.75
4.4.50.0060.0184.77
4.4.40.0020.0284.71
4.4.30.0030.0174.76
4.4.20.0060.0204.85
4.4.10.0020.0224.85
4.4.00.0040.0284.76
4.3.110.0050.0154.67
4.3.100.0040.0204.66
4.3.90.0060.0194.63
4.3.80.0040.0254.58
4.3.70.0020.0204.63
4.3.60.0020.0204.63
4.3.50.0030.0184.63
4.3.40.0020.0284.54
4.3.30.0020.0183.29
4.3.20.0020.0253.27
4.3.10.0040.0213.21
4.3.00.0170.01718.23

preferences:
143.36 ms | 1394 KiB | 7 Q