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_123456.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]; } 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.0110.00718.27
8.3.50.0140.00522.11
8.3.40.0100.00719.09
8.3.30.0100.00319.04
8.3.20.0000.00720.43
8.3.10.0090.00023.48
8.3.00.0080.00317.63
8.2.180.0110.00418.31
8.2.170.0070.00722.96
8.2.160.0130.00720.38
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0070.00020.91
8.2.110.0000.00822.23
8.2.100.0000.01217.97
8.2.90.0040.00419.35
8.2.80.0080.00018.04
8.2.70.0050.01017.87
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0090.00018.16
8.2.30.0060.00318.10
8.2.20.0070.00017.82
8.2.10.0030.00619.82
8.2.00.0060.00517.88
8.1.280.0140.00025.92
8.1.270.0110.00422.27
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0000.00823.88
8.1.230.0070.00419.14
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0000.01017.60
8.1.190.0050.00317.51
8.1.180.0050.00318.10
8.1.170.0090.00018.59
8.1.160.0060.00322.10
8.1.150.0000.00718.84
8.1.140.0000.00717.71
8.1.130.0030.00317.80
8.1.120.0040.00417.73
8.1.110.0080.00017.65
8.1.100.0040.00417.67
8.1.90.0050.00317.54
8.1.80.0070.00017.61
8.1.70.0040.00417.59
8.1.60.0050.00617.78
8.1.50.0000.00817.79
8.1.40.0040.00417.68
8.1.30.0040.00417.72
8.1.20.0070.00017.70
8.1.10.0080.00017.67
8.1.00.0040.00417.60
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0030.00318.45
8.0.270.0000.00817.24
8.0.260.0040.00417.24
8.0.250.0070.00017.19
8.0.240.0000.00917.18
8.0.230.0000.00717.06
8.0.220.0000.00717.15
8.0.210.0030.00317.06
8.0.200.0000.00717.13
8.0.190.0000.00817.13
8.0.180.0040.00417.12
8.0.170.0030.00517.17
8.0.160.0000.00717.03
8.0.150.0000.00817.03
8.0.140.0000.00717.03
8.0.130.0060.00413.48
8.0.120.0080.00017.00
8.0.110.0040.00416.93
8.0.100.0050.00216.97
8.0.90.0000.00816.98
8.0.80.0060.00917.13
8.0.70.0020.00516.89
8.0.60.0040.00417.16
8.0.50.0040.00417.14
8.0.30.0130.00917.27
8.0.20.0080.01017.53
8.0.10.0040.00417.08
8.0.00.0100.00816.90
7.4.330.0050.00015.00
7.4.320.0070.00016.82
7.4.300.0000.00616.86
7.4.290.0070.00016.74
7.4.280.0080.00016.76
7.4.270.0000.00716.84
7.4.260.0070.00316.74
7.4.250.0050.00316.86
7.4.240.0040.00316.77
7.4.230.0070.00016.88
7.4.220.0100.01016.95
7.4.210.0030.01116.81
7.4.200.0070.00016.70
7.4.190.0040.00416.65
7.4.160.0060.01316.75
7.4.150.0140.00317.40
7.4.140.0150.00817.86
7.4.130.0090.00916.94
7.4.120.0070.01116.68
7.4.110.0170.00016.61
7.4.100.0150.00316.78
7.4.90.0140.00316.73
7.4.80.0040.01719.39
7.4.70.0030.01516.71
7.4.60.0060.01216.77
7.4.50.0030.00516.59
7.4.40.0070.01022.77
7.4.30.0090.00916.71
7.4.00.0070.00714.89
7.3.330.0000.00513.57
7.3.320.0020.00313.42
7.3.310.0070.00016.41
7.3.300.0000.00716.60
7.3.290.0000.01616.57
7.3.280.0080.01116.56
7.3.270.0070.01017.40
7.3.260.0120.00616.42
7.3.250.0060.01116.84
7.3.240.0050.01316.52
7.3.230.0030.01316.74
7.3.210.0130.00416.63
7.3.200.0130.00619.39
7.3.190.0130.01016.71
7.3.180.0040.01216.88
7.3.170.0120.00416.73
7.3.160.0030.01216.52
7.3.120.0070.00714.77
7.3.10.0110.00416.98
7.3.00.0040.00817.02
7.2.330.0130.01016.93
7.2.320.0090.00616.81
7.2.310.0100.00716.68
7.2.300.0140.00417.03
7.2.290.0120.00616.63
7.2.130.0050.00517.00
7.2.120.0030.01017.14
7.2.110.0090.00616.91
7.2.100.0040.01217.13
7.2.90.0060.00617.34
7.2.80.0030.00616.98
7.2.70.0040.01117.19
7.2.60.0100.00317.01
7.2.50.0000.00917.28
7.2.40.0030.00516.96
7.2.30.0070.00717.16
7.2.20.0120.00616.86
7.2.10.0030.00617.12
7.2.00.0040.00816.83
7.1.250.0060.00816.09
7.1.70.0000.00717.30
7.1.60.0100.01419.33
7.1.50.0060.01517.30
7.1.00.0000.08022.45
7.0.200.0190.00814.72
7.0.140.0030.07322.01
7.0.100.0070.09020.01
7.0.90.0130.06319.96
7.0.80.0170.07319.87
7.0.70.0030.06320.04
7.0.60.0030.04719.93
7.0.50.0070.08320.31
7.0.40.0070.06020.07
7.0.30.0130.06320.03
7.0.20.0030.08719.99
7.0.10.0030.05020.10
7.0.00.0030.08720.03
5.6.280.0070.07020.94
5.6.250.0130.08320.73
5.6.240.0070.08020.70
5.6.230.0030.07720.63
5.6.220.0000.09320.70
5.6.210.0030.05020.69
5.6.200.0170.07721.09
5.6.190.0170.05020.97
5.6.180.0170.07721.07
5.6.170.0100.08321.09
5.6.160.0100.04721.09
5.6.150.0100.08021.02
5.6.140.0100.07321.18
5.6.130.0270.06021.05
5.6.120.0070.08020.96
5.6.110.0030.05321.05
5.6.100.0130.08021.06
5.6.90.0070.06321.07
5.6.80.0070.08320.35
5.6.70.0030.06320.44
5.6.60.0030.04720.40
5.6.50.0130.07020.46
5.6.40.0130.07720.44
5.6.30.0100.08020.54
5.6.20.0000.05320.28
5.6.10.0000.08320.44
5.6.00.0070.07720.44
5.5.380.0070.07320.58
5.5.370.0070.08320.47
5.5.360.0030.08720.55
5.5.350.0070.05020.47
5.5.340.0100.07720.94
5.5.330.0030.08320.88
5.5.320.0000.08720.93
5.5.310.0170.07320.61
5.5.300.0100.07720.79
5.5.290.0030.08720.81
5.5.280.0130.07720.84
5.5.270.0100.07320.84
5.5.260.0030.08720.86
5.5.250.0070.08020.71
5.5.240.0030.07720.32
5.5.230.0030.07720.27
5.5.220.0070.08020.12
5.5.210.0170.07020.22
5.5.200.0000.05020.27
5.5.190.0100.07019.98
5.5.180.0070.04720.29
5.5.160.0030.07320.29
5.5.150.0070.07720.18
5.5.140.0070.04320.15
5.5.130.0100.07320.15
5.5.120.0030.08320.28
5.5.110.0130.06320.15
5.5.100.0070.07720.11
5.5.90.0070.08020.08
5.5.80.0100.08020.18
5.5.70.0100.07720.09
5.5.60.0100.05720.17
5.5.50.0130.06320.17
5.5.40.0100.06720.07
5.5.30.0130.03720.10
5.5.20.0100.07320.07
5.5.10.0030.08320.14
5.5.00.0170.07020.05
5.4.450.0130.07319.54
5.4.440.0070.04319.42
5.4.430.0000.08019.50
5.4.420.0100.04319.35
5.4.410.0000.08319.33
5.4.400.0130.06019.14
5.4.390.0100.08719.04
5.4.380.0130.07318.90
5.4.370.0070.05319.05
5.4.360.0200.06718.89
5.4.350.0070.06018.95
5.4.340.0100.07719.23
5.4.320.0070.07319.18
5.4.310.0070.08018.86
5.4.300.0100.06319.20
5.4.290.0070.08019.05
5.4.280.0100.08018.94
5.4.270.0000.08019.02
5.4.260.0100.08019.18
5.4.250.0070.07718.87
5.4.240.0100.07319.02
5.4.230.0070.07719.20
5.4.220.0100.07019.22
5.4.210.0130.06019.11
5.4.200.0030.08318.84
5.4.190.0030.07718.84
5.4.180.0230.02718.89
5.4.170.0100.07019.04
5.4.160.0130.07019.14
5.4.150.0100.06719.19
5.4.140.0030.08016.42
5.4.130.0070.05316.41
5.4.120.0100.06316.41
5.4.110.0030.04316.53
5.4.100.0130.04016.48
5.4.90.0030.07316.32
5.4.80.0070.06016.51
5.4.70.0100.06716.36
5.4.60.0100.05316.48
5.4.50.0000.07716.30
5.4.40.0030.07716.36
5.4.30.0100.04016.47
5.4.20.0030.06316.33
5.4.10.0030.06016.30
5.4.00.0000.04015.85
5.3.290.0070.07714.63
5.3.280.0170.05714.57
5.3.270.0030.08014.63
5.3.260.0030.05714.75
5.3.250.0070.07014.59
5.3.240.0070.04314.55
5.3.230.0000.06314.73
5.3.220.0030.04314.67
5.3.210.0070.07714.58
5.3.200.0070.06714.59
5.3.190.0100.05014.64
5.3.180.0070.07714.63
5.3.170.0100.07314.69
5.3.160.0030.04714.55
5.3.150.0070.05714.64
5.3.140.0100.05314.62
5.3.130.0030.08014.58
5.3.120.0070.07314.62
5.3.110.0000.08714.55
5.3.100.0000.04314.14
5.3.90.0030.05314.05
5.3.80.0100.07014.10
5.3.70.0030.06714.09
5.3.60.0100.06713.93
5.3.50.0070.07313.88
5.3.40.0130.06714.07
5.3.30.0100.05714.01
5.3.20.0100.06313.77
5.3.10.0130.06313.70
5.3.00.0130.06313.57
5.2.170.0030.06312.25
5.2.160.0030.06312.25
5.2.150.0070.06012.25
5.2.140.0030.06312.25
5.2.130.0070.06312.25
5.2.120.0000.03712.25
5.2.110.0030.06312.25
5.2.100.0070.06012.25
5.2.90.0100.03312.25
5.2.80.0070.06312.25
5.2.70.0030.05012.25
5.2.60.0100.05312.25
5.2.50.0070.06312.25
5.2.40.0070.05712.25
5.2.30.0000.04012.25
5.2.20.0070.05012.25
5.2.10.0030.05012.25
5.2.00.0030.06012.25
5.1.60.0000.03312.25
5.1.50.0000.05312.25
5.1.40.0000.02712.25
5.1.30.0100.04712.25
5.1.20.0100.02312.25
5.1.10.0100.03012.25
5.1.00.0000.03712.25
5.0.50.0000.04012.25
5.0.40.0100.02712.25
5.0.30.0030.04712.25
5.0.20.0070.04312.25
5.0.10.0000.05012.25
5.0.00.0030.04012.25
4.4.90.0030.03712.25
4.4.80.0030.03312.25
4.4.70.0100.02012.25
4.4.60.0030.03312.25
4.4.50.0030.03312.25
4.4.40.0030.02712.25
4.4.30.0000.03012.25
4.4.20.0030.03312.25
4.4.10.0000.03712.25
4.4.00.0000.03312.25
4.3.110.0030.03312.25
4.3.100.0000.03012.25
4.3.90.0030.03312.25
4.3.80.0000.05712.25
4.3.70.0030.03312.25
4.3.60.0000.02712.25
4.3.50.0070.03012.25
4.3.40.0000.05312.25
4.3.30.0000.03712.25
4.3.20.0000.04012.25
4.3.10.0000.03012.25
4.3.00.0000.01712.25

preferences:
37.76 ms | 400 KiB | 5 Q