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); 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.60.0130.00718.30
8.3.50.0200.01122.06
8.3.40.0070.00719.13
8.3.30.0000.01419.22
8.3.20.0080.00020.16
8.3.10.0000.00823.66
8.3.00.0000.00820.66
8.2.180.0040.01616.63
8.2.170.0070.00722.96
8.2.160.0110.00422.30
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00317.75
8.2.110.0040.00422.33
8.2.100.0040.00818.03
8.2.90.0000.00819.26
8.2.80.0040.00417.97
8.2.70.0030.00617.88
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0040.00418.26
8.2.20.0060.00317.93
8.2.10.0040.00419.54
8.2.00.0060.00317.88
8.1.280.0090.00625.92
8.1.270.0080.00023.88
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0060.00323.79
8.1.230.0080.00419.24
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0070.00317.61
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0090.00018.92
8.1.160.0000.00722.15
8.1.150.0040.00418.71
8.1.140.0000.00717.57
8.1.130.0050.00317.78
8.1.120.0000.00717.73
8.1.110.0000.00817.56
8.1.100.0000.00817.63
8.1.90.0040.00417.63
8.1.80.0000.00717.56
8.1.70.0070.00017.53
8.1.60.0040.00417.81
8.1.50.0000.00817.56
8.1.40.0050.00317.63
8.1.30.0030.00517.86
8.1.20.0040.00417.80
8.1.10.0030.00617.81
8.1.00.0050.00317.68
8.0.300.0070.00018.77
8.0.290.0060.00317.30
8.0.280.0070.00018.52
8.0.270.0040.00417.20
8.0.260.0030.00316.89
8.0.250.0030.00317.19
8.0.240.0070.00017.09
8.0.230.0070.00017.16
8.0.220.0040.00417.13
8.0.210.0040.00416.95
8.0.200.0000.00617.00
8.0.190.0040.00417.17
8.0.180.0040.00417.11
8.0.170.0030.00617.10
8.0.160.0070.00017.03
8.0.150.0000.00816.91
8.0.140.0070.00017.06
8.0.130.0000.00613.50
8.0.120.0000.00717.09
8.0.110.0000.00817.10
8.0.100.0050.00317.04
8.0.90.0020.00517.16
8.0.80.0030.01717.03
8.0.70.0040.00416.96
8.0.60.0050.00217.13
8.0.50.0000.00717.15
8.0.30.0070.01217.19
8.0.20.0140.00617.41
8.0.10.0000.00717.05
8.0.00.0130.00716.92
7.4.330.0050.00015.11
7.4.320.0000.00616.87
7.4.300.0030.00316.78
7.4.290.0030.00316.88
7.4.280.0070.00016.91
7.4.270.0040.00416.84
7.4.260.0040.00416.74
7.4.250.0040.00416.80
7.4.240.0050.00216.80
7.4.230.0030.00316.93
7.4.220.0120.01516.70
7.4.210.0110.00716.80
7.4.200.0000.00716.66
7.4.190.0070.00016.63
7.4.160.0100.00616.67
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0060.01716.88
7.4.120.0080.00916.78
7.4.110.0120.00616.66
7.4.100.0060.01216.72
7.4.90.0100.01316.67
7.4.80.0090.01516.87
7.4.70.0090.00916.79
7.4.60.0030.01316.73
7.4.50.0020.00216.55
7.4.40.0090.00522.77
7.4.30.0070.01316.79
7.4.00.0060.00915.12
7.3.330.0000.00513.38
7.3.320.0050.00013.55
7.3.310.0050.00216.41
7.3.300.0040.00416.61
7.3.290.0040.00916.56
7.3.280.0090.00816.54
7.3.270.0120.00617.40
7.3.260.0070.01016.73
7.3.250.0070.01516.66
7.3.240.0110.01116.83
7.3.230.0100.00716.87
7.3.210.0030.01616.79
7.3.200.0100.01219.39
7.3.190.0130.00316.89
7.3.180.0080.00816.74
7.3.170.0100.00716.82
7.3.160.0090.00916.69
7.3.120.0080.01015.30
7.3.110.0060.01215.05
7.3.100.0060.00615.38
7.3.90.0060.00915.27
7.3.80.0110.00015.01
7.3.70.0070.00715.05
7.3.60.0120.00314.95
7.3.50.0030.01015.16
7.3.40.0030.01015.08
7.3.30.0040.01414.93
7.3.20.0040.01116.79
7.3.10.0000.01416.65
7.3.00.0000.01316.81
7.2.330.0070.01116.94
7.2.320.0110.00616.90
7.2.310.0040.01516.86
7.2.300.0120.00916.77
7.2.290.0030.01316.87
7.2.250.0070.01115.25
7.2.240.0070.01015.07
7.2.230.0030.00715.38
7.2.220.0070.00715.29
7.2.210.0090.00914.98
7.2.200.0080.00615.44
7.2.190.0090.00315.30
7.2.180.0040.01115.23
7.2.170.0030.00715.21
7.1.330.0070.01115.91
7.1.320.0000.01515.90
7.1.310.0030.01315.71
7.1.300.0100.00016.07
7.1.290.0070.01016.06
7.1.280.0060.00915.91
7.1.270.0110.00015.58
7.1.260.0050.00516.18
7.1.200.0000.01315.96
7.1.70.0000.00717.09
7.1.60.0030.02019.32
7.1.50.0030.01617.05
7.1.00.0000.08022.45
7.0.200.0070.00516.91
7.0.140.0000.07322.00
7.0.60.0100.06019.97
7.0.50.0130.07017.93
7.0.40.0070.08020.41
7.0.30.0200.07720.36
7.0.20.0230.08720.24
7.0.10.0170.05020.12
7.0.00.0030.09020.32
5.6.280.0000.07721.08
5.6.210.0100.04020.74
5.6.200.0070.08018.29
5.6.190.0170.07020.52
5.6.180.0100.08020.61
5.6.170.0230.07720.48
5.6.160.0030.04020.52
5.6.150.0100.05718.16
5.6.140.0030.06318.28
5.6.130.0100.08018.24
5.6.120.0130.03321.16
5.6.110.0100.08020.90
5.6.100.0100.07720.98
5.6.90.0070.08320.91
5.6.80.0300.06720.55
5.6.70.4230.04020.41
5.5.350.0070.07720.40
5.5.340.0030.03717.95
5.5.330.0000.08720.38
5.5.320.0000.06320.34
5.5.310.0170.05020.35
5.5.300.0100.08018.08
5.5.290.0000.04318.06
5.5.280.0130.06320.98
5.5.270.0000.05720.78
5.5.260.0230.06020.82
5.5.250.0070.08320.56
5.5.240.0070.08020.28
5.4.450.1070.03319.64
5.4.440.1970.03719.39
5.4.430.2000.03719.30
5.4.420.0030.04719.41
5.4.410.0030.03719.29
5.4.400.0000.04019.18
5.4.390.1600.04019.14
5.4.380.1830.03718.87
5.4.370.2400.03718.84
5.4.360.1700.04319.11
5.4.350.2570.04319.22
5.4.340.2130.02319.22
5.4.320.2200.03719.09
5.4.310.2130.03718.87
5.4.300.2000.04319.21
5.4.290.1930.04019.22
5.4.280.2030.04719.06
5.4.270.1870.03318.89
5.4.260.2130.03019.14
5.4.250.2000.04319.13
5.4.240.2130.04319.08
5.4.230.2130.04019.18
5.4.220.1170.03719.23
5.4.210.2230.04718.96
5.4.200.2130.03718.83
5.4.190.2000.04018.83
5.4.180.1930.03319.30
5.4.170.0730.05019.30
5.4.160.0070.04019.20
5.4.150.0230.06719.21
5.4.140.2170.04716.55
5.4.130.2070.04716.40
5.4.120.1900.03316.50
5.4.110.2230.04016.24
5.4.100.1930.03016.24
5.4.90.2030.03716.40
5.4.80.2030.03716.42
5.4.70.2070.04016.60
5.4.60.2230.04016.51
5.4.50.1700.03316.27
5.4.40.0070.07016.51
5.4.30.0130.05716.38
5.4.20.1400.02316.23
5.4.10.2100.04016.27
5.4.00.2100.04315.82
5.3.290.2130.04014.69
5.3.280.2170.04014.58
5.3.270.1970.03714.52
5.3.260.2030.04714.69
5.3.250.1930.04014.67
5.3.240.1900.03714.48
5.3.230.2030.04014.75
5.3.220.0130.06714.65
5.3.210.0030.08014.63
5.3.200.0700.04314.47
5.3.190.1830.04314.49
5.3.180.1870.04014.53
5.3.170.2200.04014.57
5.3.160.1970.04014.79
5.3.150.2130.04714.66
5.3.140.2000.03714.64
5.3.130.2370.04314.54
5.3.120.1930.03714.63
5.3.110.1870.04314.63
5.3.100.1100.03013.96
5.3.90.0070.03314.25
5.3.80.0030.03313.93
5.3.70.1630.03713.94
5.3.60.1970.03313.93
5.3.50.1970.03713.89
5.3.40.2100.03013.94
5.3.30.1900.04314.00
5.3.20.2000.03313.68
5.3.10.2000.03013.75
5.3.00.2030.03013.55
5.2.170.1700.02711.25
5.2.160.1630.02711.17
5.2.150.1600.03311.17
5.2.140.0500.03011.39
5.2.130.0070.03011.25
5.2.120.0000.03011.13
5.2.110.0770.02711.03
5.2.100.1230.02710.99
5.2.90.1570.03011.34
5.2.80.1570.02711.34
5.2.70.2130.03711.08
5.2.60.2130.03710.99
5.2.50.1600.03310.95
5.2.40.1300.02310.94
5.2.30.1170.03011.04
5.2.20.1330.02710.90
5.2.10.1270.02711.02
5.2.00.1300.02710.65
5.1.60.1300.02010.10
5.1.50.0230.0209.91
5.1.40.0000.02710.09
5.1.30.0070.02710.25
5.1.20.0030.02310.38
5.1.10.0670.0209.98
5.1.00.1130.03310.04
5.0.50.0400.0208.72
5.0.40.0570.0178.69
5.0.30.0630.0278.69
5.0.20.0630.0178.69
5.0.10.0630.0208.69
5.0.00.0630.0338.69
4.4.90.0070.0208.69
4.4.80.0530.0138.69
4.4.70.0570.0138.69
4.4.60.0730.0208.69
4.4.50.0670.0238.69
4.4.40.0700.0378.69
4.4.30.0630.0208.69
4.4.20.0830.0138.69
4.4.10.0630.0208.69
4.4.00.0830.0338.69
4.3.110.0600.0208.69
4.3.100.0700.0208.69
4.3.90.0600.0138.69
4.3.80.0830.0338.69
4.3.70.0770.0238.69
4.3.60.0130.0308.69
4.3.50.0070.0208.69
4.3.40.0070.0378.69
4.3.30.0000.0378.69
4.3.20.0000.0338.69
4.3.10.0000.0238.69
4.3.00.0000.0208.69

preferences:
48.39 ms | 401 KiB | 5 Q