3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (1): if (1){ echo 'x'; } else: echo 'y'; endif;

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.0070.03712.50
5.4.280.0110.03812.36
5.4.270.0090.04012.36
5.4.260.0100.04912.36
5.4.250.0070.04812.36
5.4.240.0060.04412.36
5.4.230.0070.05112.35
5.4.220.0170.05212.35
5.4.210.0110.07512.36
5.4.200.0140.05612.36
5.4.190.0120.05212.35
5.4.180.0120.05212.35
5.4.170.0100.05512.36
5.4.160.0090.06512.35
5.4.150.0130.05612.35
5.4.140.0120.06012.04
5.4.130.0190.06412.02
5.4.120.0050.06411.99
5.4.110.0110.10311.98
5.4.100.0140.06111.98
5.4.90.0160.06411.98
5.4.80.0230.06011.98
5.4.70.0130.06611.98
5.4.60.0140.05311.98
5.4.50.0180.06311.98
5.4.40.0130.05611.97
5.4.30.0180.05211.96
5.4.20.0090.06611.96
5.4.10.0090.06111.96
5.4.00.0120.05811.46
5.3.280.0090.06512.71
5.3.270.0110.08512.73
5.3.260.0120.05612.72
5.3.250.0150.06712.72
5.3.240.0160.05512.72
5.3.230.0170.07212.71
5.3.220.0140.05512.68
5.3.210.0150.05812.68
5.3.200.0160.05312.68
5.3.190.0210.08012.68
5.3.180.0170.09512.67
5.3.170.0200.07012.67
5.3.160.0110.05412.67
5.3.150.0180.07312.67
5.3.140.0340.07512.66
5.3.130.0100.05412.66
5.3.120.0130.05512.66
5.3.110.0310.05712.66
5.3.100.0220.06612.12
5.3.90.0150.06712.09
5.3.80.0140.04812.07
5.3.70.0210.06312.07
5.3.60.0100.05912.06
5.3.50.0130.05912.00
5.3.40.0140.05612.00
5.3.30.0250.07311.94
5.3.20.0090.05011.70
5.3.10.0180.09011.67
5.3.00.0180.06611.66
5.2.170.0150.0449.15
5.2.160.0190.0479.15
5.2.150.0200.0529.15
5.2.140.0130.0489.14
5.2.130.0110.0409.11
5.2.120.0200.0819.11
5.2.110.0110.0389.11
5.2.100.0170.0469.11
5.2.90.0150.0409.11
5.2.80.0080.0489.11
5.2.70.0180.0529.11
5.2.60.0090.0459.06
5.2.50.0080.0319.04
5.2.40.0070.0389.00
5.2.30.0080.0328.99
5.2.20.0090.0318.97
5.2.10.0050.0338.91
5.2.00.0060.0338.77
5.1.60.0120.0358.04
5.1.50.0060.0268.05
5.1.40.0050.0278.04
5.1.30.0080.0268.38
5.1.20.0070.0278.40
5.1.10.0040.0298.12
5.1.00.0030.0298.12
5.0.50.0040.0236.61
5.0.40.0030.0226.46
5.0.30.0030.0346.27
5.0.20.0070.0186.25
5.0.10.0080.0186.23
5.0.00.0060.0366.21
4.4.90.0060.0184.78
4.4.80.0060.0174.76
4.4.70.0070.0174.76
4.4.60.0040.0234.75
4.4.50.0040.0164.77
4.4.40.0030.0304.71
4.4.30.0040.0204.76
4.4.20.0030.0194.84
4.4.10.0040.0224.85
4.4.00.0060.0334.76
4.3.110.0080.0184.67
4.3.100.0030.0234.66
4.3.90.0080.0164.63
4.3.80.0100.0604.58
4.3.70.0080.0244.63
4.3.60.0050.0204.63
4.3.50.0060.0214.63
4.3.40.0090.0434.54
4.3.30.0120.0403.28
4.3.20.0180.0513.26
4.3.10.0110.0313.21
4.3.00.0170.01310.30

preferences:
139.54 ms | 1398 KiB | 7 Q