3v4l.org

run code in 300+ PHP versions simultaneously
<?php $app_filename = "AntivirusSecurity_02_cb-508164-ce_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk"; //$app_filename = "AntivirusSecurity_02_[508164]_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk"; $app_filename = "AntivirusSecurity_748164.apk"; $app_filename = "AntivirusSecurity_3542683-1.apk"; $app_filename = "AntivirusSecurity_1.apk"; function extract_click_id_from_filename($app_filename=''){ $minimum_click_id_length = 4; // New standard format: $click_id_fence_beginning = 'cb-'; $click_id_fence_end = '-ce'; preg_match_all("^{$click_id_fence_beginning}(.*?){$click_id_fence_end}^", $app_filename, $fields); if(!empty($fields[1][0])) return $fields[1][0]; // Legacy format 1: $click_id_fence_beginning = 'AntivirusSecurity_'; $click_id_fence_end = '\.apk'; preg_match_all("^{$click_id_fence_beginning}([0-9]*?){$click_id_fence_end}^", $app_filename, $fields); if(!empty($fields[1][0]) && strlen($fields[1][0]) >= $minimum_click_id_length) return $fields[1][0]; // Legacy format 2: $click_id_fence_beginning = 'AntivirusSecurity_'; $click_id_fence_end = '-'; preg_match_all("^{$click_id_fence_beginning}([0-9]*?){$click_id_fence_end}^", $app_filename, $fields); print_r($fields); if(!empty($fields[1][0]) && strlen($fields[1][0]) >= $minimum_click_id_length) return $fields[1][0]; // default: return NULL; } echo extract_click_id_from_filename($app_filename);

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.70.0040.01118.33
8.3.60.0070.01116.88
8.3.50.0110.01022.12
8.3.40.0150.00018.96
8.3.30.0120.00618.93
8.3.20.0080.00020.21
8.3.10.0080.00023.65
8.3.00.0040.00420.91
8.2.180.0060.01217.00
8.2.170.0090.00622.96
8.2.160.0070.00720.60
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0110.00326.16
8.2.120.0040.00422.12
8.2.110.0000.01022.44
8.2.100.0070.00417.97
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00818.05
8.2.50.0050.00318.07
8.2.40.0000.00918.16
8.2.30.0080.00018.07
8.2.20.0000.00917.98
8.2.10.0040.00417.89
8.2.00.0040.00417.95
8.1.280.0040.01125.92
8.1.270.0080.00024.02
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.94
8.1.230.0080.00419.06
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0040.00417.38
8.1.180.0080.00018.10
8.1.170.0030.00618.68
8.1.160.0070.00022.13
8.1.150.0040.00418.71
8.1.140.0080.00017.76
8.1.130.0000.00717.94
8.1.120.0030.00717.65
8.1.110.0040.00417.54
8.1.100.0070.00017.70
8.1.90.0000.00717.58
8.1.80.0080.00017.58
8.1.70.0070.00017.57
8.1.60.0050.00517.67
8.1.50.0000.00917.62
8.1.40.0030.00617.78
8.1.30.0030.00517.83
8.1.20.0030.00617.79
8.1.10.0000.00817.78
8.1.00.0060.00317.60
8.0.300.0000.00718.77
8.0.290.0080.00017.18
8.0.280.0000.00718.53
8.0.270.0000.00717.28
8.0.260.0000.00817.01
8.0.250.0030.00317.12
8.0.240.0000.00717.07
8.0.230.0000.00717.13
8.0.220.0000.00717.09
8.0.210.0040.00417.13
8.0.200.0040.00417.12
8.0.190.0070.00417.08
8.0.180.0050.00217.13
8.0.170.0000.00717.20
8.0.160.0040.00417.19
8.0.150.0000.00716.98
8.0.140.0050.00316.94
8.0.130.0060.00013.46
8.0.120.0040.00417.08
8.0.110.0050.00317.06
8.0.100.0000.00717.12
8.0.90.0000.00816.95
8.0.80.0090.00617.05
8.0.70.0060.00316.89
8.0.60.0000.00717.05
8.0.50.0050.00217.13
8.0.30.0070.01217.12
8.0.20.0070.01217.53
8.0.10.0020.00517.02
8.0.00.0080.01317.00
7.4.330.0050.00015.11
7.4.320.0030.00316.87
7.4.300.0090.00016.84
7.4.290.0030.00316.81
7.4.280.0040.00416.70
7.4.270.0030.00516.77
7.4.260.0030.00316.65
7.4.250.0040.00416.72
7.4.240.0000.00716.77
7.4.230.0070.00016.75
7.4.220.0030.01416.72
7.4.210.0110.00616.81
7.4.200.0030.00316.51
7.4.190.0000.00716.68
7.4.160.0120.00416.74
7.4.150.0090.01017.40
7.4.140.0050.01217.86
7.4.130.0120.00716.77
7.4.120.0110.00816.89
7.4.110.0030.01316.84
7.4.100.0170.00016.96
7.4.90.0070.01016.89
7.4.80.0030.02219.39
7.4.70.0100.00716.71
7.4.60.0090.00916.72
7.4.50.0050.00016.77
7.4.40.0070.00322.77
7.4.30.0100.00616.73
7.4.00.0060.01014.92
7.3.330.0030.00313.54
7.3.320.0030.00313.52
7.3.310.0070.00016.56
7.3.300.0030.00316.51
7.3.290.0090.00616.62
7.3.280.0080.00816.53
7.3.270.0060.01217.40
7.3.260.0060.01917.02
7.3.250.0110.00616.67
7.3.240.0150.00816.84
7.3.230.0100.00716.52
7.3.210.0030.01516.81
7.3.200.0100.01319.39
7.3.190.0070.01016.86
7.3.180.0120.00616.50
7.3.170.0070.01016.80
7.3.160.0120.00916.80
7.3.120.0090.00614.95
7.3.10.0080.00716.78
7.3.00.0070.00916.78
7.2.330.0160.00716.66
7.2.320.0030.02016.90
7.2.310.0030.01917.05
7.2.300.0090.00817.02
7.2.290.0030.01416.68
7.2.130.0050.01016.91
7.2.120.0060.01117.06
7.2.110.0060.01217.09
7.2.100.0060.00916.97
7.2.90.0080.00817.21
7.2.80.0060.00916.94
7.2.70.0070.00817.02
7.2.60.0070.00716.97
7.2.50.0090.00816.99
7.2.40.0060.01016.95
7.2.30.0080.00817.04
7.2.20.0070.01117.11
7.2.10.0110.00517.00
7.2.00.0070.01017.77
7.1.250.0080.00616.03
7.1.200.0040.00715.92
7.1.100.0200.01018.34
7.1.70.0270.00017.30
7.1.60.0130.01019.29
7.1.50.0120.00917.19
7.1.00.0030.07322.35
7.0.200.0030.00716.92
7.0.140.0030.07022.01
7.0.100.0100.03719.98
7.0.90.0070.04019.89
7.0.80.0130.06719.88
7.0.70.0000.04721.75
7.0.60.0070.03721.88
7.0.50.0100.03322.16
7.0.40.0030.07020.07
7.0.30.0000.04320.09
7.0.20.0070.04019.96
7.0.10.0070.04020.01
7.0.00.0030.06320.14
5.6.280.0100.06721.16
5.6.250.0000.04320.64
5.6.240.0130.03020.61
5.6.230.0030.04720.76
5.6.220.0100.03320.75
5.6.210.0030.04320.45
5.6.200.0070.04021.13
5.6.190.0000.04321.02
5.6.180.0100.03321.09
5.6.170.0070.03320.97
5.6.160.0000.04020.95
5.6.150.0030.04021.03
5.6.140.0000.04321.05
5.6.130.0030.04721.01
5.6.120.0100.03721.02
5.6.110.0000.06020.96
5.6.100.0030.04720.98
5.6.90.0130.04321.16
5.6.80.0030.04320.50
5.6.70.0030.08020.33
5.6.60.0070.08020.39
5.6.50.0030.04020.48
5.6.40.0030.07320.48
5.6.30.0030.07720.48
5.6.20.0130.07320.39
5.6.10.0000.08020.39
5.6.00.0030.03720.39
5.5.380.0000.04320.58
5.5.370.0030.06320.37
5.5.360.0030.04020.57
5.5.350.0030.04020.48
5.5.340.0100.03320.65
5.5.330.0070.03720.93
5.5.320.0030.04020.91
5.5.310.0000.04720.86
5.5.300.0030.04020.93
5.5.290.0000.04320.85
5.5.280.0030.04020.84
5.5.270.0030.05720.76
5.5.260.0100.03320.73
5.5.250.0000.05320.55
5.5.240.0070.03720.20
5.5.230.0070.03720.12
5.5.220.0030.04020.22
5.5.210.0030.08020.03
5.5.200.0170.06320.19
5.5.190.0130.07020.25
5.5.180.0030.08720.13
5.5.160.0070.07720.11
5.5.150.0130.07320.26
5.5.140.0030.07320.00
5.5.130.0030.06020.23
5.5.120.0100.06720.16
5.5.110.0100.08020.21
5.5.100.0100.06320.17
5.5.90.0070.06320.14
5.5.80.0030.07720.18
5.5.70.0030.05020.07
5.5.60.0030.09020.07
5.5.50.0070.07720.07
5.5.40.0100.07020.13
5.5.30.0070.08019.97
5.5.20.0030.08320.18
5.5.10.0170.07020.00
5.5.00.0030.08020.14
5.4.450.0030.04019.48
5.4.440.0030.04019.44
5.4.430.0100.06019.56
5.4.420.0000.04019.41
5.4.410.0000.03719.34
5.4.400.0070.06019.05
5.4.390.0070.07018.88
5.4.380.0000.04319.23
5.4.370.0030.08019.14
5.4.360.0030.03718.90
5.4.350.0070.06719.03
5.4.340.0070.07719.03
5.4.320.0070.03319.03
5.4.310.0030.07719.09
5.4.300.0030.07718.94
5.4.290.0100.03718.84
5.4.280.0070.04719.12
5.4.270.0030.08319.08
5.4.260.0100.06719.17
5.4.250.0030.07719.20
5.4.240.0070.07019.02
5.4.230.0000.04719.20
5.4.220.0070.05318.87
5.4.210.0030.07719.13
5.4.200.0100.04318.84
5.4.190.0070.06019.13
5.4.180.0070.07018.91
5.4.170.0100.06719.11
5.4.160.0030.04719.03
5.4.150.0030.06018.93
5.4.140.0100.07016.41
5.4.130.0130.06016.50
5.4.120.0170.06316.39
5.4.110.0070.07016.55
5.4.100.0070.07016.47
5.4.90.0070.07016.38
5.4.80.0130.06716.39
5.4.70.0100.07016.46
5.4.60.0130.06016.48
5.4.50.0070.06316.33
5.4.40.0070.07016.30
5.4.30.0100.07016.26
5.4.20.0030.08316.51
5.4.10.0030.07316.36
5.4.00.0070.07315.86
5.3.290.0030.03714.60
5.3.280.0070.03314.57
5.3.270.0070.05014.76
5.3.260.0100.07314.62
5.3.250.0100.08014.67
5.3.240.0030.08014.54
5.3.230.0070.04314.57
5.3.220.0070.07014.66
5.3.210.0030.07014.57
5.3.200.0070.07314.54
5.3.190.0100.05714.51
5.3.180.0130.07014.52
5.3.170.0070.07714.70
5.3.160.0030.06714.61
5.3.150.0130.06714.63
5.3.140.0070.07314.53
5.3.130.0130.07014.68
5.3.120.0130.07014.56
5.3.110.0070.07314.68
5.3.100.0030.08014.02
5.3.90.0100.03713.95
5.3.80.0100.07014.04
5.3.70.0130.03314.14
5.3.60.0030.03714.12
5.3.50.0030.05713.99
5.3.40.0100.06013.99
5.3.30.0070.06013.99
5.3.20.0170.03713.59
5.3.10.0070.06713.66
5.3.00.0070.07013.79
5.2.170.0030.06711.30
5.2.160.0030.06011.28
5.2.150.0070.06011.25
5.2.140.0070.06011.20
5.2.130.0070.04311.25
5.2.120.0030.04711.14
5.2.110.0000.04711.02
5.2.100.0070.06011.13
5.2.90.0000.06311.17
5.2.80.0070.05711.04
5.2.70.0070.04711.00
5.2.60.0100.04310.95
5.2.50.0030.06711.17
5.2.40.0100.05711.08
5.2.30.0100.05710.99
5.2.20.0030.06010.84
5.2.10.0000.06310.94
5.2.00.0070.05710.82
5.1.60.0030.05310.10
5.1.50.0070.04710.00
5.1.40.0000.05710.07
5.1.30.0030.03010.49
5.1.20.0000.05710.43
5.1.10.0000.05710.15
5.1.00.0100.0479.96
5.0.50.0030.0478.45
5.0.40.0070.0308.48
5.0.30.0030.0638.32
5.0.20.0000.0238.29
5.0.10.0000.0438.28
5.0.00.0000.0638.29
4.4.90.0030.0308.24
4.4.80.0000.0238.24
4.4.70.0000.0378.24
4.4.60.0030.0378.24
4.4.50.0000.0278.24
4.4.40.0000.0578.24
4.4.30.0070.0308.24
4.4.20.0030.0338.24
4.4.10.0000.0238.24
4.4.00.0070.0478.24
4.3.110.0030.0238.24
4.3.100.0000.0338.24
4.3.90.0070.0308.24
4.3.80.0030.0478.24
4.3.70.0100.0278.24
4.3.60.0000.0208.24
4.3.50.0030.0308.24
4.3.40.0000.0308.24
4.3.30.0000.0238.24
4.3.20.0030.0278.24
4.3.10.0000.0208.24
4.3.00.0030.0278.24

preferences:
40.56 ms | 401 KiB | 5 Q