3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = [ 'apples' => 3, 'bananas' => 4 ]; var_dump(FOO); FOO[] = 'bar'; var_dump(FOO);

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.350.0080.04611.98
5.4.340.0070.04711.98
5.4.320.0110.04812.47
5.4.310.0110.04712.46
5.4.300.0100.04612.47
5.4.290.0120.04612.46
5.4.280.0090.04612.36
5.4.270.0060.04912.36
5.4.260.0080.04212.36
5.4.250.0050.03812.36
5.4.240.0050.03812.36
5.4.230.0050.04412.35
5.4.220.0080.04912.35
5.4.210.0100.04012.35
5.4.200.0050.04212.35
5.4.190.0030.04212.34
5.4.180.0100.04212.35
5.4.170.0060.04712.36
5.4.160.0060.03712.35
5.4.150.0060.03712.35
5.4.140.0050.03812.04
5.4.130.0060.03712.02
5.4.120.0050.03711.98
5.4.110.0090.04311.98
5.4.100.0110.04211.98
5.4.90.0050.04511.97
5.4.80.0060.04011.98
5.4.70.0070.04011.97
5.4.60.0100.03311.97
5.4.50.0060.03711.97
5.4.40.0060.03511.96
5.4.30.0080.03911.96
5.4.20.0110.04811.95
5.4.10.0080.05011.95
5.4.00.0030.04411.45
5.3.290.0140.03312.80
5.3.280.0110.03812.71
5.3.270.0070.04812.73
5.3.260.0120.04812.72
5.3.250.0090.05012.72
5.3.240.0080.05012.72
5.3.230.0090.04712.71
5.3.220.0040.04112.68
5.3.210.0110.04312.68
5.3.200.0070.04412.68
5.3.190.0080.04412.67
5.3.180.0130.03812.67
5.3.170.0090.03412.67
5.3.160.0100.03512.67
5.3.150.0100.04212.67
5.3.140.0100.04012.66
5.3.130.0090.04812.66
5.3.120.0110.04712.66
5.3.110.0110.04912.66
5.3.100.0070.04712.12
5.3.90.0150.03912.08
5.3.80.0120.04412.08
5.3.70.0150.03712.07
5.3.60.0040.04212.06
5.3.50.0060.04312.00
5.3.40.0090.04712.00
5.3.30.0090.04711.95
5.3.20.0150.03911.72
5.3.10.0090.04011.70
5.3.00.0060.05111.68
5.2.170.0080.0419.18
5.2.160.0050.0429.18
5.2.150.0120.0369.18
5.2.140.0080.0399.18
5.2.130.0090.0369.14
5.2.120.0080.0369.13
5.2.110.0070.0379.14
5.2.100.0120.0339.14
5.2.90.0120.0359.14
5.2.80.0100.0369.14
5.2.70.0100.0369.14
5.2.60.0080.0399.09
5.2.50.0040.0439.05
5.2.40.0080.0359.04
5.2.30.0050.0409.01
5.2.20.0080.0289.00
5.2.10.0080.0308.92
5.2.00.0050.0348.78
5.1.60.0080.0208.07
5.1.50.0040.0268.07
5.1.40.0070.0268.04
5.1.30.0030.0308.40
5.1.20.0090.0328.42
5.1.10.0070.0328.14
5.1.00.0070.0268.14
5.0.50.0020.0276.63
5.0.40.0080.0236.48
5.0.30.0040.0416.29
5.0.20.0070.0236.27
5.0.10.0040.0276.24
5.0.00.0060.0386.23
4.4.90.0030.0224.78
4.4.80.0040.0134.76
4.4.70.0040.0164.76
4.4.60.0030.0184.76
4.4.50.0010.0184.77
4.4.40.0020.0264.71
4.4.30.0040.0154.76
4.4.20.0040.0174.84
4.4.10.0030.0194.85
4.4.00.0020.0284.76
4.3.110.0020.0174.67
4.3.100.0020.0164.67
4.3.90.0030.0154.64
4.3.80.0030.0344.58
4.3.70.0050.0164.63
4.3.60.0070.0304.63
4.3.50.0030.0184.63
4.3.40.0070.0254.54
4.3.30.0050.0143.28
4.3.20.0040.0193.26
4.3.10.0040.0213.22
4.3.00.0100.0237.55

preferences:
143.19 ms | 1394 KiB | 7 Q