3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, ,2 0, "0", '', null, false]; var_dump(array_filter($a, 'is_int'));

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.310.0070.03912.50
5.4.300.0070.03712.50
5.4.290.0130.04612.49
5.4.280.0090.04712.39
5.4.270.0070.05212.39
5.4.260.0060.04112.39
5.4.250.0110.06812.39
5.4.240.0130.07412.39
5.4.230.0080.04012.38
5.4.220.0060.04312.38
5.4.210.0110.08412.38
5.4.200.0080.05112.38
5.4.190.0030.04512.38
5.4.180.0040.04312.38
5.4.170.0070.03712.39
5.4.160.0080.04612.38
5.4.150.0100.04412.38
5.4.140.0040.04012.07
5.4.130.0060.03512.05
5.4.120.0060.03412.01
5.4.110.0090.03712.02
5.4.100.0070.04112.01
5.4.90.0040.04112.01
5.4.80.0070.04012.01
5.4.70.0050.03812.00
5.4.60.0100.03912.00
5.4.50.0080.04212.01
5.4.40.0090.03412.00
5.4.30.0040.03911.99
5.4.20.0060.03711.98
5.4.10.0110.03311.99
5.4.00.0040.03811.49
5.3.280.0080.03812.71
5.3.270.0120.04012.72
5.3.260.0090.05112.72
5.3.250.0100.04612.72
5.3.240.0100.06212.72
5.3.230.0070.04112.71
5.3.220.0080.05012.68
5.3.210.0120.04712.68
5.3.200.0060.03912.68
5.3.190.0060.03712.68
5.3.180.0030.03912.68
5.3.170.0040.04012.67
5.3.160.0080.03512.68
5.3.150.0060.04512.67
5.3.140.0050.04312.66
5.3.130.0030.04112.65
5.3.120.0110.03812.66
5.3.110.0060.03812.66
5.3.100.0020.04012.12
5.3.90.0070.03512.09
5.3.80.0060.03512.07
5.3.70.0040.03712.08
5.3.60.0060.03712.07
5.3.50.0070.03612.00
5.3.40.0090.03312.00
5.3.30.0050.03711.95
5.3.20.0040.03711.72
5.3.10.0070.03711.70
5.3.00.0070.03611.68
5.2.170.0050.0309.18
5.2.160.0040.0349.18
5.2.150.0110.0259.18
5.2.140.0090.0279.18
5.2.130.0080.0309.14
5.2.120.0060.0309.14
5.2.110.0070.0339.15
5.2.100.0060.0289.14
5.2.90.0040.0319.14
5.2.80.0080.0359.14
5.2.70.0060.0299.13
5.2.60.0090.0379.09
5.2.50.0040.0329.06
5.2.40.0040.0309.03
5.2.30.0030.0319.01
5.2.20.0060.0319.00
5.2.10.0060.0288.92
5.2.00.0040.0308.78
5.1.60.0020.0278.07
5.1.50.0050.0238.06
5.1.40.0040.0248.05
5.1.30.0050.0358.40
5.1.20.0010.0308.42
5.1.10.0060.0248.14
5.1.00.0040.0258.14
5.0.50.0040.0206.62
5.0.40.0040.0246.48
5.0.30.0050.0306.29
5.0.20.0040.0186.27
5.0.10.0020.0216.23
5.0.00.0040.0316.23
4.4.90.0030.0154.78
4.4.80.0020.0174.76
4.4.70.0050.0134.75
4.4.60.0050.0174.76
4.4.50.0040.0194.77
4.4.40.0040.0254.71
4.4.30.0030.0154.76
4.4.20.0050.0144.85
4.4.10.0010.0184.84
4.4.00.0020.0274.76
4.3.110.0010.0194.67
4.3.100.0000.0174.67
4.3.90.0060.0214.63
4.3.80.0060.0284.58
4.3.70.0040.0184.63
4.3.60.0050.0174.62
4.3.50.0060.0174.63
4.3.40.0030.0234.54
4.3.30.0010.0183.28
4.3.20.0030.0163.26
4.3.10.0020.0173.22
4.3.00.0070.0177.13

preferences:
136.08 ms | 1394 KiB | 7 Q