3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['subcat_id'] = 'a15,15,16'; $subcatArray = explode(',', $_GET['subcat_id']); $subcatArrayNumeric = array_filter($subcatArray, 'is_numeric'); print_r($subcatArrayNumeric);

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.5.10.0110.00520.16
8.5.00.0110.01220.01
8.4.150.0020.00114.05
8.4.140.0120.01017.51
8.4.130.0120.00918.66
8.4.120.0160.00424.20
8.4.110.0080.00920.49
8.4.100.0110.00918.65
8.4.90.0130.00722.36
8.4.80.0140.00818.50
8.4.70.0120.00917.75
8.4.60.0120.01020.47
8.4.50.0110.00919.39
8.4.40.0130.00720.66
8.4.30.0060.01317.70
8.4.20.0180.00317.68
8.4.10.0060.00317.85
8.3.280.0120.00818.62
8.3.270.0130.00616.74
8.3.260.0020.00716.54
8.3.250.0100.00919.13
8.3.240.0020.00617.37
8.3.230.0150.00516.70
8.3.220.0050.00319.16
8.3.210.0080.00418.49
8.3.200.0070.00216.53
8.3.190.0100.01017.23
8.3.180.0150.00416.76
8.3.170.0150.00416.59
8.3.160.0110.00716.73
8.3.150.0160.00316.51
8.3.140.0000.00817.16
8.3.130.0100.00016.51
8.3.120.0030.00618.92
8.3.110.0040.00420.94
8.3.100.0130.00616.41
8.3.90.0110.00426.77
8.3.80.0060.00318.31
8.3.70.0060.01316.58
8.3.60.0120.00318.18
8.3.50.0140.00721.99
8.3.40.0090.00618.79
8.3.30.0080.00818.67
8.3.20.0050.00320.34
8.3.10.0050.00321.73
8.3.00.0030.00620.89
8.2.290.0080.01020.50
8.2.280.0070.00418.39
8.2.270.0150.00419.04
8.2.260.0030.00316.70
8.2.250.0030.00518.31
8.2.240.0040.00419.14
8.2.230.0090.00322.58
8.2.220.0030.00616.36
8.2.210.0090.00026.77
8.2.200.0040.00416.38
8.2.190.0110.00416.58
8.2.180.0070.01325.92
8.2.170.0040.01122.96
8.2.160.0070.01019.21
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.36
8.2.120.0060.00326.35
8.2.110.0030.00620.89
8.2.100.0000.01020.59
8.2.90.0000.00817.84
8.2.80.0030.00619.38
8.2.70.0060.00318.03
8.2.60.0000.00818.34
8.2.50.0050.00318.10
8.2.40.0040.00420.41
8.2.30.0000.00820.29
8.2.20.0080.00017.73
8.2.10.0000.00818.18
8.2.00.0040.00418.17
8.1.330.0110.00921.98
8.1.320.0080.01316.35
8.1.310.0040.00418.26
8.1.300.0110.00720.38
8.1.290.0070.00430.84
8.1.280.0110.00325.92
8.1.270.0060.00323.85
8.1.260.0000.00828.09
8.1.250.0030.00528.09
8.1.240.0040.00422.10
8.1.230.0110.00019.04
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0000.00818.54
8.1.160.0000.00718.84
8.1.150.0050.00218.63
8.1.140.0040.00419.62
8.1.130.0070.00017.44
8.1.120.0000.00717.49
8.1.110.0040.00417.35
8.1.100.0070.00017.39
8.1.90.0030.00517.46
8.1.80.0070.00417.38
8.1.70.0070.00017.32
8.1.60.0030.00617.46
8.1.50.0040.00417.53
8.1.40.0040.00417.48
8.1.30.0000.00917.58
8.1.20.0030.00517.56
8.1.10.0040.00417.25
8.1.00.0040.00417.47
8.0.300.0040.00419.73
8.0.290.0000.00716.63
8.0.280.0070.00018.42
8.0.270.0050.00216.82
8.0.260.0030.00316.72
8.0.250.0030.00316.88
8.0.240.0030.00316.95
8.0.230.0090.00016.93
8.0.220.0000.00716.79
8.0.210.0070.00016.86
8.0.200.0070.00016.83
8.0.190.0030.00516.86
8.0.180.0030.00616.87
8.0.170.0050.00316.95
8.0.160.0070.00016.79
8.0.150.0000.00716.73
8.0.140.0040.00416.88
8.0.130.0030.00313.24
8.0.120.0020.00516.89
8.0.110.0040.00416.76
8.0.100.0000.00716.89
8.0.90.0000.00816.75
8.0.80.0040.01116.88
8.0.70.0000.00816.71
8.0.60.0030.00516.85
8.0.50.0040.00416.88
8.0.30.0120.00816.91
8.0.20.0090.01117.40
8.0.10.0000.00817.03
8.0.00.0110.00916.87
7.4.330.0000.00515.08
7.4.320.0070.00016.42
7.4.300.0030.00316.50
7.4.290.0030.00316.36
7.4.280.0000.00816.66
7.4.270.0000.00616.58
7.4.260.0000.00716.59
7.4.250.0040.00416.45
7.4.240.0030.00316.45
7.4.230.0030.00316.35
7.4.220.0030.01716.60
7.4.210.0030.01716.53
7.4.200.0000.00716.29
7.4.160.0060.01016.46
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0140.00516.52
7.4.120.0090.00916.50
7.4.110.0070.01316.41
7.4.100.0130.00516.46
7.4.90.0060.01216.48
7.4.80.0030.01419.39
7.4.70.0080.01016.43
7.4.60.0060.00916.56
7.4.50.0030.01016.59
7.4.40.0190.00016.48
7.4.30.0100.00716.46
7.4.00.0060.00915.00
7.3.330.0000.00512.96
7.3.320.0050.00013.05
7.3.310.0000.00716.18
7.3.300.0000.00716.04
7.3.290.0070.00016.26
7.3.280.0100.00816.19
7.3.270.0100.01517.40
7.3.260.0000.02216.55
7.3.250.0160.00216.35
7.3.240.0100.00816.29
7.3.230.0080.00816.39
7.3.210.0060.01016.09
7.3.200.0100.00616.52
7.3.190.0070.01016.57
7.3.180.0040.01216.29
7.3.170.0080.01016.45
7.3.160.0090.00916.22
7.3.120.0070.01314.98
7.3.110.0050.01214.80
7.3.100.0070.00714.92
7.3.90.0080.00514.56
7.3.80.0060.00814.92
7.3.70.0080.00614.64
7.3.60.0050.00714.81
7.3.50.0070.00614.87
7.3.40.0050.01014.72
7.3.30.0020.01314.68
7.3.20.0020.01416.36
7.3.10.0060.00316.72
7.3.00.0060.00716.49
7.2.330.0070.01416.66
7.2.320.0070.01016.83
7.2.310.0090.01416.52
7.2.300.0090.01316.75
7.2.290.0140.00716.80
7.2.250.0050.01214.91
7.2.240.0070.00915.06
7.2.230.0030.01115.04
7.2.220.0060.00614.95
7.2.210.0050.00915.03
7.2.200.0050.00914.94
7.2.190.0070.00714.84
7.2.180.0070.00314.98
7.2.170.0060.00714.85
7.2.60.0070.01016.64
7.2.00.0030.00919.43
7.1.330.0100.00515.63
7.1.320.0020.00915.65
7.1.310.0080.00715.89
7.1.300.0070.00715.79
7.1.290.0020.01015.70
7.1.280.0030.01015.69
7.1.270.0030.01015.68
7.1.260.0050.00815.64
7.1.200.0130.00615.61
7.1.100.0040.00818.04
7.1.70.0100.00516.86
7.1.60.0130.01019.48
7.1.00.0030.07722.54
7.0.200.0400.01514.43
7.0.60.0070.07721.61
7.0.50.0000.07317.77
7.0.40.0070.06720.06
7.0.30.0170.05720.27
7.0.20.0500.06720.27
7.0.10.0500.06720.30
7.0.00.0200.05720.07
5.6.280.0000.07721.06
5.6.210.0070.04720.62
5.6.200.0000.05318.12
5.6.190.0230.04720.53
5.6.180.0270.04320.60
5.6.170.0530.04320.59
5.6.160.0200.06020.43
5.6.150.0300.04720.58
5.6.140.0130.06020.58
5.6.130.0300.05320.32
5.6.120.0130.06720.33
5.6.110.0100.06020.40
5.6.100.0070.06320.57
5.6.90.0200.06020.34
5.6.80.0300.05019.97
5.6.70.0330.04719.82
5.6.60.0270.06019.96
5.6.50.0130.06719.84
5.6.40.0130.06019.94
5.6.30.0230.07319.82
5.6.20.0130.06319.53
5.6.10.0170.06019.80
5.6.00.0270.05019.76
5.5.350.0100.03320.48
5.5.340.0100.08017.95
5.5.330.0200.05720.31
5.5.320.0100.05720.32
5.5.310.0530.05020.23
5.5.300.0230.05320.11
5.5.290.0170.06720.23
5.5.280.0130.06320.16
5.5.270.0200.05720.16
5.5.260.0300.04720.10
5.5.250.0200.05319.93
5.5.240.0130.06319.57
5.5.230.0070.06319.54
5.5.220.0200.05319.48
5.5.210.0170.07019.55
5.5.200.0200.05319.60
5.5.190.0100.06319.46
5.5.180.0130.05719.36
5.5.160.0230.05019.41
5.5.150.0200.06319.58
5.5.140.0300.04719.57
5.5.130.0100.06319.55
5.5.120.0170.05319.47
5.5.110.0200.05319.34
5.5.100.0230.05019.36
5.5.90.0100.07319.48
5.5.80.0300.05719.47
5.5.70.0330.04319.35
5.5.60.0270.07719.63
5.5.50.0270.05319.45
5.5.40.0200.05319.40
5.5.30.0130.05319.46
5.5.20.0230.04719.50
5.5.10.0330.03719.49
5.5.00.0130.05719.39

preferences:
23.96 ms | 403 KiB | 5 Q