3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(11, '11', 'd1', '1d'); var_dump(array_filter($arr, 'ctype_digit')); var_dump(array_filter($arr, 'is_numeric'));

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)
8.3.60.0110.00618.39
8.3.50.0090.01221.03
8.3.40.0040.01118.59
8.3.30.0110.00418.93
8.3.20.0040.00420.04
8.3.10.0040.00423.50
8.3.00.0040.01219.13
8.2.180.0100.00616.63
8.2.170.0110.00422.96
8.2.160.0070.00720.57
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00722.23
8.2.110.0060.00322.23
8.2.100.0060.00617.60
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0030.00617.91
8.2.50.0060.00318.07
8.2.40.0000.00819.89
8.2.30.0000.00817.86
8.2.20.0000.00717.46
8.2.10.0000.00717.92
8.2.00.0000.00817.70
8.1.280.0070.01025.92
8.1.270.0080.00023.91
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0130.00323.80
8.1.230.0090.00317.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0030.00617.22
8.1.180.0080.00018.10
8.1.170.0050.00318.57
8.1.160.0080.00021.87
8.1.150.0040.00418.92
8.1.140.0000.00817.38
8.1.130.0000.00717.87
8.1.120.0000.00817.38
8.1.110.0000.00717.36
8.1.100.0040.00417.29
8.1.90.0040.00417.28
8.1.80.0070.00017.44
8.1.70.0000.00717.30
8.1.60.0040.00417.56
8.1.50.0000.00817.50
8.1.40.0030.00617.44
8.1.30.0040.00417.52
8.1.20.0000.00817.57
8.1.10.0050.00317.32
8.1.00.0000.00717.22
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.38
8.0.270.0000.00717.18
8.0.260.0000.00917.18
8.0.250.0030.00316.90
8.0.240.0080.00016.92
8.0.230.0040.00416.84
8.0.220.0040.00316.77
8.0.210.0000.00716.70
8.0.200.0030.00516.76
8.0.190.0000.00716.80
8.0.180.0040.00416.75
8.0.170.0000.00916.73
8.0.160.0040.00416.88
8.0.150.0000.00716.83
8.0.140.0000.00816.72
8.0.130.0000.00513.15
8.0.120.0070.00016.68
8.0.110.0000.00716.80
8.0.100.0050.00216.76
8.0.90.0070.00016.64
8.0.80.0070.01016.75
8.0.70.0000.00716.88
8.0.60.0000.00716.68
8.0.50.0040.00416.75
8.0.30.0070.01316.86
8.0.20.0120.00817.40
8.0.10.0080.00016.93
8.0.00.0080.01016.70
7.4.330.0050.00015.03
7.4.320.0030.00316.28
7.4.300.0000.00716.57
7.4.290.0070.00016.48
7.4.280.0050.00316.54
7.4.270.0000.00716.29
7.4.260.0070.00016.50
7.4.250.0000.00716.36
7.4.240.0020.00516.46
7.4.230.0000.00716.50
7.4.220.0110.00716.45
7.4.210.0080.00616.46
7.4.200.0000.00716.24
7.4.160.0040.01116.56
7.4.150.0170.00017.40
7.4.140.0080.01017.86
7.4.130.0060.01216.46
7.4.120.0050.01316.37
7.4.110.0130.00316.40
7.4.100.0070.01416.54
7.4.90.0030.01316.25
7.4.80.0060.01019.39
7.4.70.0160.00016.43
7.4.60.0040.01216.31
7.4.50.0080.00016.32
7.4.40.0080.00816.50
7.4.30.0170.00016.45
7.4.00.0090.00314.81
7.3.330.0030.00312.93
7.3.320.0030.00313.02
7.3.310.0040.00415.89
7.3.300.0000.00616.09
7.3.290.0050.01516.15
7.3.280.0080.01116.13
7.3.270.0090.00917.40
7.3.260.0100.00716.36
7.3.250.0120.00416.38
7.3.240.0060.01016.21
7.3.230.0090.01216.39
7.3.210.0090.00915.92
7.3.200.0000.01819.39
7.3.190.0150.00416.40
7.3.180.0120.00316.14
7.3.170.0040.01316.27
7.3.160.0030.01216.13
7.2.330.0100.00716.53
7.2.320.0140.00716.29
7.2.310.0080.00816.15
7.2.300.0080.00816.51
7.2.290.0070.01016.49
7.2.00.0050.00519.14
7.1.100.0000.00918.12
7.1.70.0040.00417.02
7.1.60.0000.01719.32
7.1.50.0030.00916.57
7.1.00.0000.07022.28
7.0.200.0040.00416.85
7.0.140.0000.07721.92
7.0.110.0070.03019.94
7.0.100.0070.03020.04
7.0.90.0030.03719.84
7.0.80.0030.04019.93
7.0.70.0070.08319.91
7.0.60.0070.03719.89
7.0.50.0070.04719.96
7.0.40.0030.03719.65
7.0.30.0030.05019.71
7.0.20.0030.04019.71
7.0.10.0030.04319.86
7.0.00.0000.03719.65
5.6.280.0030.07020.98
5.6.260.0030.03320.59
5.6.250.0030.03320.68
5.6.240.0030.03720.47
5.6.230.0030.04320.50
5.6.220.0000.04020.70
5.6.210.0030.06020.70
5.6.200.0100.04020.55
5.6.190.0070.04720.58
5.6.180.0000.04320.65
5.6.170.0000.08320.61
5.6.160.0100.04320.63
5.6.150.0100.06020.59
5.6.140.0030.03720.64
5.6.130.0000.06320.55
5.6.120.0030.04320.63
5.6.110.0070.03720.63
5.6.100.0070.06720.63
5.6.90.0070.04020.58
5.6.80.0100.03020.02
5.6.70.0000.05720.00
5.6.60.0100.07320.02
5.6.50.0030.04019.94
5.6.40.0030.08020.02
5.6.30.0000.04320.05
5.6.20.0130.03019.99
5.6.10.0070.06719.90
5.6.00.0100.08020.05
5.5.380.0030.03317.40
5.5.370.0030.03317.62
5.5.360.0030.03717.61
5.5.350.0070.04717.44
5.5.340.0070.06318.16
5.5.330.0030.08317.87
5.5.320.0000.05718.03
5.5.310.0030.03318.12
5.5.300.0030.03317.82
5.5.290.0000.04717.77
5.5.280.0170.02718.01
5.5.270.0030.04717.86
5.5.260.0030.04318.24
5.5.250.0100.03317.70
5.5.240.0070.03717.48
5.5.230.0000.04317.36
5.5.220.0030.04717.24
5.5.210.0070.05317.39
5.5.200.0030.04017.45
5.5.190.0070.03717.20
5.5.180.0070.05317.21
5.5.160.0030.03717.47
5.5.150.0070.03317.21
5.5.140.0030.03317.19
5.5.130.0070.04317.35
5.5.120.0000.04317.24
5.5.110.0130.06017.23
5.5.100.0070.05017.38
5.5.90.0130.07017.35
5.5.80.0000.04017.41
5.5.70.0070.07317.35
5.5.60.0070.07017.09
5.5.50.0070.03717.39
5.5.40.0000.04017.37
5.5.30.0030.04317.39
5.5.20.0030.06017.09
5.5.10.0030.05017.25
5.5.00.0030.06017.24
5.4.450.0030.03319.60
5.4.440.0070.03719.27
5.4.430.0030.04019.32
5.4.420.0070.04719.30
5.4.410.0070.05319.22
5.4.400.0100.05319.04
5.4.390.0100.05719.04
5.4.380.0100.04019.01
5.4.370.0070.03719.03
5.4.360.0100.04019.00
5.4.350.0000.06719.01
5.4.340.0030.06019.25
5.4.320.0100.06318.93
5.4.310.0030.03319.16
5.4.300.0070.04019.16
5.4.290.0100.02719.00
5.4.280.0000.07318.95
5.4.270.0030.08019.25
5.4.260.0070.03018.96
5.4.250.0030.05318.92
5.4.240.0000.04018.94
5.4.230.0070.03719.15
5.4.220.0070.04019.09
5.4.210.0070.03318.99
5.4.200.0030.04019.12
5.4.190.0100.03719.01
5.4.180.0030.05019.02
5.4.170.0100.05719.08
5.4.160.0030.04719.05
5.4.150.0030.04719.09
5.4.140.0030.07016.22
5.4.130.0100.06016.20
5.4.120.0030.03716.55
5.4.110.0070.05016.48
5.4.100.0030.03716.50
5.4.90.0070.05316.48
5.4.80.0070.06016.27
5.4.70.0100.04016.27
5.4.60.0070.03316.39
5.4.50.0030.04016.29
5.4.40.0070.07016.39
5.4.30.0030.03716.50
5.4.20.0100.02716.34
5.4.10.0030.03716.25
5.4.00.0070.03715.65
5.3.290.0070.06014.51
5.3.280.0070.03314.61
5.3.270.0070.03714.54
5.3.260.0000.04314.46
5.3.250.0070.03014.45
5.3.240.0070.06014.39
5.3.230.0100.03314.69
5.3.220.0000.04714.66
5.3.210.0030.04714.50
5.3.200.0070.05714.58
5.3.190.0000.05014.45
5.3.180.0070.06014.48
5.3.170.0030.03014.48
5.3.160.0100.03014.41
5.3.150.0070.04314.45
5.3.140.0070.06714.61
5.3.130.0030.07314.50
5.3.120.0030.07314.45
5.3.110.0100.03314.60
5.3.100.0070.03713.98
5.3.90.0100.06313.95
5.3.80.0030.05313.93
5.3.70.0030.07014.04
5.3.60.0030.05014.07
5.3.50.0030.07713.88
5.3.40.0000.04013.95
5.3.30.0100.06713.81
5.3.20.0030.07713.52
5.3.10.0130.05713.59
5.3.00.0070.06313.57
5.2.170.0070.05312.19
5.2.160.0030.06312.19
5.2.150.0030.03012.19
5.2.140.0070.04712.19
5.2.130.0070.05012.19
5.2.120.0030.05012.19
5.2.110.0070.04312.19
5.2.100.0030.06312.19
5.2.90.0100.04012.19
5.2.80.0070.04712.19
5.2.70.0000.04312.19
5.2.60.0030.03012.19
5.2.50.0000.06012.19
5.2.40.0030.03712.19
5.2.30.0070.05012.19
5.2.20.0030.02712.19
5.2.10.0070.06012.19
5.2.00.0030.03012.19
5.1.60.0000.02712.19
5.1.50.0070.02312.19
5.1.40.0000.02712.19
5.1.30.0000.02712.19
5.1.20.0070.02312.19
5.1.10.0000.03712.19
5.1.00.0030.04712.19
5.0.50.0000.03012.19
5.0.40.0000.02012.19
5.0.30.0030.03012.19
5.0.20.0030.02012.19
5.0.10.0030.02312.19
5.0.00.0000.03012.19
4.4.90.0030.02712.19
4.4.80.0070.01312.19
4.4.70.0000.01712.19
4.4.60.0000.01712.19
4.4.50.0070.01312.19
4.4.40.0000.04012.19
4.4.30.0000.01712.19
4.4.20.0030.01712.19
4.4.10.0030.01312.19
4.4.00.0030.02312.19
4.3.110.0030.02312.19
4.3.100.0000.01712.19
4.3.90.0030.01312.19
4.3.80.0000.02712.19
4.3.70.0000.01312.19
4.3.60.0030.01312.19
4.3.50.0030.01712.19
4.3.40.0000.02712.19
4.3.30.0000.01712.19
4.3.20.0000.01312.19
4.3.10.0000.01312.19
4.3.00.0030.01012.19

preferences:
30.34 ms | 401 KiB | 5 Q