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"; 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: $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); 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.0180.00418.30
8.3.50.0110.00622.20
8.3.40.0040.01119.05
8.3.30.0100.01019.08
8.3.20.0070.00020.35
8.3.10.0000.00823.66
8.3.00.0040.00420.89
8.2.180.0130.00618.56
8.2.170.0070.00722.96
8.2.160.0180.00420.26
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0040.00419.48
8.2.110.0050.00522.38
8.2.100.0090.00318.03
8.2.90.0060.00319.21
8.2.80.0030.00618.00
8.2.70.0060.00317.88
8.2.60.0060.00318.03
8.2.50.0030.00618.07
8.2.40.0000.00820.00
8.2.30.0050.00218.34
8.2.20.0030.00617.98
8.2.10.0070.00018.06
8.2.00.0080.00017.87
8.1.280.0120.00625.92
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.01023.88
8.1.230.0120.00019.00
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.60
8.1.190.0030.00517.38
8.1.180.0060.00318.10
8.1.170.0060.00318.74
8.1.160.0050.00222.11
8.1.150.0000.00718.69
8.1.140.0000.00717.57
8.1.130.0000.00719.74
8.1.120.0000.00717.64
8.1.110.0000.00717.51
8.1.100.0080.00017.52
8.1.90.0080.00017.54
8.1.80.0040.00417.63
8.1.70.0030.00317.56
8.1.60.0000.00817.77
8.1.50.0030.00517.58
8.1.40.0060.00317.68
8.1.30.0000.00817.68
8.1.20.0000.00817.88
8.1.10.0000.00817.82
8.1.00.0040.00417.76
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0000.00818.41
8.0.270.0000.00817.22
8.0.260.0000.00717.27
8.0.250.0030.00317.19
8.0.240.0050.00317.05
8.0.230.0000.00717.02
8.0.220.0070.00017.11
8.0.210.0030.00316.98
8.0.200.0030.00317.18
8.0.190.0000.00717.11
8.0.180.0000.00816.98
8.0.170.0060.00317.13
8.0.160.0030.00317.01
8.0.150.0000.00717.05
8.0.140.0040.00417.04
8.0.130.0060.00013.50
8.0.120.0050.00316.96
8.0.110.0070.00017.00
8.0.100.0000.00816.91
8.0.90.0050.00217.13
8.0.80.0090.01516.95
8.0.70.0040.00417.10
8.0.60.0050.00216.87
8.0.50.0000.00716.96
8.0.30.0090.00917.04
8.0.20.0100.01017.40
8.0.10.0070.00017.13
8.0.00.0100.00917.10
7.4.330.0000.00515.14
7.4.320.0030.00316.89
7.4.300.0000.00716.84
7.4.290.0080.00316.84
7.4.280.0030.00516.82
7.4.270.0030.00416.84
7.4.260.0030.00316.63
7.4.250.0040.00416.85
7.4.240.0040.00416.80
7.4.230.0000.00816.64
7.4.220.0070.02016.64
7.4.210.0060.00916.94
7.4.200.0030.00316.66
7.4.160.0100.00716.71
7.4.150.0170.00017.40
7.4.140.0130.00617.86
7.4.130.0110.00816.65
7.4.120.0160.00316.66
7.4.110.0130.00616.80
7.4.100.0130.00416.52
7.4.90.0140.00716.72
7.4.80.0070.01119.39
7.4.70.0120.00616.58
7.4.60.0170.00316.80
7.4.50.0030.00616.86
7.4.40.0120.00316.61
7.4.30.0090.00616.80
7.4.00.0050.00915.30
7.3.330.0030.00313.36
7.3.320.0000.00513.54
7.3.310.0000.00716.57
7.3.300.0040.00416.54
7.3.290.0040.01016.59
7.3.280.0070.01016.55
7.3.270.0110.00717.40
7.3.260.0130.00716.76
7.3.250.0070.01116.71
7.3.240.0110.00616.60
7.3.230.0070.01116.52
7.3.210.0150.00616.82
7.3.200.0090.00919.39
7.3.190.0060.01716.76
7.3.180.0060.00916.79
7.3.170.0120.00416.55
7.3.160.0100.00616.42
7.3.120.0070.00814.86
7.3.110.0090.00914.90
7.3.100.0090.00914.92
7.3.90.0070.01014.98
7.3.80.0060.00615.06
7.3.70.0070.01015.00
7.3.60.0070.00714.96
7.3.50.0110.00414.83
7.3.40.0060.00915.11
7.3.30.0030.01215.02
7.3.20.0140.00016.93
7.3.10.0000.01016.99
7.3.00.0040.01116.85
7.2.330.0070.01016.92
7.2.320.0070.01016.71
7.2.310.0110.00716.76
7.2.300.0070.01016.91
7.2.290.0530.00516.92
7.2.250.0040.01515.13
7.2.240.0100.01015.34
7.2.230.0070.00715.32
7.2.220.0100.00715.36
7.2.210.0040.01115.09
7.2.200.0070.00315.19
7.2.190.0070.00715.20
7.2.180.0090.00915.38
7.2.170.0060.00915.17
7.2.00.0070.00719.34
7.1.330.0070.00715.94
7.1.320.0030.01115.97
7.1.310.0040.01115.95
7.1.300.0070.00415.87
7.1.290.0030.01016.07
7.1.280.0030.00915.75
7.1.270.0100.00315.94
7.1.260.0040.00915.90
7.1.100.0000.00918.14
7.1.70.0030.00317.46
7.1.60.0080.00417.64
7.1.50.0100.01317.25
7.1.00.0030.07722.39
7.0.200.0030.01316.95
7.0.140.0030.07322.12
7.0.60.0170.07721.78
7.0.50.0100.08018.00
7.0.40.0170.05720.20
7.0.30.0270.06720.21
7.0.20.0170.05020.10
7.0.10.0200.03720.08
7.0.00.0070.08720.21
5.6.280.0100.07021.11
5.6.210.0100.06320.47
5.6.200.0130.07018.25
5.6.190.0200.06320.39
5.6.180.0030.08720.56
5.6.170.0200.04720.45
5.6.160.0130.08720.55
5.6.150.0130.07718.18
5.6.140.0100.03718.17
5.6.130.0070.03718.22
5.6.120.0070.03721.15
5.6.110.0070.07021.00
5.6.100.0170.07721.11
5.6.90.0230.07021.00
5.6.80.0100.07320.39
5.5.350.0030.07720.43
5.5.340.0000.06717.98
5.5.330.0030.08320.43
5.5.320.0070.05020.38
5.5.310.0400.07320.31
5.5.300.0100.07017.97
5.5.290.0100.06318.07
5.5.280.0030.04020.80
5.5.270.0030.06020.77
5.5.260.0070.04720.65
5.5.250.0070.04720.63
5.5.240.0200.03320.13
5.4.450.0300.05019.48
5.4.440.0170.04019.19
5.4.430.0330.06319.41
5.4.420.0170.04019.36
5.4.410.0270.07019.39
5.4.400.0300.06319.19
5.4.390.0200.03719.20
5.4.380.0230.04019.00
5.4.370.0300.03718.98
5.4.360.0200.04019.14
5.4.350.0170.07019.06
5.4.340.0130.05719.00
5.4.320.0300.07018.87
5.4.310.0200.04019.13
5.4.300.0300.07319.26
5.4.290.0230.05018.99
5.4.280.0230.04319.08
5.4.270.0300.06719.24
5.4.260.0370.06019.13
5.4.250.0330.04018.84
5.4.240.0200.03719.14
5.4.230.0170.03719.15
5.4.220.0130.04318.97
5.4.210.0170.03319.22
5.4.200.0200.03319.30
5.4.190.0130.04719.08
5.4.180.0200.03319.21
5.4.170.0200.03319.15
5.4.160.0200.03719.14
5.4.150.0130.03719.14
5.4.140.0130.04016.56
5.4.130.0170.03316.33
5.4.120.0170.03316.71
5.4.110.0170.03716.56
5.4.100.0170.03316.64
5.4.90.0170.03316.61
5.4.80.0230.03716.49
5.4.70.0130.03716.48
5.4.60.0200.03016.35
5.4.50.0130.04016.24
5.4.40.0170.03316.39
5.4.30.0170.03316.38
5.4.20.0200.04316.16
5.4.10.0130.04016.34
5.4.00.0100.04015.94
5.3.290.0300.07314.65
5.3.280.0200.03314.64
5.3.270.0200.04014.56
5.3.260.0200.03714.60
5.3.250.0170.04014.82
5.3.240.0070.04314.57
5.3.230.0230.05314.61
5.3.220.0130.03714.72
5.3.210.0270.02714.79
5.3.200.0270.02714.49
5.3.190.0130.03714.47
5.3.180.0170.03714.54
5.3.170.0170.04314.53
5.3.160.0200.03314.46
5.3.150.0170.03714.57
5.3.140.0170.03314.77
5.3.130.0200.03714.63
5.3.120.0070.04314.70
5.3.110.0170.04014.45
5.3.100.0200.03713.96
5.3.90.0170.06314.14
5.3.80.0330.04314.24
5.3.70.0200.03713.95
5.3.60.0300.06713.91
5.3.50.0270.06713.87
5.3.40.0400.05714.02
5.3.30.0200.07013.81
5.3.20.0330.05713.77
5.3.10.0370.05313.66
5.3.00.0200.04713.55
5.2.170.0270.05011.30
5.2.160.0300.05011.22
5.2.150.0200.03011.15
5.2.140.0200.04011.25
5.2.130.0270.03011.03
5.2.120.0230.03311.07
5.2.110.0270.05011.23
5.2.100.0200.03011.15
5.2.90.0230.05311.03
5.2.80.0270.05711.32
5.2.70.0130.04011.10
5.2.60.0270.05311.01
5.2.50.0230.03710.95
5.2.40.0100.03310.93
5.2.30.0200.05010.90
5.2.20.0200.04710.90
5.2.10.0200.05710.84
5.2.00.0270.05010.87
5.1.60.0170.0479.90
5.1.50.0170.0509.91
5.1.40.0130.0509.96
5.1.30.0170.03310.24
5.1.20.0170.03310.32
5.1.10.0170.05710.31
5.1.00.0230.04710.30
5.0.50.0070.0408.45
5.0.40.0100.0408.34
5.0.30.0100.0638.21
5.0.20.0070.0278.26
5.0.10.0070.0208.17
5.0.00.0130.0378.11
4.4.90.0100.0206.75
4.4.80.0130.0236.75
4.4.70.0130.0206.75
4.4.60.0070.0236.75
4.4.50.0130.0336.75
4.4.40.0070.0476.75
4.4.30.0070.0206.75
4.4.20.0130.0206.75
4.4.10.0100.0376.75
4.4.00.0100.0276.75
4.3.110.0100.0176.75
4.3.100.0170.0136.75
4.3.90.0100.0176.75
4.3.80.0070.0536.75
4.3.70.0130.0306.75
4.3.60.0100.0176.75
4.3.50.0070.0206.75
4.3.40.0130.0506.75
4.3.30.0030.0276.75
4.3.20.0030.0236.75
4.3.10.0030.0206.75
4.3.00.0100.0176.75

preferences:
59.69 ms | 401 KiB | 5 Q