3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = strlen(array) ?? 10; var_dump($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.340.0110.04712.01
5.4.320.0090.05712.49
5.4.310.0100.05312.49
5.4.300.0080.05112.49
5.4.290.0070.05612.49
5.4.280.0080.05012.39
5.4.270.0080.05112.39
5.4.260.0070.05612.39
5.4.250.0070.05412.39
5.4.240.0150.06812.39
5.4.230.0070.06112.38
5.4.220.0130.05212.38
5.4.210.0110.04912.38
5.4.200.0090.05512.38
5.4.190.0080.05112.38
5.4.180.0080.05112.38
5.4.170.0130.04612.38
5.4.160.0100.04512.38
5.4.150.0100.04412.38
5.4.140.0040.05412.07
5.4.130.0100.04412.05
5.4.120.0050.05012.02
5.4.110.0110.04412.01
5.4.100.0070.04612.01
5.4.90.0050.05312.01
5.4.80.0080.04912.01
5.4.70.0090.04612.00
5.4.60.0130.04912.00
5.4.50.0060.04912.00
5.4.40.0070.04711.99
5.4.30.0050.05011.99
5.4.20.0090.04711.99
5.4.10.0110.04311.99
5.4.00.0060.04911.48
5.3.290.0070.05412.80
5.3.280.0140.05712.71
5.3.270.0130.06612.72
5.3.260.0130.07012.72
5.3.250.0120.05312.72
5.3.240.0100.04312.72
5.3.230.0100.05512.71
5.3.220.0100.05712.68
5.3.210.0080.05812.68
5.3.200.0100.05212.68
5.3.190.0050.05212.68
5.3.180.0100.04012.67
5.3.170.0080.04812.67
5.3.160.0140.05012.67
5.3.150.0130.04712.68
5.3.140.0130.04812.66
5.3.130.0090.05412.65
5.3.120.0050.05712.66
5.3.110.0130.07812.66
5.3.100.0120.04812.12
5.3.90.0080.05112.08
5.3.80.0110.04212.08
5.3.70.0090.04912.08
5.3.60.0140.06312.06
5.3.50.0100.04612.00
5.3.40.0120.04512.00
5.3.30.0100.04811.95
5.3.20.0100.04711.72
5.3.10.0120.04511.70
5.3.00.0080.04911.68
5.2.170.0230.0599.18
5.2.160.0110.0359.18
5.2.150.0140.0539.18
5.2.140.0160.0619.18
5.2.130.0100.0479.14
5.2.120.0210.0329.14
5.2.110.0070.0459.15
5.2.100.0080.0419.14
5.2.90.0080.0399.14
5.2.80.0120.0429.14
5.2.70.0130.0389.14
5.2.60.0090.0459.09
5.2.50.0110.0429.05
5.2.40.0120.0299.04
5.2.30.0060.0379.01
5.2.20.0070.0349.00
5.2.10.0130.0318.92
5.2.00.0050.0418.78
5.1.60.0110.0418.07
5.1.50.0170.0338.06
5.1.40.0080.0398.04
5.1.30.0120.0298.40
5.1.20.0090.0348.42
5.1.10.0080.0298.14
5.1.00.0100.0258.14
5.0.50.0070.0246.63
5.0.40.0060.0256.48
5.0.30.0050.0406.29
5.0.20.0030.0226.26
5.0.10.0050.0266.24
5.0.00.0070.0306.23
4.4.90.0060.0144.78
4.4.80.0040.0154.75
4.4.70.0030.0174.75
4.4.60.0050.0154.75
4.4.50.0030.0204.77
4.4.40.0020.0334.71
4.4.30.0030.0224.76
4.4.20.0060.0214.84
4.4.10.0020.0234.85
4.4.00.0050.0284.76
4.3.110.0030.0214.67
4.3.100.0020.0214.66
4.3.90.0040.0214.63
4.3.80.0060.0364.58
4.3.70.0030.0334.63
4.3.60.0020.0224.63
4.3.50.0040.0244.63
4.3.40.0040.0284.54
4.3.30.0030.0243.29
4.3.20.0030.0193.26
4.3.10.0020.0193.22
4.3.00.0230.0306.96

preferences:
146.47 ms | 1386 KiB | 7 Q