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=''){ // 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])) 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])) 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.0070.01016.63
8.3.50.0090.01017.60
8.3.40.0150.00019.06
8.3.30.0100.00319.02
8.3.20.0050.00318.74
8.3.10.0040.00420.66
8.3.00.0120.00017.75
8.2.180.0110.00416.88
8.2.170.0090.00622.96
8.2.160.0140.00321.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0060.00319.49
8.2.110.0100.00021.07
8.2.100.0090.00317.84
8.2.90.0000.01021.07
8.2.80.0080.00017.93
8.2.70.0040.00417.88
8.2.60.0000.00817.93
8.2.50.0100.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00418.13
8.2.20.0000.00717.92
8.2.10.0030.00517.74
8.2.00.0000.00817.79
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0110.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00022.45
8.1.230.0100.00320.76
8.1.220.0040.00417.74
8.1.210.0000.00818.95
8.1.200.0030.00917.60
8.1.190.0000.00717.53
8.1.180.0080.00018.10
8.1.170.0000.00818.75
8.1.160.0070.00018.98
8.1.150.0040.00418.72
8.1.140.0070.00017.59
8.1.130.0030.00317.93
8.1.120.0040.00417.65
8.1.110.0000.00817.54
8.1.100.0040.00417.66
8.1.90.0000.00817.54
8.1.80.0050.00217.69
8.1.70.0020.00517.57
8.1.60.0000.00817.75
8.1.50.0030.00617.53
8.1.40.0080.00017.77
8.1.30.0000.00817.81
8.1.20.0000.00817.78
8.1.10.0060.00317.64
8.1.00.0060.00317.57
8.0.300.0000.01020.21
8.0.290.0080.00016.88
8.0.280.0040.00418.50
8.0.270.0080.00017.30
8.0.260.0000.00717.05
8.0.250.0070.00017.11
8.0.240.0040.00417.14
8.0.230.0030.00317.12
8.0.220.0070.00017.09
8.0.210.0030.00317.11
8.0.200.0030.00317.11
8.0.190.0080.00017.06
8.0.180.0040.00417.09
8.0.170.0090.00017.01
8.0.160.0000.00716.93
8.0.150.0050.00316.90
8.0.140.0030.00517.04
8.0.130.0060.00013.46
8.0.120.0040.00417.02
8.0.110.0000.00716.94
8.0.100.0040.00416.95
8.0.90.0000.00717.03
8.0.80.0060.00917.11
8.0.70.0050.00216.86
8.0.60.0040.00417.09
8.0.50.0030.00516.96
8.0.30.0060.01217.29
8.0.20.0080.01317.20
8.0.10.0040.00417.12
8.0.00.0090.01417.19
7.4.330.0050.00013.22
7.4.320.0030.00316.76
7.4.300.0000.00716.85
7.4.290.0070.00016.81
7.4.280.0040.00416.64
7.4.270.0040.00416.81
7.4.260.0000.00513.46
7.4.250.0000.00816.84
7.4.240.0020.00516.85
7.4.230.0000.00816.73
7.4.220.0170.00316.71
7.4.210.0050.01216.75
7.4.200.0040.00416.86
7.4.190.0040.00416.72
7.4.160.0070.01716.85
7.4.150.0130.00616.75
7.4.140.0120.00616.75
7.4.130.0100.00816.86
7.4.120.0080.01416.73
7.4.110.0200.00316.73
7.4.100.0100.01016.88
7.4.90.0090.00916.98
7.4.80.0160.00819.39
7.4.70.0030.01316.74
7.4.60.0090.01216.79
7.4.50.0060.00316.58
7.4.40.0100.00616.65
7.4.30.0070.01016.89
7.4.10.0060.00915.20
7.4.00.0050.01115.21
7.3.330.0060.00013.38
7.3.320.0030.00313.32
7.3.310.0050.00316.55
7.3.300.0000.00716.55
7.3.290.0080.00816.55
7.3.280.0090.01016.55
7.3.270.0030.01716.78
7.3.260.0090.01216.76
7.3.250.0060.01416.50
7.3.240.0070.01016.48
7.3.230.0090.00916.75
7.3.210.0120.00616.53
7.3.200.0110.00716.60
7.3.190.0060.01016.79
7.3.180.0120.00316.72
7.3.170.0000.01716.44
7.3.160.0060.01516.60
7.3.130.0040.01514.85
7.3.120.0060.01115.22
7.3.110.0090.00614.65
7.3.100.0030.01115.20
7.3.90.0070.00715.27
7.3.80.0000.01415.21
7.3.70.0040.00415.09
7.3.60.0000.01215.13
7.3.50.0100.00314.96
7.3.40.0030.00714.91
7.3.30.0000.00915.06
7.3.20.0030.00716.58
7.3.10.0090.00716.72
7.3.00.0100.00516.85
7.2.330.0130.00716.94
7.2.320.0180.00916.80
7.2.310.0130.00916.80
7.2.300.0030.01816.80
7.2.290.0160.00016.80
7.2.260.0090.01215.35
7.2.250.0100.01015.32
7.2.240.0070.00715.14
7.2.230.0030.01015.35
7.2.220.0060.00915.29
7.2.210.0090.00315.32
7.2.200.0110.00315.29
7.2.190.0000.01415.40
7.2.180.0030.00915.06
7.2.170.0030.01014.91
7.2.160.0100.00315.14
7.2.150.0070.01016.96
7.2.140.0090.00917.05
7.2.130.0070.00517.10
7.2.120.0020.01316.85
7.2.110.0070.00716.68
7.2.100.0090.00716.82
7.2.90.0070.00916.80
7.2.80.0050.01017.03
7.2.70.0080.00316.65
7.2.60.0060.01416.93
7.2.50.0170.00116.96
7.2.40.0100.00917.04
7.2.30.0120.00716.69
7.2.20.0140.00516.98
7.2.10.0130.01116.96
7.2.00.0080.01017.87
7.1.330.0040.01116.24
7.1.320.0090.00616.01
7.1.310.0000.01015.79
7.1.300.0030.01016.06
7.1.290.0000.00915.66
7.1.280.0090.00615.72
7.1.270.0000.00915.82
7.1.260.0060.00616.04
7.1.250.0070.00815.83
7.1.240.0090.00415.93
7.1.230.0070.00716.04
7.1.220.0000.01416.07
7.1.210.0070.00315.95
7.1.200.0030.01315.77
7.1.190.0060.01015.85
7.1.180.0000.01116.09
7.1.170.0030.00715.74
7.1.160.0040.00816.13
7.1.150.0070.01015.95
7.1.140.0040.00815.99
7.1.130.0070.01016.11
7.1.120.0090.00916.00
7.1.110.0110.00016.03
7.1.100.0070.00717.19
7.1.90.0000.01415.95
7.1.80.0100.00315.84
7.1.70.0020.00716.73
7.1.60.0130.00717.66
7.1.50.0090.00816.69
7.1.40.0050.01415.99
7.1.30.0080.00816.04
7.1.20.0000.01316.07
7.1.10.0080.00315.84
7.1.00.0050.03819.28
7.0.330.0040.00715.59
7.0.320.0120.00315.27
7.0.310.0030.00715.73
7.0.300.0070.00415.77
7.0.290.0100.00315.75
7.0.280.0030.01015.54
7.0.270.0070.00715.66
7.0.260.0040.01115.51
7.0.250.0070.00315.58
7.0.240.0000.01115.52
7.0.230.0040.00815.64
7.0.220.0030.01015.59
7.0.210.0040.00415.78
7.0.200.0030.00516.05
7.0.190.0100.01015.82
7.0.180.0040.00815.68
7.0.170.0070.00715.59
7.0.160.0040.00815.64
7.0.150.0070.00315.82
7.0.140.0030.04218.77
7.0.130.0030.00615.50
7.0.120.0070.03718.79
7.0.110.0030.01115.49
7.0.100.0040.00815.57
7.0.90.0000.01015.76
7.0.80.0070.00715.47
7.0.70.0070.00315.58
7.0.60.0110.04217.71
7.0.50.0040.02416.83
7.0.40.0080.04716.96
7.0.30.0100.04116.99
7.0.20.0150.04416.92
7.0.10.0180.03016.98
7.0.00.0060.02816.87
5.6.400.0060.00614.39
5.6.390.0100.00314.71
5.6.380.0080.00614.51
5.6.370.0030.01014.50
5.6.360.0080.00414.38
5.6.350.0040.01114.31
5.6.340.0040.00714.52
5.6.330.0030.01414.39
5.6.320.0100.00314.77
5.6.310.0090.00614.75
5.6.300.0000.01214.68
5.6.290.0060.01014.72
5.6.280.0050.03817.65
5.6.270.0130.00014.44
5.6.260.0070.00414.46
5.6.250.0000.01314.44
5.6.240.0060.00314.38
5.6.230.0030.01014.54
5.6.220.0030.01414.54
5.6.210.0070.03517.45
5.6.200.0070.02916.48
5.6.190.0050.04317.62
5.6.180.0100.02517.64
5.6.170.0130.03317.34
5.6.160.0120.02517.64
5.6.150.0100.03616.44
5.6.140.0060.02116.39
5.6.130.0050.02516.32
5.6.120.0110.03617.89
5.6.110.0030.05117.68
5.6.100.0050.04517.79
5.6.90.0020.03717.62
5.6.80.0070.04217.50
5.6.70.0900.02117.30
5.6.60.0000.01614.29
5.6.50.0000.01014.29
5.6.40.0120.00414.29
5.6.30.0090.00314.39
5.6.20.0040.01414.49
5.6.10.0000.01714.40
5.6.00.0110.00414.69
5.5.380.0050.00514.42
5.5.370.0040.01214.35
5.5.360.0040.01114.63
5.5.350.0230.03817.55
5.5.340.0060.04316.14
5.5.330.0080.04517.48
5.5.320.0120.04717.40
5.5.310.0120.02317.28
5.5.300.0050.03116.34
5.5.290.0100.02816.17
5.5.280.0020.02617.57
5.5.270.0040.04417.72
5.5.260.0080.04717.54
5.5.250.0110.04017.43
5.5.240.0050.02717.29
5.5.230.0060.00314.18
5.5.220.0060.00313.95
5.5.210.0000.01514.17
5.5.200.0070.00714.46
5.5.190.0060.00314.55
5.5.180.0040.01114.71
5.5.170.0070.01014.34
5.5.160.0040.01114.25
5.5.150.0130.00314.22
5.5.140.0040.01114.25
5.5.130.0060.00614.24
5.5.120.0030.01014.37
5.5.110.0060.00614.52
5.5.100.0100.00314.16
5.5.90.0060.00914.54
5.5.80.0080.00814.51
5.5.70.0030.00714.03
5.5.60.0040.00714.62
5.5.50.0050.00514.25
5.5.40.0000.01114.07
5.5.30.0070.00714.13
5.5.20.0060.00314.21
5.5.10.0070.00414.20
5.5.00.0060.00613.91
5.4.450.0080.04315.92
5.4.440.0050.04215.84
5.4.430.0020.04715.90
5.4.420.0040.02115.91
5.4.410.0100.02215.82
5.4.400.0050.03115.79
5.4.390.0070.03315.87
5.4.380.0040.04215.89
5.4.370.0050.04215.79
5.4.360.0050.04215.89
5.4.350.0120.03715.87
5.4.340.0080.03215.76
5.4.330.0040.00412.50
5.4.320.0070.03815.68
5.4.310.0080.02815.85
5.4.300.0030.02815.79
5.4.290.0050.03915.68
5.4.280.0130.03015.87
5.4.270.0030.04015.82
5.4.260.0080.03615.85
5.4.250.0030.02915.79
5.4.240.0070.02815.73
5.4.230.0030.02815.83
5.4.220.0080.03815.81
5.4.210.0070.04215.68
5.4.200.0040.03815.87
5.4.190.0050.03215.82
5.4.180.0060.03515.67
5.4.170.0060.03515.68
5.4.160.0080.03915.81
5.4.150.0020.02615.81
5.4.140.0100.03714.46
5.4.130.0050.02314.46
5.4.120.0090.02814.41
5.4.110.0020.03214.48
5.4.100.0090.03514.49
5.4.90.0050.02914.61
5.4.80.0080.03714.42
5.4.70.0080.03814.51
5.4.60.0050.02814.47
5.4.50.0050.04014.38
5.4.40.0030.02014.45
5.4.30.0130.03014.42
5.4.20.0040.04214.45
5.4.10.0070.04014.44
5.4.00.0130.03314.15
5.3.290.0080.03713.61
5.3.280.0060.02713.55
5.3.270.0030.04013.51
5.3.260.0020.04213.51
5.3.250.0020.03013.56
5.3.240.0050.02213.51
5.3.230.0100.03813.56
5.3.220.0060.04113.57
5.3.210.0010.03313.56
5.3.200.0030.04013.55
5.3.190.0050.03513.54
5.3.180.0030.02513.56
5.3.170.0020.04013.61
5.3.160.0060.04313.54
5.3.150.0000.02613.55
5.3.140.0070.03913.47
5.3.130.0030.03913.60
5.3.120.0070.02913.60
5.3.110.0040.04513.47
5.3.100.0070.03713.28
5.3.90.0110.03613.29
5.3.80.0080.03813.27
5.3.70.0030.02513.21
5.3.60.0070.03513.21
5.3.50.0020.02513.23
5.3.40.0050.02013.19
5.3.30.0050.03113.15
5.3.20.0030.02113.07
5.3.10.0040.02013.16
5.3.00.0000.02213.08
5.2.170.0030.05311.19
5.2.160.0030.06011.16
5.2.150.0030.06711.11
5.2.140.0070.04011.19
5.2.130.0030.02711.17
5.2.120.0030.02711.06
5.2.110.0000.03011.26
5.2.100.0100.02011.17
5.2.90.0000.03011.06
5.2.80.0030.03711.02
5.2.70.0000.03011.26
5.2.60.0030.03011.12
5.2.50.0030.02711.19
5.2.40.0070.02711.07
5.2.30.0030.02710.88
5.2.20.0070.02310.89
5.2.10.0100.02310.84
5.2.00.0030.02710.70
5.1.60.0030.02310.00
5.1.50.0030.02310.18
5.1.40.0030.0279.90
5.1.30.0030.03010.36
5.1.20.0000.02710.38
5.1.10.0030.02310.05
5.1.00.0000.02710.24
5.0.50.0000.0208.61
5.0.40.0030.0178.58
5.0.30.0000.0308.30
5.0.20.0000.0208.12
5.0.10.0000.0208.10
5.0.00.0000.0308.13
4.4.90.0000.0178.01
4.4.80.0000.0178.01
4.4.70.0030.0138.01
4.4.60.0030.0138.01
4.4.50.0000.0138.01
4.4.40.0000.0278.01
4.4.30.0000.0138.01
4.4.20.0000.0178.01
4.4.10.0000.0138.01
4.4.00.0000.0278.01
4.3.110.0030.0138.01
4.3.100.0000.0178.01
4.3.90.0000.0138.01
4.3.80.0000.0278.01
4.3.70.0000.0138.01
4.3.60.0000.0178.01
4.3.50.0030.0138.01
4.3.40.0030.0208.01
4.3.30.0000.0178.01
4.3.20.0000.0138.01
4.3.10.0000.0138.01
4.3.00.0000.0138.01

preferences:
71.71 ms | 401 KiB | 5 Q