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.60.0120.00616.73
8.3.50.0090.00522.14
8.3.40.0110.00418.92
8.3.30.0040.01119.18
8.3.20.0040.00420.30
8.3.10.0080.00023.48
8.3.00.0040.00419.38
8.2.180.0060.01316.63
8.2.170.0110.00422.96
8.2.160.0140.00020.32
8.2.150.0080.00024.18
8.2.140.0090.00624.66
8.2.130.0110.00726.16
8.2.120.0080.00322.26
8.2.110.0060.00322.15
8.2.100.0000.01217.84
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0000.00817.88
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0000.00818.08
8.2.20.0030.00617.81
8.2.10.0040.00418.18
8.2.00.0080.00017.98
8.1.280.0150.00025.92
8.1.270.0070.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.71
8.1.230.0030.00719.21
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0040.00417.66
8.1.180.0050.00318.10
8.1.170.0060.00618.57
8.1.160.0040.00422.00
8.1.150.0030.00518.84
8.1.140.0040.00417.64
8.1.130.0000.00718.00
8.1.120.0040.00417.71
8.1.110.0000.00717.64
8.1.100.0000.00817.63
8.1.90.0000.00717.56
8.1.80.0040.00417.62
8.1.70.0070.00017.57
8.1.60.0000.00917.60
8.1.50.0000.00817.64
8.1.40.0040.00417.75
8.1.30.0000.00817.79
8.1.20.0000.00817.75
8.1.10.0000.00717.68
8.1.00.0030.00617.74
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0000.00718.50
8.0.270.0070.00017.31
8.0.260.0050.00317.11
8.0.250.0030.00317.16
8.0.240.0040.00417.16
8.0.230.0040.00417.11
8.0.220.0080.00017.11
8.0.210.0000.00717.06
8.0.200.0030.00317.02
8.0.190.0090.00017.02
8.0.180.0070.00017.00
8.0.170.0040.00417.14
8.0.160.0000.00717.14
8.0.150.0050.00317.08
8.0.140.0000.00817.00
8.0.130.0060.00013.54
8.0.120.0080.00017.05
8.0.110.0080.00017.06
8.0.100.0000.00717.02
8.0.90.0050.00317.07
8.0.80.0060.00917.02
8.0.70.0030.00516.91
8.0.60.0000.00717.07
8.0.50.0000.00717.11
8.0.30.0070.01217.47
8.0.20.0060.01317.40
8.0.10.0000.00717.28
8.0.00.0080.01016.96
7.4.330.0000.00615.02
7.4.320.0030.00316.84
7.4.300.0040.00416.74
7.4.290.0000.00716.72
7.4.280.0000.00816.88
7.4.270.0000.00716.65
7.4.260.0030.00416.83
7.4.250.0040.00416.81
7.4.240.0000.00716.76
7.4.230.0000.00716.84
7.4.220.0130.00616.71
7.4.210.0070.00716.82
7.4.200.0040.00416.69
7.4.190.0040.00416.75
7.4.160.0130.00316.77
7.4.150.0210.00317.40
7.4.140.0050.01217.86
7.4.130.0030.01316.68
7.4.120.0090.00916.80
7.4.110.0130.00316.82
7.4.100.0200.00016.99
7.4.90.0130.00516.79
7.4.80.0060.01019.39
7.4.70.0080.00816.68
7.4.60.0130.00316.65
7.4.50.0000.01016.38
7.4.40.0070.01122.77
7.4.30.0060.01216.68
7.4.10.0100.01015.31
7.4.00.0070.00915.17
7.3.330.0000.00513.50
7.3.320.0000.00513.48
7.3.310.0030.00316.57
7.3.300.0030.00316.55
7.3.290.0070.01016.57
7.3.280.0090.01016.55
7.3.270.0120.00617.40
7.3.260.0090.00916.82
7.3.250.0080.01116.72
7.3.240.0110.00616.77
7.3.230.0130.00316.86
7.3.210.0080.00816.68
7.3.200.0140.00919.39
7.3.190.0060.01616.76
7.3.180.0100.00716.61
7.3.170.0030.01416.75
7.3.160.0030.01316.87
7.3.130.0080.01215.03
7.3.120.0050.01215.17
7.3.110.0080.00915.19
7.3.100.0050.00815.10
7.3.90.0070.00814.98
7.3.80.0060.00614.91
7.3.70.0070.00414.91
7.3.60.0050.00715.00
7.3.50.0060.00714.90
7.3.40.0050.00715.00
7.3.30.0070.00614.97
7.3.20.0050.00916.88
7.3.10.0090.00716.74
7.3.00.0080.00616.84
7.2.330.0030.01316.79
7.2.320.0070.01016.76
7.2.310.0130.00916.84
7.2.300.0170.00016.55
7.2.290.0070.01016.80
7.2.260.0070.01115.17
7.2.250.0100.01015.21
7.2.240.0070.00915.14
7.2.230.0070.00915.07
7.2.220.0080.00715.24
7.2.210.0080.00515.23
7.2.200.0030.00815.08
7.2.190.0050.00815.08
7.2.180.0060.00615.14
7.2.170.0070.00715.16
7.2.160.0060.00815.16
7.2.150.0060.01117.11
7.2.140.0070.00816.92
7.2.130.0100.00716.90
7.2.120.0090.01016.89
7.2.110.0080.00817.02
7.2.100.0110.00916.90
7.2.90.0100.00616.90
7.2.80.0090.00716.71
7.2.70.0090.01016.75
7.2.60.0110.00716.87
7.2.50.0090.01017.08
7.2.40.0090.00716.94
7.2.30.0120.00616.70
7.2.20.0080.00716.88
7.2.10.0060.01116.88
7.2.00.0070.00917.51
7.1.330.0050.01016.00
7.1.320.0050.00815.86
7.1.310.0040.01016.03
7.1.300.0060.00916.13
7.1.290.0030.00915.90
7.1.280.0060.00915.93
7.1.270.0090.00515.98
7.1.260.0030.01016.02
7.1.250.0080.00715.97
7.1.240.0040.01116.04
7.1.230.0070.00416.02
7.1.220.0020.00815.77
7.1.210.0050.00815.96
7.1.200.0050.00916.01
7.1.190.0050.00815.97
7.1.180.0000.01216.05
7.1.170.0040.00816.11
7.1.160.0040.00816.04
7.1.150.0050.01116.10
7.1.140.0060.00816.01
7.1.130.0080.00515.92
7.1.120.0030.00715.98
7.1.110.0040.01115.84
7.1.100.0050.00916.84
7.1.90.0080.00315.96
7.1.80.0050.01215.94
7.1.70.0040.00616.46
7.1.60.0060.01117.13
7.1.50.0070.00716.40
7.1.40.0030.01116.01
7.1.30.0080.00616.02
7.1.20.0100.00516.10
7.1.10.0040.00515.91
7.1.00.0050.03018.15
7.0.330.0030.01015.58
7.0.320.0040.00815.48
7.0.310.0020.00915.29
7.0.300.0100.00315.58
7.0.290.0070.00515.61
7.0.280.0050.00915.76
7.0.270.0050.01115.67
7.0.260.0050.00515.66
7.0.250.0040.00815.75
7.0.240.0050.00815.46
7.0.230.0050.00815.63
7.0.220.0020.01415.62
7.0.210.0020.01015.35
7.0.200.0050.00615.90
7.0.190.0050.00815.52
7.0.180.0060.01015.52
7.0.170.0030.01115.48
7.0.160.0020.01115.63
7.0.150.0090.00215.51
7.0.140.0070.02617.78
7.0.130.0050.00515.59
7.0.120.0090.00615.74
7.0.110.0030.01015.80
7.0.100.0050.02917.01
7.0.90.0020.03817.06
7.0.80.0100.02817.04
7.0.70.0120.02716.97
7.0.60.0080.02416.93
7.0.50.0090.02917.29
7.0.40.0120.02515.81
7.0.30.0080.03415.77
7.0.20.0130.02715.70
7.0.10.0050.03315.90
7.0.00.0080.03115.78
5.6.400.0060.00514.61
5.6.390.0050.01014.66
5.6.380.0050.00814.64
5.6.370.0020.01314.67
5.6.360.0030.01414.65
5.6.350.0040.01214.26
5.6.340.0030.01114.71
5.6.330.0080.00614.51
5.6.320.0070.00514.58
5.6.310.0050.00914.60
5.6.300.0080.00514.39
5.6.290.0000.00814.66
5.6.280.0060.02816.66
5.6.270.0060.00614.44
5.6.260.0060.00614.51
5.6.250.0020.02216.46
5.6.240.0090.02516.52
5.6.230.0060.03116.62
5.6.220.0070.01916.46
5.6.210.0110.03116.51
5.6.200.0060.03516.61
5.6.190.0080.03016.56
5.6.180.0080.03016.64
5.6.170.0040.03616.62
5.6.160.0110.02816.68
5.6.150.0060.03116.66
5.6.140.0050.03416.72
5.6.130.0090.03016.61
5.6.120.0070.03416.49
5.6.110.0090.02916.66
5.6.100.0030.03616.61
5.6.90.0140.02816.72
5.6.80.0110.02916.31
5.6.70.0110.01816.42
5.6.60.0070.03016.40
5.6.50.0080.02916.54
5.6.40.0070.02916.31
5.6.30.0080.03016.37
5.6.20.0100.02716.32
5.6.10.0070.01916.51
5.6.00.0070.03116.42
5.5.380.0080.03016.38
5.5.370.0070.03316.43
5.5.360.0070.03116.37
5.5.350.0060.03316.53
5.5.340.0090.03016.67
5.5.330.0060.03416.58
5.5.320.0080.03416.50
5.5.310.0140.02416.61
5.5.300.0070.03216.44
5.5.290.0020.03616.44
5.5.280.0080.03216.68
5.5.270.0070.02016.42
5.5.260.0050.03616.60
5.5.250.0050.03316.50
5.5.240.0120.02716.25
5.5.230.0050.02116.23
5.5.220.0090.02916.31
5.5.210.0080.03216.40
5.5.200.0120.02516.42
5.5.190.0070.02916.24
5.5.180.0070.03116.43
5.5.170.0030.01014.22
5.5.160.0030.03016.41
5.5.150.0060.02716.33
5.5.140.0050.02116.30
5.5.130.0030.03016.32
5.5.120.0020.03216.25
5.5.110.0040.03416.23
5.5.100.0050.02716.14
5.5.90.0060.03216.29
5.5.80.0040.03216.17
5.5.70.0040.03216.17
5.5.60.0130.02116.26
5.5.50.0070.03216.17
5.5.40.0110.02816.44
5.5.30.0050.03216.26
5.5.20.0060.03316.27
5.5.10.0100.02516.33
5.5.00.0110.02616.33
5.4.450.0040.03114.96
5.4.440.0090.02815.02
5.4.430.0030.01615.03
5.4.420.0080.01815.02
5.4.410.0070.03114.99
5.4.400.0060.02814.88
5.4.390.0090.02614.85
5.4.380.0080.02914.82
5.4.370.0040.02614.81
5.4.360.0070.02214.91
5.4.350.0060.02914.88
5.4.340.0050.03114.88
5.4.330.0030.00612.79
5.4.320.0040.03014.91
5.4.310.0010.02114.88
5.4.300.0080.02514.82
5.4.290.0090.02614.93
5.4.280.0070.02814.92
5.4.270.0050.02914.90
5.4.260.0110.02414.91
5.4.250.0070.02714.93
5.4.240.0040.03114.82
5.4.230.0050.03014.87
5.4.220.0040.02914.94
5.4.210.0080.02814.86
5.4.200.0080.02414.90
5.4.190.0070.02714.93
5.4.180.0070.02714.87
5.4.170.0030.03114.90
5.4.160.0060.02614.83
5.4.150.0060.02914.84
5.4.140.0120.02113.99
5.4.130.0050.01814.03
5.4.120.0060.02613.99
5.4.110.0040.02914.04
5.4.100.0050.02514.02
5.4.90.0020.02014.01
5.4.80.0030.03113.99
5.4.70.0070.02914.04
5.4.60.0080.02413.98
5.4.50.0050.02414.00
5.4.40.0010.03114.04
5.4.30.0020.02614.00
5.4.20.0050.02913.97
5.4.10.0040.02914.02
5.4.00.0070.02713.82
5.3.290.0030.03113.44
5.3.280.0070.02613.37
5.3.270.0050.03013.39
5.3.260.0080.02813.40
5.3.250.0050.03213.41
5.3.240.0070.02513.37
5.3.230.0040.02913.37
5.3.220.0040.02913.41
5.3.210.0050.02813.42
5.3.200.0100.02313.38
5.3.190.0030.02913.43
5.3.180.0080.02513.38
5.3.170.0050.03013.37
5.3.160.0070.02413.39
5.3.150.0080.02413.40
5.3.140.0060.02213.43
5.3.130.0050.02913.38
5.3.120.0040.03013.40
5.3.110.0070.02113.38
5.3.100.0040.03013.29
5.3.90.0040.02213.29
5.3.80.0030.02913.29
5.3.70.0070.02513.29
5.3.60.0080.02513.29
5.3.50.0090.02513.29
5.3.40.0020.03013.29
5.3.30.0080.02613.29
5.3.20.0050.02513.29
5.3.10.0050.02513.29
5.3.00.0060.02613.29
5.2.170.0000.06314.28
5.2.160.0030.06314.28
5.2.150.0070.06014.28
5.2.140.0170.05014.28
5.2.130.0070.06014.28
5.2.120.0030.05714.28
5.2.110.0030.05714.28
5.2.100.0070.06014.28
5.2.90.0100.05314.28
5.2.80.0100.06014.28
5.2.70.0070.06014.28
5.2.60.0070.03314.28
5.2.50.0030.05314.28
5.2.40.0000.03314.28
5.2.30.0000.07014.28
5.2.20.0030.05314.28
5.2.10.0070.05014.28
5.2.00.0000.06314.28
5.1.60.0100.04714.28
5.1.50.0030.05314.28
5.1.40.0070.05014.28
5.1.30.0100.05014.28
5.1.20.0000.05714.28
5.1.10.0030.05314.28
5.1.00.0070.05314.28
5.0.50.0030.03714.28
5.0.40.0130.03314.28
5.0.30.0070.05714.28
5.0.20.0000.04714.28
5.0.10.0030.04314.28
5.0.00.0000.06714.28
4.4.90.0000.03714.28
4.4.80.0000.03714.28
4.4.70.0030.03714.28
4.4.60.0030.03314.28
4.4.50.0000.03314.28
4.4.40.0000.05314.28
4.4.30.0000.03714.28
4.4.20.0000.03714.28
4.4.10.0030.03714.28
4.4.00.0030.05314.28
4.3.110.0000.04014.28
4.3.100.0130.02714.28
4.3.90.0030.03314.28
4.3.80.0030.04714.28
4.3.70.0100.03014.28
4.3.60.0000.03714.28
4.3.50.0070.03314.28
4.3.40.0070.05014.28
4.3.30.0000.03714.28
4.3.20.0070.03314.28
4.3.10.0000.04014.28
4.3.00.0030.03314.28

preferences:
53.99 ms | 401 KiB | 5 Q