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=''){ // 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]*{4,}?){$click_id_fence_end}^", $app_filename, $fields); if(!empty($fields[1][0])) 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]*{4,}?){$click_id_fence_end}^", $app_filename, $fields); print_r($fields); if(!empty($fields[1][0])) 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.70.0000.01517.00
8.3.60.0120.00316.63
8.3.50.0110.00917.69
8.3.40.0070.01118.95
8.3.30.0060.00918.92
8.3.20.0080.00019.01
8.3.10.0100.00720.73
8.3.00.0040.00419.63
8.2.180.0140.00316.88
8.2.170.0110.00722.96
8.2.160.0070.00721.16
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00021.05
8.2.110.0070.00322.22
8.2.100.0120.00018.03
8.2.90.0040.00419.39
8.2.80.0080.00018.21
8.2.70.0080.00017.75
8.2.60.0060.00318.05
8.2.50.0000.00818.10
8.2.40.0000.00818.16
8.2.30.0030.00518.08
8.2.20.0000.00717.89
8.2.10.0040.00417.79
8.2.00.0000.00817.88
8.1.280.0070.01025.92
8.1.270.0070.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00421.07
8.1.230.0060.00617.83
8.1.220.0080.00017.74
8.1.210.0030.00718.77
8.1.200.0030.00717.38
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0090.00018.84
8.1.160.0080.00018.95
8.1.150.0050.00318.73
8.1.140.0000.00817.54
8.1.130.0030.00317.88
8.1.120.0040.00417.69
8.1.110.0020.00517.66
8.1.100.0050.00217.64
8.1.90.0000.00717.64
8.1.80.0030.00617.68
8.1.70.0040.00417.47
8.1.60.0030.00517.73
8.1.50.0090.00017.67
8.1.40.0100.00017.60
8.1.30.0000.00817.85
8.1.20.0040.00417.81
8.1.10.0040.00417.64
8.1.00.0040.00417.69
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.49
8.0.270.0030.00317.30
8.0.260.0070.00017.05
8.0.250.0070.00017.19
8.0.240.0040.00417.15
8.0.230.0050.00217.18
8.0.220.0000.00817.07
8.0.210.0000.00717.09
8.0.200.0040.00417.19
8.0.190.0070.00017.18
8.0.180.0070.00317.17
8.0.170.0090.00016.98
8.0.160.0040.00417.14
8.0.150.0000.01017.00
8.0.140.0090.00317.07
8.0.130.0000.00513.57
8.0.120.0040.00416.98
8.0.110.0040.00417.02
8.0.100.0070.00016.97
8.0.90.0040.00417.03
8.0.80.0090.00617.12
8.0.70.0030.00617.13
8.0.60.0000.00717.02
8.0.50.0040.00416.93
8.0.30.0130.00617.42
8.0.20.0140.00617.35
8.0.10.0050.00217.20
8.0.00.0120.00817.07
7.4.330.0050.00013.26
7.4.320.0000.00716.88
7.4.300.0040.00416.73
7.4.290.0070.00016.80
7.4.280.0080.00016.84
7.4.270.0040.00416.81
7.4.260.0050.00013.52
7.4.250.0040.00416.70
7.4.240.0040.00416.85
7.4.230.0050.00216.74
7.4.220.0130.00916.83
7.4.210.0070.00816.75
7.4.200.0040.00416.60
7.4.190.0000.00717.02
7.4.160.0060.00916.79
7.4.150.0090.00916.79
7.4.140.0090.00816.76
7.4.130.0120.00616.75
7.4.120.0080.00816.79
7.4.110.0150.00316.58
7.4.100.0140.00716.80
7.4.90.0060.01217.05
7.4.80.0110.00619.39
7.4.70.0110.01116.84
7.4.60.0100.00716.82
7.4.50.0110.00016.60
7.4.40.0040.01116.62
7.4.30.0130.00316.79
7.4.10.0120.00315.30
7.4.00.0040.01415.09
7.3.330.0030.00313.55
7.3.320.0000.00513.58
7.3.310.0040.00416.51
7.3.300.0030.00316.47
7.3.290.0060.01316.53
7.3.280.0120.00516.58
7.3.270.0060.01216.52
7.3.260.0110.00616.50
7.3.250.0030.01516.72
7.3.240.0080.00916.67
7.3.230.0030.01316.85
7.3.210.0090.00916.59
7.3.200.0060.00916.56
7.3.190.0140.00616.84
7.3.180.0030.01316.62
7.3.170.0090.00916.39
7.3.160.0060.01016.59
7.3.130.0070.01014.98
7.3.120.0080.00815.06
7.3.110.0050.01115.00
7.3.100.0060.00815.00
7.3.90.0030.01215.03
7.3.80.0050.00515.29
7.3.70.0080.00815.04
7.3.60.0030.01114.98
7.3.50.0050.00515.11
7.3.40.0070.00815.01
7.3.30.0060.00914.86
7.3.20.0050.01016.91
7.3.10.0180.00916.67
7.3.00.0170.00916.76
7.2.330.0030.01416.73
7.2.320.0150.00816.69
7.2.310.0090.01316.77
7.2.300.0080.00816.63
7.2.290.0170.00416.92
7.2.260.0060.01315.25
7.2.250.0070.01215.21
7.2.240.0060.01015.29
7.2.230.0070.01015.32
7.2.220.0030.00715.13
7.2.210.0090.00415.05
7.2.200.0100.00315.04
7.2.190.0120.00314.94
7.2.180.0040.01015.16
7.2.170.0040.01115.21
7.2.160.0030.01415.11
7.2.150.0000.01316.96
7.2.140.0070.00417.14
7.2.130.0070.01216.82
7.2.120.0190.00416.84
7.2.110.0140.01016.97
7.2.100.0100.01316.74
7.2.90.0140.01116.79
7.2.80.0180.00516.94
7.2.70.0110.00916.82
7.2.60.0270.00616.94
7.2.50.0170.01316.84
7.2.40.0140.01016.76
7.2.30.0070.00816.88
7.2.20.0280.00416.95
7.2.10.0100.01216.94
7.2.00.0130.00617.68
7.1.330.0030.01115.86
7.1.320.0040.00816.04
7.1.310.0030.01115.89
7.1.300.0100.00515.88
7.1.290.0040.00915.91
7.1.280.0070.00615.90
7.1.270.0060.00915.82
7.1.260.0090.00316.11
7.1.250.0170.01115.86
7.1.240.0050.00516.16
7.1.230.0110.00315.97
7.1.220.0100.00315.75
7.1.210.0100.01015.92
7.1.200.0030.01015.89
7.1.190.0070.00315.81
7.1.180.0060.00615.88
7.1.170.0080.00616.13
7.1.160.0060.00915.84
7.1.150.0040.01115.93
7.1.140.0100.00015.88
7.1.130.0030.01416.07
7.1.120.0000.01315.77
7.1.110.0030.00915.82
7.1.100.0000.01317.16
7.1.90.0060.00615.93
7.1.80.0130.00315.79
7.1.70.0060.00616.37
7.1.60.0090.01117.58
7.1.50.0090.00716.69
7.1.40.0030.01016.09
7.1.30.0000.01215.73
7.1.20.0070.00715.78
7.1.10.0100.00716.05
7.1.00.0000.04619.17
7.0.330.0130.00315.61
7.0.320.0030.00915.57
7.0.310.0040.00715.78
7.0.300.0070.00315.66
7.0.290.0060.00615.27
7.0.280.0090.00315.54
7.0.270.0040.01115.64
7.0.260.0040.01115.79
7.0.250.0060.00315.75
7.0.240.0060.00315.44
7.0.230.0000.01015.46
7.0.220.0050.00315.73
7.0.210.0030.00715.66
7.0.200.0060.00716.03
7.0.190.0120.00315.65
7.0.180.0100.00315.72
7.0.170.0070.00715.75
7.0.160.0000.01315.57
7.0.150.0120.00415.52
7.0.140.0050.04118.62
7.0.130.0070.00715.58
7.0.120.0070.03418.92
7.0.110.0070.00715.63
7.0.100.0030.01315.63
7.0.90.0030.01015.68
7.0.80.0030.00915.54
7.0.70.0040.01115.43
7.0.60.0080.04217.71
7.0.50.0060.02316.81
7.0.40.0070.02716.98
7.0.30.0290.04617.04
7.0.20.0230.03716.90
7.0.10.0180.03316.89
7.0.00.0080.04016.99
5.6.400.0070.00714.63
5.6.390.0030.00714.84
5.6.380.0070.00714.30
5.6.370.0030.01014.69
5.6.360.0090.00614.71
5.6.350.0060.00614.36
5.6.340.0060.00614.71
5.6.330.0100.00714.71
5.6.320.0070.00714.33
5.6.310.0030.01214.56
5.6.300.0090.00614.32
5.6.290.0080.00414.57
5.6.280.0020.04217.66
5.6.270.0070.00314.58
5.6.260.0080.00614.38
5.6.250.0060.00914.41
5.6.240.0030.00914.52
5.6.230.0030.01014.52
5.6.220.0000.01714.25
5.6.210.0150.03817.64
5.6.200.0070.04216.21
5.6.190.0120.03517.30
5.6.180.0140.03017.52
5.6.170.0150.02517.55
5.6.160.0100.04517.46
5.6.150.0150.03416.30
5.6.140.0070.04616.35
5.6.130.0030.02816.32
5.6.120.0080.04117.73
5.6.110.0060.03117.74
5.6.100.0050.03717.77
5.6.90.0110.04217.73
5.6.80.0060.04117.38
5.6.70.0160.04017.38
5.6.60.0080.00814.43
5.6.50.0130.00614.41
5.6.40.0100.00014.30
5.6.30.0030.01014.40
5.6.20.0000.01114.71
5.6.10.0100.00614.30
5.6.00.0000.01014.33
5.5.380.0110.00014.22
5.5.370.0030.00914.41
5.5.360.0090.00614.74
5.5.350.0170.03917.27
5.5.340.0080.04216.01
5.5.330.0060.04617.19
5.5.320.0150.04017.34
5.5.310.0210.03817.27
5.5.300.0150.03316.08
5.5.290.0070.04316.12
5.5.280.0070.02417.80
5.5.270.0050.02917.61
5.5.260.0100.04317.58
5.5.250.0140.03317.43
5.5.240.0060.02117.28
5.5.230.0080.00414.63
5.5.220.0060.00613.92
5.5.210.0040.01414.45
5.5.200.0060.00614.46
5.5.190.0060.00914.39
5.5.180.0000.00814.06
5.5.170.0110.00014.25
5.5.160.0000.00914.23
5.5.150.0060.00914.54
5.5.140.0110.00414.59
5.5.130.0000.01214.51
5.5.120.0040.01114.36
5.5.110.0070.00414.53
5.5.100.0100.00313.90
5.5.90.0110.00414.20
5.5.80.0060.01014.20
5.5.70.0030.00614.02
5.5.60.0030.00914.50
5.5.50.0080.00014.29
5.5.40.0080.00514.48
5.5.30.0070.00714.12
5.5.20.0040.00814.45
5.5.10.0060.00914.17
5.5.00.0060.00314.23
5.4.450.0020.02815.53
5.4.440.0100.04015.39
5.4.430.0090.03915.14
5.4.420.0030.02415.43
5.4.410.0020.04215.34
5.4.400.0050.04015.19
5.4.390.0060.02315.11
5.4.380.0030.04515.23
5.4.370.0040.04415.04
5.4.360.0030.04314.95
5.4.350.0060.03715.15
5.4.340.0030.02615.14
5.4.330.0060.00611.07
5.4.320.0030.03015.15
5.4.310.0090.03615.17
5.4.300.0030.02415.28
5.4.290.0030.02714.93
5.4.280.0070.03715.03
5.4.270.0050.03014.96
5.4.260.0060.03915.19
5.4.250.0050.03715.25
5.4.240.0060.02115.07
5.4.230.0020.03115.28
5.4.220.0030.03015.17
5.4.210.0050.02614.97
5.4.200.0090.03415.14
5.4.190.0070.02215.10
5.4.180.0030.02715.09
5.4.170.0050.04515.30
5.4.160.0030.04515.01
5.4.150.0030.03115.10
5.4.140.0030.03713.76
5.4.130.0020.02613.71
5.4.120.0080.02313.89
5.4.110.0100.03713.78
5.4.100.0080.03513.79
5.4.90.0080.03213.82
5.4.80.0050.03813.92
5.4.70.0020.04213.71
5.4.60.0060.03813.82
5.4.50.0030.04313.78
5.4.40.0060.02913.71
5.4.30.0040.02413.71
5.4.20.0070.03913.86
5.4.10.0050.02613.82
5.4.00.0020.04013.44
5.3.290.0100.02712.76
5.3.280.0050.04312.68
5.3.270.0100.03712.69
5.3.260.0100.04012.50
5.3.250.0050.03012.66
5.3.240.0030.03212.46
5.3.230.0020.03712.54
5.3.220.0030.04312.37
5.3.210.0030.03212.33
5.3.200.0070.03812.37
5.3.190.0050.03712.49
5.3.180.0030.04312.67
5.3.170.0060.03612.62
5.3.160.0070.03912.62
5.3.150.0040.04012.68
5.3.140.0080.03812.47
5.3.130.0090.04112.62
5.3.120.0090.03712.59
5.3.110.0070.04412.63
5.3.100.0030.02612.46
5.3.90.0030.04012.41
5.3.80.0040.02612.22
5.3.70.0070.02512.34
5.3.60.0030.03812.30
5.3.50.0030.02912.29
5.3.40.0060.03312.35
5.3.30.0050.03412.26
5.3.20.0140.03312.12
5.3.10.0060.02712.01
5.3.00.0070.04212.00
5.2.170.0070.04011.32
5.2.160.0070.05011.30
5.2.150.0030.05711.12
5.2.140.0030.03011.19
5.2.130.0030.03711.08
5.2.120.0070.05011.19
5.2.110.0030.06311.12
5.2.100.0070.03311.06
5.2.90.0100.03711.08
5.2.80.0030.05011.14
5.2.70.0030.04011.09
5.2.60.0030.06011.07
5.2.50.0000.04311.18
5.2.40.0070.05711.02
5.2.30.0100.05711.06
5.2.20.0030.03711.02
5.2.10.0030.06010.88
5.2.00.0070.05310.62
5.1.60.0030.02310.15
5.1.50.0000.0279.98
5.1.40.0030.05310.14
5.1.30.0100.05310.42
5.1.20.0100.04310.32
5.1.10.0030.0279.99
5.1.00.0000.02710.01
5.0.50.0100.0208.62
5.0.40.0100.0338.36
5.0.30.0070.0378.27
5.0.20.0070.0208.26
5.0.10.0030.0408.16
5.0.00.0000.0678.18
4.4.90.0000.0178.04
4.4.80.0030.0208.04
4.4.70.0070.0138.04
4.4.60.0000.0178.04
4.4.50.0000.0208.04
4.4.40.0000.0308.04
4.4.30.0030.0378.04
4.4.20.0000.0238.04
4.4.10.0030.0378.04
4.4.00.0030.0538.04
4.3.110.0030.0308.04
4.3.100.0000.0308.04
4.3.90.0070.0238.04
4.3.80.0000.0538.04
4.3.70.0000.0378.04
4.3.60.0030.0338.04
4.3.50.0000.0278.04
4.3.40.0000.0378.04
4.3.30.0030.0338.04
4.3.20.0000.0278.04
4.3.10.0000.0378.04
4.3.00.0000.0408.04

preferences:
59 ms | 401 KiB | 5 Q