3v4l.org

run code in 300+ PHP versions simultaneously
<?php $apples = 4; print("I have ${apples} apples") # or print("I have {0} apples" % $apples)

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.340.0050.05012.01
5.4.320.0080.04212.50
5.4.310.0080.05212.49
5.4.300.0090.04512.50
5.4.290.0070.05712.49
5.4.280.0070.04912.39
5.4.270.0080.04612.39
5.4.260.0120.04612.39
5.4.250.0160.04112.39
5.4.240.0060.03612.39
5.4.230.0100.03412.38
5.4.220.0060.03612.38
5.4.210.0060.04912.38
5.4.200.0120.05112.38
5.4.190.0070.05212.38
5.4.180.0090.06312.38
5.4.170.0100.04812.38
5.4.160.0080.04412.38
5.4.150.0100.05212.38
5.4.140.0080.05112.07
5.4.130.0110.04512.05
5.4.120.0070.05012.02
5.4.110.0130.04512.01
5.4.100.0090.04712.01
5.4.90.0050.05212.01
5.4.80.0100.04912.01
5.4.70.0090.06212.00
5.4.60.0130.05212.00
5.4.50.0080.04612.01
5.4.40.0030.04111.99
5.4.30.0050.04211.99
5.4.20.0080.03711.99
5.4.10.0090.04311.99
5.4.00.0100.03511.48
5.3.290.0100.04712.80
5.3.280.0100.04612.71
5.3.270.0090.05112.72
5.3.260.0120.04812.71
5.3.250.0110.03712.72
5.3.240.0050.03912.72
5.3.230.0110.03212.71
5.3.220.0120.03612.68
5.3.210.0110.03712.68
5.3.200.0070.04612.68
5.3.190.0080.04612.68
5.3.180.0050.04112.68
5.3.170.0090.05012.67
5.3.160.0060.05312.67
5.3.150.0080.04812.68
5.3.140.0080.03812.66
5.3.130.0070.04212.66
5.3.120.0090.04012.66
5.3.110.0080.04412.66
5.3.100.0100.04212.12
5.3.90.0080.05112.08
5.3.80.0150.04012.08
5.3.70.0130.04312.07
5.3.60.0110.04212.06
5.3.50.0130.03912.00
5.3.40.0040.03812.00
5.3.30.0100.04011.95
5.3.20.0070.03711.72
5.3.10.0070.03911.70
5.3.00.0100.05011.68
5.2.170.0030.0359.18
5.2.160.0040.0309.18
5.2.150.0050.0309.18
5.2.140.0100.0369.18
5.2.130.0070.0279.14
5.2.120.0020.0319.14
5.2.110.0050.0299.14
5.2.100.0060.0279.14
5.2.90.0060.0279.14
5.2.80.0060.0349.13
5.2.70.0030.0339.14
5.2.60.0060.0299.09
5.2.50.0030.0319.06
5.2.40.0060.0399.04
5.2.30.0050.0309.02
5.2.20.0060.0279.00
5.2.10.0040.0328.92
5.2.00.0090.0378.79
5.1.60.0050.0318.07
5.1.50.0050.0348.07
5.1.40.0020.0318.05
5.1.30.0020.0288.40
5.1.20.0050.0268.41
5.1.10.0060.0248.14
5.1.00.0040.0288.14
5.0.50.0020.0306.62
5.0.40.0040.0286.48
5.0.30.0060.0316.29
5.0.20.0040.0196.27
5.0.10.0030.0206.24
5.0.00.0040.0356.23
4.4.90.0030.0164.77
4.4.80.0020.0174.76
4.4.70.0030.0164.75
4.4.60.0050.0154.75
4.4.50.0050.0144.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0060.0154.85
4.4.00.0030.0294.76
4.3.110.0020.0164.67
4.3.100.0040.0134.66
4.3.90.0010.0164.63
4.3.80.0060.0214.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0040.0203.28
4.3.20.0030.0193.26
4.3.10.0020.0183.21
4.3.00.0100.0136.82

preferences:
148.95 ms | 1386 KiB | 7 Q