3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test = {1,2,3}; echo $test[0]; ?>

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.280.0100.07512.36
5.4.270.0200.07812.36
5.4.260.0150.09612.36
5.4.250.0210.07412.36
5.4.240.0110.06712.36
5.4.230.0160.07312.35
5.4.220.0130.06612.36
5.4.210.0120.06312.35
5.4.200.0110.05812.36
5.4.190.0110.04812.35
5.4.180.0090.04112.35
5.4.170.0050.04612.36
5.4.160.0210.07312.36
5.4.150.0080.06012.35
5.4.140.0070.05212.04
5.4.130.0160.09612.02
5.4.120.0100.10511.99
5.4.110.0110.05911.98
5.4.100.0080.05511.98
5.4.90.0100.13111.98
5.4.80.0090.09411.98
5.4.70.0100.08411.98
5.4.60.0190.09111.98
5.4.50.0080.05011.98
5.4.40.0090.05511.96
5.4.30.0060.05011.96
5.4.20.0060.05511.96
5.4.10.0120.04411.96
5.4.00.0160.04311.46
5.3.280.0190.08812.71
5.3.270.0120.05612.72
5.3.260.0080.05312.72
5.3.250.0100.06212.72
5.3.240.0130.06412.72
5.3.230.0070.06812.71
5.3.220.0090.05612.68
5.3.210.0060.05912.68
5.3.200.0070.05812.68
5.3.190.0090.06412.67
5.3.180.0160.04612.68
5.3.170.0070.03912.67
5.3.160.0090.03912.68
5.3.150.0070.04112.67
5.3.140.0060.05512.66
5.3.130.0070.06112.66
5.3.120.0140.05212.66
5.3.110.0130.06212.66
5.3.100.0090.06212.11
5.3.90.0090.05812.08
5.3.80.0110.05212.07
5.3.70.0100.05112.07
5.3.60.0120.06212.07
5.3.50.0080.03612.00
5.3.40.0070.03812.00
5.3.30.0110.03311.94
5.3.20.0070.04111.70
5.3.10.0130.05011.67
5.3.00.0040.04811.66
5.2.170.0090.0389.15
5.2.160.0060.0519.15
5.2.150.0070.0489.15
5.2.140.0040.0489.15
5.2.130.0070.0459.11
5.2.120.0110.0649.11
5.2.110.0050.0439.11
5.2.100.0080.0509.11
5.2.90.0100.0569.11
5.2.80.0080.0469.11
5.2.70.0090.0549.11
5.2.60.0050.0439.06
5.2.50.0120.0449.04
5.2.40.0070.0419.01
5.2.30.0100.0498.99
5.2.20.0060.0458.97
5.2.10.0120.0458.90
5.2.00.0080.0508.76
5.1.60.0080.0378.04
5.1.50.0070.0368.04
5.1.40.0030.0408.03
5.1.30.0070.0388.38
5.1.20.0080.0268.39
5.1.10.0050.0318.12
5.1.00.0070.0368.12
5.0.50.0060.0426.60
5.0.40.0050.0356.46
5.0.30.0070.0356.27
5.0.20.0020.0236.25
5.0.10.0040.0226.22
5.0.00.0060.0306.21
4.4.90.0040.0174.78
4.4.80.0010.0194.75
4.4.70.0030.0174.75
4.4.60.0060.0144.76
4.4.50.0050.0154.77
4.4.40.0050.0264.71
4.4.30.0020.0184.76
4.4.20.0070.0144.84
4.4.10.0070.0144.85
4.4.00.0050.0284.76
4.3.110.0040.0164.67
4.3.100.0040.0154.66
4.3.90.0030.0164.63
4.3.80.0020.0274.59
4.3.70.0020.0164.63
4.3.60.0020.0204.63
4.3.50.0060.0284.62
4.3.40.0030.0264.54
4.3.30.0020.0253.27
4.3.20.0020.0293.25
4.3.10.0040.0343.21
4.3.00.0000.0277.23

preferences:
140.57 ms | 1394 KiB | 7 Q