3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1, ,2, 0, 1.0, 1.1, "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.0460.04015.86
5.4.300.0360.04715.91
5.4.290.0310.04215.70
5.4.280.0280.04515.81
5.4.270.0210.04715.74
5.4.260.0350.04415.69
5.4.250.0280.04715.77
5.4.240.0380.04415.64
5.4.230.0400.04915.85
5.4.220.0470.03515.84
5.4.210.0360.04815.76
5.4.200.0340.04314.62
5.4.190.0310.04515.69
5.4.180.0500.05315.68
5.4.170.0340.05015.83
5.4.160.0430.04115.82
5.4.150.0380.05315.79
5.4.140.0260.04514.34
5.4.130.0350.04514.24
5.4.120.0360.03914.30
5.4.110.0300.04414.31
5.4.100.0300.04414.29
5.4.90.0360.04214.19
5.4.80.0340.04714.29
5.4.70.0320.04114.15
5.4.60.0450.04014.30
5.4.50.0350.04314.14
5.4.40.0320.04414.16
5.4.30.0420.04514.21
5.4.20.0270.04714.29
5.4.10.0350.04114.15
5.4.00.0430.04113.76
5.3.280.0430.04713.59
5.3.270.0330.04713.62
5.3.260.0370.05913.57
5.3.250.0340.04513.58
5.3.240.0410.04713.64
5.3.230.0400.05513.57
5.3.220.0480.05613.58
5.3.210.0490.05513.63
5.3.200.0360.05113.56
5.3.190.0400.04713.56
5.3.180.0490.04313.61
5.3.170.0460.04913.53
5.3.160.0350.04713.54
5.3.150.0370.04613.58
5.3.140.0350.04813.58
5.3.130.0350.04813.52
5.3.120.0380.04913.54
5.3.110.0350.04713.54
5.3.100.0420.05513.03
5.3.90.0450.04713.02
5.3.80.0560.04212.99
5.3.70.0450.04113.00
5.3.60.0450.04612.98
5.3.50.0370.05112.90
5.3.40.0320.04212.99
5.3.30.0320.04512.86
5.3.20.0480.04412.63
5.3.10.0410.03912.59
5.3.00.0420.04612.57
5.2.170.0210.04010.13
5.2.160.0290.03710.09
5.2.150.0260.03410.17
5.2.140.0370.03010.18
5.2.130.0370.03110.02
5.2.120.0290.03610.05
5.2.110.0410.03710.04
5.2.100.0280.03610.04
5.2.90.0370.03610.12
5.2.80.0210.03910.03
5.2.70.0280.03510.06
5.2.60.0270.03310.06
5.2.50.0270.04010.03
5.2.40.0170.0389.99
5.2.30.0240.03210.04
5.2.20.0200.0379.88
5.2.10.0100.0399.84
5.2.00.0280.0339.74
5.1.60.0270.0308.98
5.1.50.0260.0289.04
5.1.40.0210.0308.96
5.1.30.0210.0369.33
5.1.20.0220.0319.42
5.1.10.0270.0309.10
5.1.00.0240.0349.10
5.0.50.0050.0287.53
5.0.40.0200.0217.40
5.0.30.0170.0337.21
5.0.20.0130.0237.27
5.0.10.0160.0227.26
5.0.00.0130.0397.21
4.4.90.0140.0205.32
4.4.80.0090.0205.25
4.4.70.0130.0165.24
4.4.60.0110.0205.32
4.4.50.0140.0195.26
4.4.40.0130.0365.26
4.4.30.0200.0165.33
4.4.20.0100.0205.32
4.4.10.0080.0195.40
4.4.00.0100.0315.26
4.3.110.0080.0205.17
4.3.100.0080.0195.18
4.3.90.0110.0155.20
4.3.80.0090.0315.17
4.3.70.0110.0195.22
4.3.60.0140.0195.20
4.3.50.0110.0215.13
4.3.40.0130.0305.16
4.3.30.0080.0213.90
4.3.20.0100.0193.89
4.3.10.0040.0183.82
4.3.00.0100.01315.25

preferences:
141.78 ms | 1394 KiB | 7 Q