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"; 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.0090.00918.45
8.3.50.0070.01022.05
8.3.40.0100.01019.06
8.3.30.0140.00019.04
8.3.20.0070.00720.25
8.3.10.0000.00821.97
8.3.00.0060.00322.48
8.2.180.0090.01218.79
8.2.170.0150.00622.96
8.2.160.0110.00421.19
8.2.150.0050.00224.18
8.2.140.0090.00024.66
8.2.130.0130.00626.16
8.2.120.0050.00319.63
8.2.110.0030.00621.19
8.2.100.0070.00317.97
8.2.90.0030.00518.25
8.2.80.0030.00520.01
8.2.70.0100.00017.88
8.2.60.0030.00517.88
8.2.50.0050.00517.84
8.2.40.0040.00419.72
8.2.30.0000.00817.92
8.2.20.0030.00518.00
8.2.10.0000.00717.86
8.2.00.0080.00017.89
8.1.280.0140.00725.92
8.1.270.0000.00823.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00923.88
8.1.230.0080.00420.88
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00317.47
8.1.190.0000.01017.47
8.1.180.0060.00318.10
8.1.170.0040.00419.09
8.1.160.0080.00019.02
8.1.150.0040.00418.90
8.1.140.0040.00417.50
8.1.130.0070.00017.88
8.1.120.0000.00717.53
8.1.110.0030.00517.63
8.1.100.0070.00017.58
8.1.90.0030.00617.66
8.1.80.0020.00517.63
8.1.70.0030.00317.59
8.1.60.0030.00917.79
8.1.50.0000.00817.77
8.1.40.0000.00717.71
8.1.30.0080.00017.78
8.1.20.0060.00317.79
8.1.10.0000.00717.76
8.1.00.0040.00417.55
8.0.300.0020.00520.16
8.0.290.0070.00017.00
8.0.280.0000.00718.19
8.0.270.0040.00418.25
8.0.260.0040.00416.84
8.0.250.0070.00017.16
8.0.240.0040.00717.10
8.0.230.0040.00417.11
8.0.220.0040.00416.98
8.0.210.0030.00317.03
8.0.200.0030.00317.16
8.0.190.0070.00017.15
8.0.180.0000.00717.01
8.0.170.0070.00016.99
8.0.160.0000.00817.02
8.0.150.0000.00716.89
8.0.140.0070.00016.96
8.0.130.0030.00313.55
8.0.120.0040.00416.98
8.0.110.0040.00416.95
8.0.100.0040.00416.90
8.0.90.0040.00416.86
8.0.80.0120.00616.95
8.0.70.0070.00016.96
8.0.60.0040.00417.17
8.0.50.0070.00017.00
8.0.30.0150.00717.35
8.0.20.0140.00717.46
8.0.10.0040.00417.09
8.0.00.0110.01316.85
7.4.330.0000.00515.12
7.4.320.0030.00316.75
7.4.300.0030.00316.78
7.4.290.0030.00316.87
7.4.280.0030.00316.73
7.4.270.0030.00516.75
7.4.260.0030.00316.80
7.4.250.0000.00716.62
7.4.240.0040.00416.87
7.4.230.0030.00316.73
7.4.220.0120.00616.90
7.4.210.0070.00816.83
7.4.200.0000.00716.64
7.4.190.0000.00716.68
7.4.160.0130.00316.70
7.4.150.0150.00317.40
7.4.140.0090.00917.86
7.4.130.0060.01116.75
7.4.120.0050.01216.71
7.4.110.0070.01316.80
7.4.100.0090.00916.68
7.4.90.0040.01416.64
7.4.80.0100.00816.62
7.4.70.0090.00916.69
7.4.60.0090.00916.84
7.4.50.0060.00316.78
7.4.40.0060.00622.77
7.4.30.0160.00016.67
7.4.10.0150.00015.39
7.4.00.0080.00715.14
7.3.330.0030.00313.59
7.3.320.0050.00013.51
7.3.310.0030.00316.45
7.3.300.0040.00416.55
7.3.290.0090.00616.56
7.3.280.0100.00816.59
7.3.270.0130.00317.40
7.3.260.0110.00716.65
7.3.250.0090.00916.50
7.3.240.0080.01116.96
7.3.230.0160.00316.64
7.3.210.0140.00716.68
7.3.200.0130.00319.39
7.3.190.0160.00616.80
7.3.180.0100.00716.77
7.3.170.0120.01016.52
7.3.160.0070.01716.58
7.3.130.0130.00714.78
7.3.120.0070.01115.23
7.3.110.0080.00914.96
7.3.100.0050.00815.09
7.3.90.0040.01114.92
7.3.80.0030.00915.08
7.3.70.0050.00814.93
7.3.60.0020.01115.06
7.3.50.0080.00615.04
7.3.40.0060.00914.97
7.3.30.0090.00515.06
7.3.20.0060.00616.89
7.3.10.0080.00916.80
7.3.00.0090.00716.75
7.2.330.0030.01416.86
7.2.320.0060.01216.80
7.2.310.0120.00616.91
7.2.300.0090.01216.60
7.2.290.0030.01316.83
7.2.260.0100.00715.11
7.2.250.0050.01315.30
7.2.240.0080.00714.96
7.2.230.0060.00615.24
7.2.220.0040.01015.08
7.2.210.0090.00515.26
7.2.200.0080.00715.24
7.2.190.0050.00814.99
7.2.180.0050.01115.22
7.2.170.0050.01015.21
7.2.160.0050.01115.09
7.2.150.0080.00717.08
7.2.140.0070.01117.14
7.2.130.0070.01217.03
7.2.120.0090.00817.13
7.2.110.0100.00717.05
7.2.100.0100.00716.88
7.2.90.0090.00817.10
7.2.80.0080.00716.90
7.2.70.0110.00417.00
7.2.60.0070.00816.96
7.2.50.0070.00916.99
7.2.40.0100.00617.01
7.2.30.0080.01017.17
7.2.20.0080.00817.04
7.2.10.0040.01017.02
7.2.00.0070.00717.63
7.1.330.0020.01215.93
7.1.320.0060.00616.06
7.1.310.0060.01215.96
7.1.300.0050.00915.99
7.1.290.0060.00715.91
7.1.280.0080.00415.87
7.1.270.0080.00815.99
7.1.260.0070.00816.07
7.1.250.0100.00715.99
7.1.240.0060.00615.88
7.1.230.0070.00716.05
7.1.220.0070.00715.85
7.1.210.0030.00716.01
7.1.200.0090.00315.84
7.1.190.0070.00715.75
7.1.180.0000.01315.63
7.1.170.0040.01116.09
7.1.160.0070.00716.07
7.1.150.0050.00515.76
7.1.140.0000.01016.16
7.1.130.0060.00616.00
7.1.120.0030.00615.99
7.1.110.0030.01316.00
7.1.100.0030.00816.99
7.1.90.0000.01316.03
7.1.80.0050.00516.02
7.1.70.0020.00916.77
7.1.60.0030.00817.99
7.1.50.0040.01116.70
7.1.40.0040.00815.97
7.1.30.0080.00316.07
7.1.20.0030.00616.07
7.1.10.0000.01216.14
7.1.00.0020.04619.27
7.0.330.0130.00715.61
7.0.320.0090.00315.49
7.0.310.0070.00715.73
7.0.300.0030.01015.49
7.0.290.0030.01015.27
7.0.280.0080.00515.69
7.0.270.0070.00315.51
7.0.260.0000.00815.70
7.0.250.0060.00315.20
7.0.240.0060.00615.64
7.0.230.0000.01115.73
7.0.220.0030.00715.66
7.0.210.0070.00415.69
7.0.200.0050.00916.33
7.0.190.0030.00715.73
7.0.180.0060.00315.55
7.0.170.0060.00315.50
7.0.160.0070.00415.43
7.0.150.0040.00415.61
7.0.140.0060.04018.79
7.0.130.0100.00715.63
7.0.120.0110.00415.67
7.0.110.0090.00315.32
7.0.100.0200.04017.78
7.0.90.0100.03317.59
7.0.80.0100.03717.61
7.0.70.0160.02517.56
7.0.60.0130.04117.79
7.0.50.0050.03217.90
7.0.40.0130.04116.93
7.0.30.0080.04016.83
7.0.20.0030.03316.66
7.0.10.0050.04216.86
7.0.00.0080.04516.88
5.6.400.0060.01014.30
5.6.390.0060.00614.75
5.6.380.0070.00714.16
5.6.370.0120.00314.09
5.6.360.0070.00714.30
5.6.350.0000.01114.29
5.6.340.0070.00714.82
5.6.330.0040.00414.50
5.6.320.0090.00314.45
5.6.310.0030.00914.78
5.6.300.0030.01214.62
5.6.290.0090.00614.79
5.6.280.0050.03817.70
5.6.270.0090.00014.50
5.6.260.0070.00714.75
5.6.250.0110.04017.54
5.6.240.0040.04617.54
5.6.230.0050.04617.62
5.6.220.0100.04117.63
5.6.210.0140.02317.74
5.6.200.0120.03517.87
5.6.190.0100.04017.74
5.6.180.0100.04517.70
5.6.170.0080.04017.89
5.6.160.0130.03817.81
5.6.150.0080.04317.68
5.6.140.0090.02817.96
5.6.130.0020.02917.70
5.6.120.0100.03817.75
5.6.110.0150.03617.87
5.6.100.0050.04317.81
5.6.90.0030.04817.56
5.6.80.0090.04017.58
5.6.70.0060.03517.38
5.6.60.0030.04517.34
5.6.50.0090.04217.25
5.6.40.0090.04417.25
5.6.30.0070.04417.48
5.6.20.0070.04317.50
5.6.10.0080.04017.43
5.6.00.0020.03717.52
5.5.380.0050.04117.37
5.5.370.0020.04617.30
5.5.360.0050.03917.42
5.5.350.0140.03417.41
5.5.340.0100.04317.62
5.5.330.0100.03217.30
5.5.320.0070.04317.38
5.5.310.0050.04117.77
5.5.300.0050.03717.58
5.5.290.0050.04517.57
5.5.280.0100.04017.63
5.5.270.0030.04517.87
5.5.260.0110.02617.56
5.5.250.0050.03517.54
5.5.240.0080.04017.08
5.5.230.0090.02817.17
5.5.220.0020.04217.04
5.5.210.0130.03717.32
5.5.200.0080.02417.29
5.5.190.0060.03817.20
5.5.180.0070.04217.06
5.5.170.0060.00314.34
5.5.160.0070.04217.40
5.5.150.0090.04417.33
5.5.140.0040.03417.11
5.5.130.0070.04517.38
5.5.120.0040.03417.09
5.5.110.0100.03817.35
5.5.100.0030.04317.10
5.5.90.0070.04117.22
5.5.80.0120.03617.15
5.5.70.0070.02817.10
5.5.60.0110.02917.29
5.5.50.0070.04417.09
5.5.40.0160.03317.23
5.5.30.0080.02517.05
5.5.20.0080.04217.21
5.5.10.0080.04117.05
5.5.00.0100.02517.23
5.4.450.0050.04216.37
5.4.440.0140.03316.39
5.4.430.0030.04616.29
5.4.420.0020.04516.41
5.4.410.0050.04016.32
5.4.400.0030.04016.27
5.4.390.0030.02716.26
5.4.380.0120.02816.21
5.4.370.0030.03216.25
5.4.360.0060.02016.14
5.4.350.0100.03516.21
5.4.340.0060.04016.31
5.4.330.0030.00313.37
5.4.320.0080.03216.30
5.4.310.0050.04216.20
5.4.300.0070.02716.11
5.4.290.0070.02316.24
5.4.280.0070.04416.27
5.4.270.0010.04316.26
5.4.260.0020.02616.29
5.4.250.0070.04116.21
5.4.240.0070.03816.13
5.4.230.0020.03816.21
5.4.220.0080.04216.19
5.4.210.0080.02216.11
5.4.200.0100.03716.24
5.4.190.0030.02216.24
5.4.180.0030.03816.21
5.4.170.0020.04616.27
5.4.160.0060.04016.11
5.4.150.0050.04516.27
5.4.140.0070.03714.89
5.4.130.0060.03614.89
5.4.120.0030.02614.87
5.4.110.0090.03214.90
5.4.100.0070.04414.96
5.4.90.0070.03714.95
5.4.80.0070.03714.91
5.4.70.0030.02614.88
5.4.60.0070.03314.84
5.4.50.0030.02314.91
5.4.40.0020.02614.83
5.4.30.0030.04114.80
5.4.20.0020.04214.92
5.4.10.0020.03214.84
5.4.00.0070.03514.58
5.3.290.0050.03514.01
5.3.280.0060.03514.04
5.3.270.0070.04014.02
5.3.260.0050.04013.97
5.3.250.0000.02814.04
5.3.240.0100.03714.02
5.3.230.0080.03614.04
5.3.220.0030.04014.04
5.3.210.0060.03613.95
5.3.200.0080.02814.00
5.3.190.0050.04514.04
5.3.180.0100.03313.99
5.3.170.0070.04013.95
5.3.160.0000.03013.93
5.3.150.0020.04314.02
5.3.140.0050.04313.99
5.3.130.0030.04313.92
5.3.120.0030.02713.92
5.3.110.0080.03014.01
5.3.100.0080.02113.77
5.3.90.0060.03013.66
5.3.80.0050.04013.68
5.3.70.0060.03913.66
5.3.60.0040.03713.65
5.3.50.0080.03613.69
5.3.40.0070.04013.61
5.3.30.0070.03913.64
5.3.20.0080.04013.58
5.3.10.0060.03713.51
5.3.00.0020.04013.46
5.2.170.0070.03311.27
5.2.160.0070.05311.15
5.2.150.0130.05311.01
5.2.140.0030.06311.22
5.2.130.0000.06310.99
5.2.120.0070.06011.04
5.2.110.0000.05711.25
5.2.100.0100.05310.96
5.2.90.0030.06711.17
5.2.80.0070.06011.02
5.2.70.0030.05311.16
5.2.60.0030.06011.12
5.2.50.0070.05010.94
5.2.40.0030.05711.07
5.2.30.0030.05311.10
5.2.20.0030.06311.03
5.2.10.0100.05010.96
5.2.00.0030.06710.88
5.1.60.0030.0309.85
5.1.50.0030.05310.07
5.1.40.0070.04710.05
5.1.30.0070.05310.37
5.1.20.0100.05310.29
5.1.10.0030.05010.14
5.1.00.0000.06010.19
5.0.50.0000.0408.69
5.0.40.0000.0478.69
5.0.30.0000.0408.69
5.0.20.0030.0438.69
5.0.10.0070.0378.69
5.0.00.0030.0678.69
4.4.90.0000.0208.69
4.4.80.0000.0278.69
4.4.70.0030.0378.69
4.4.60.0000.0378.69
4.4.50.0070.0138.69
4.4.40.0030.0378.69
4.4.30.0070.0308.69
4.4.20.0070.0278.69
4.4.10.0000.0308.69
4.4.00.0000.0378.69
4.3.110.0100.0138.69
4.3.100.0030.0308.69
4.3.90.0000.0378.69
4.3.80.0030.0378.69
4.3.70.0030.0238.69
4.3.60.0030.0208.69
4.3.50.0000.0308.69
4.3.40.0000.0308.69
4.3.30.0030.0278.69
4.3.20.0000.0178.69
4.3.10.0100.0238.69
4.3.00.0000.0378.69

preferences:
53.81 ms | 401 KiB | 5 Q