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.0080.01117.13
8.3.50.0270.00622.08
8.3.40.0150.00619.01
8.3.30.0070.00719.22
8.3.20.0000.00820.35
8.3.10.0000.00823.63
8.3.00.0040.00420.69
8.2.180.0130.00916.88
8.2.170.0100.01022.96
8.2.160.0060.00920.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.32
8.2.110.0030.00622.30
8.2.100.0120.00017.97
8.2.90.0080.00019.26
8.2.80.0000.00818.05
8.2.70.0030.00617.88
8.2.60.0040.00717.93
8.2.50.0000.00818.07
8.2.40.0000.00919.46
8.2.30.0080.00018.15
8.2.20.0040.00417.95
8.2.10.0030.00519.70
8.2.00.0040.00717.79
8.1.280.0110.00325.92
8.1.270.0030.00723.84
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.92
8.1.230.0090.00319.09
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0040.00417.41
8.1.180.0080.00018.10
8.1.170.0030.00618.76
8.1.160.0070.00021.98
8.1.150.0070.00018.75
8.1.140.0080.00017.66
8.1.130.0040.00417.79
8.1.120.0000.00817.54
8.1.110.0040.00417.58
8.1.100.0070.00017.47
8.1.90.0000.00717.67
8.1.80.0030.00317.52
8.1.70.0000.00717.52
8.1.60.0030.00517.79
8.1.50.0030.00617.71
8.1.40.0080.00017.63
8.1.30.0040.00417.73
8.1.20.0030.00517.83
8.1.10.0000.00817.73
8.1.00.0060.00317.54
8.0.300.0040.00418.77
8.0.290.0070.00017.30
8.0.280.0000.00718.36
8.0.270.0030.00317.18
8.0.260.0040.00417.04
8.0.250.0070.00017.24
8.0.240.0000.00817.16
8.0.230.0030.00617.15
8.0.220.0000.00817.09
8.0.210.0030.00317.00
8.0.200.0070.00017.13
8.0.190.0040.00417.14
8.0.180.0070.00017.18
8.0.170.0030.00617.15
8.0.160.0000.00817.09
8.0.150.0040.00417.02
8.0.140.0050.00316.99
8.0.130.0030.00313.48
8.0.120.0040.00417.00
8.0.110.0070.00017.13
8.0.100.0030.00517.16
8.0.90.0040.00416.98
8.0.80.0030.01517.11
8.0.70.0080.00017.08
8.0.60.0080.00017.18
8.0.50.0040.00417.10
8.0.30.0070.01217.36
8.0.20.0080.01117.52
8.0.10.0040.00417.24
8.0.00.0130.00816.91
7.4.330.0000.00515.02
7.4.320.0030.00316.60
7.4.300.0000.00616.84
7.4.290.0070.00016.89
7.4.280.0080.00016.88
7.4.270.0030.00316.86
7.4.260.0000.00716.74
7.4.250.0000.00816.69
7.4.240.0040.00416.80
7.4.230.0000.00716.83
7.4.220.0060.01216.79
7.4.210.0110.00616.75
7.4.200.0070.00016.82
7.4.190.0000.00816.64
7.4.160.0050.01116.71
7.4.150.0070.01117.40
7.4.140.0090.00917.86
7.4.130.0120.00616.75
7.4.120.0140.00616.82
7.4.110.0040.01416.63
7.4.100.0080.01416.72
7.4.90.0110.01116.75
7.4.80.0070.01216.57
7.4.70.0140.00816.74
7.4.60.0060.00916.80
7.4.50.0040.00416.79
7.4.40.0030.01022.77
7.4.30.0030.01316.61
7.4.00.0020.01215.18
7.3.330.0050.00013.59
7.3.320.0000.00613.54
7.3.310.0000.00716.59
7.3.300.0030.00316.43
7.3.290.0000.01416.61
7.3.280.0080.00816.61
7.3.270.0090.00917.40
7.3.260.0030.01416.71
7.3.250.0110.00616.57
7.3.240.0030.01316.65
7.3.230.0060.00916.50
7.3.210.0140.00416.77
7.3.200.0100.01319.39
7.3.190.0100.00716.58
7.3.180.0100.00716.65
7.3.170.0130.00316.63
7.3.160.0160.00016.81
7.3.120.0050.01015.18
7.3.110.0030.01114.76
7.3.100.0040.01014.85
7.3.90.0040.01014.95
7.3.80.0050.01015.00
7.3.70.0050.01015.19
7.3.60.0030.01215.12
7.3.50.0050.00815.10
7.3.40.0120.00215.02
7.3.30.0040.01015.11
7.3.20.0050.00716.74
7.3.10.0080.00817.01
7.3.00.0040.00916.78
7.2.330.0030.01416.79
7.2.320.0130.01016.79
7.2.310.0090.00916.80
7.2.300.0100.00716.81
7.2.290.0170.00016.82
7.2.250.0100.01015.13
7.2.240.0100.00815.28
7.2.230.0090.00714.97
7.2.220.0110.00615.18
7.2.210.0030.01115.31
7.2.200.0050.00915.08
7.2.190.0030.01015.05
7.2.180.0030.01115.23
7.2.170.0060.00915.11
7.2.160.0060.00614.86
7.2.150.0120.00316.65
7.2.140.0070.01117.05
7.2.130.0090.00616.81
7.2.120.0070.01017.01
7.2.110.0080.00816.87
7.2.100.0070.01017.04
7.2.90.0090.00317.05
7.2.80.0090.00617.18
7.2.70.0170.00017.03
7.2.60.0100.00317.14
7.2.50.0000.01617.13
7.2.40.0090.00916.90
7.2.30.0110.00717.10
7.2.20.0040.01416.73
7.2.10.0130.00317.11
7.2.00.0000.01418.15
7.1.330.0050.00815.88
7.1.320.0050.00716.00
7.1.310.0080.00515.87
7.1.300.0050.00815.89
7.1.290.0070.00416.06
7.1.280.0060.00515.99
7.1.270.0080.00615.96
7.1.260.0050.00716.01
7.1.250.0080.00316.05
7.1.100.0000.00818.15
7.1.70.0070.00317.45
7.1.60.0110.00017.50
7.1.50.0100.01017.30
7.1.00.0000.08022.53
7.0.200.0070.01116.83
7.0.140.0070.07021.99
7.0.100.0430.07719.91
7.0.90.0270.07019.96
7.0.80.0500.07319.92
7.0.70.0470.07719.95
7.0.60.0430.08319.99
7.0.50.0370.09320.34
7.0.40.0200.04320.15
7.0.30.0070.07720.14
7.0.20.0100.08020.18
7.0.10.0200.06020.09
7.0.00.0030.08719.99
5.6.280.0030.07320.99
5.6.250.0070.08020.52
5.6.240.0030.09020.60
5.6.230.0200.07020.68
5.6.220.0100.07720.68
5.6.210.0130.07720.77
5.6.200.0100.07721.15
5.6.190.0100.07721.09
5.6.180.0070.08021.14
5.6.170.0170.05321.05
5.6.160.0070.07721.07
5.6.150.0100.08320.98
5.6.140.0100.07721.05
5.6.130.0070.08720.96
5.6.120.0130.07721.07
5.6.110.0100.07721.17
5.6.100.0070.08021.05
5.6.90.0200.06721.12
5.6.80.0100.07320.57
5.6.70.0200.06320.34
5.6.60.0070.05020.48
5.6.50.0000.07020.44
5.6.40.0000.08720.37
5.6.30.0170.07020.45
5.6.20.0030.06020.31
5.6.10.0070.05720.41
5.6.00.0030.07720.28
5.5.380.0100.08020.36
5.5.370.0100.08020.35
5.5.360.0130.07320.43
5.5.350.0130.07720.46
5.5.340.0100.07320.79
5.5.330.0100.07320.91
5.5.320.0170.07320.91
5.5.310.0100.07720.79
5.5.300.0030.08020.87
5.5.290.0030.08720.85
5.5.280.0030.09020.93
5.5.270.0070.08720.75
5.5.260.0100.08720.89
5.5.250.0130.08020.71
5.5.240.0070.08020.17
5.5.230.0130.07020.18
5.5.220.0100.07320.21
5.5.210.0100.06720.30
5.5.200.0030.07720.14
5.5.190.0030.08720.19
5.5.180.0070.08020.25
5.5.160.0200.07020.23
5.5.150.0200.06320.21
5.5.140.0030.08020.26
5.5.130.0070.07720.07
5.5.120.0070.08320.09
5.5.110.0000.07020.15
5.5.100.0100.06720.14
5.5.90.0030.05020.09
5.5.80.0030.04720.05
5.5.70.0070.07719.94
5.5.60.0000.08320.16
5.5.50.0030.04020.11
5.5.40.0130.07320.12
5.5.30.0070.08019.97
5.5.20.0070.08020.15
5.5.10.0230.06019.96
5.5.00.0030.08020.13
5.4.450.0070.07319.43
5.4.440.0030.05019.45
5.4.430.0100.05719.46
5.4.420.0130.07019.17
5.4.410.0000.08019.23
5.4.400.0100.07718.91
5.4.390.0070.08019.06
5.4.380.0130.07718.88
5.4.370.0100.07019.05
5.4.360.0100.07019.15
5.4.350.0100.07319.03
5.4.340.0070.07318.91
5.4.320.0030.07719.12
5.4.310.0070.07019.05
5.4.300.0070.07319.20
5.4.290.0030.05319.13
5.4.280.0000.08319.09
5.4.270.0130.07319.17
5.4.260.0070.08018.95
5.4.250.0100.07018.84
5.4.240.0030.06018.95
5.4.230.0070.07719.16
5.4.220.0100.07319.09
5.4.210.0030.08018.95
5.4.200.0070.05019.03
5.4.190.0170.06719.04
5.4.180.0130.06319.20
5.4.170.0000.08019.08
5.4.160.0070.07719.08
5.4.150.0100.07018.94
5.4.140.0030.06016.27
5.4.130.0130.07016.36
5.4.120.0100.07016.27
5.4.110.0070.06716.35
5.4.100.0030.05016.49
5.4.90.0100.06716.47
5.4.80.0170.06316.50
5.4.70.0000.07316.46
5.4.60.0070.07316.31
5.4.50.0070.06716.40
5.4.40.0030.06716.53
5.4.30.0100.06716.24
5.4.20.0070.07016.48
5.4.10.0070.07716.34
5.4.00.0100.07015.73
5.3.290.0070.07314.72
5.3.280.0070.06714.54
5.3.270.0100.07014.63
5.3.260.0030.07714.59
5.3.250.0100.06714.67
5.3.240.0070.07014.64
5.3.230.0100.07014.73
5.3.220.0000.06714.62
5.3.210.0030.08014.57
5.3.200.0030.08014.57
5.3.190.0130.07314.63
5.3.180.0100.07014.52
5.3.170.0070.07714.66
5.3.160.0130.07014.49
5.3.150.0030.05714.50
5.3.140.0130.07014.57
5.3.130.0070.08014.54
5.3.120.0070.08014.48
5.3.110.0130.05314.66
5.3.100.0130.06714.00
5.3.90.0130.07314.16
5.3.80.0070.07014.08
5.3.70.0070.08014.04
5.3.60.0070.07314.00
5.3.50.0030.07314.08
5.3.40.0030.07314.06
5.3.30.0000.05314.02
5.3.20.0070.06713.59
5.3.10.0070.05713.64
5.3.00.0000.07313.75
5.2.170.0070.06711.22
5.2.160.0100.05711.02
5.2.150.0070.05711.07
5.2.140.0030.06311.29
5.2.130.0070.05711.03
5.2.120.0030.06011.01
5.2.110.0000.06711.20
5.2.100.0070.04011.16
5.2.90.0100.05711.25
5.2.80.0100.05710.99
5.2.70.0100.05711.00
5.2.60.0100.05711.08
5.2.50.0030.06311.06
5.2.40.0070.05010.92
5.2.30.0030.06011.12
5.2.20.0070.05311.00
5.2.10.0070.05310.83
5.2.00.0030.04710.60
5.1.60.0130.04310.00
5.1.50.0070.05010.09
5.1.40.0030.04710.00
5.1.30.0030.05710.29
5.1.20.0070.05710.37
5.1.10.0100.04710.17
5.1.00.0030.05310.20
5.0.50.0000.0508.65
5.0.40.0030.0438.29
5.0.30.0030.0708.34
5.0.20.0100.0378.24
5.0.10.0030.0408.28
5.0.00.0070.0608.25
4.4.90.0000.0378.24
4.4.80.0030.0238.24
4.4.70.0030.0308.24
4.4.60.0030.0338.24
4.4.50.0070.0308.24
4.4.40.0030.0538.24
4.4.30.0030.0338.24
4.4.20.0030.0378.24
4.4.10.0000.0378.24
4.4.00.0070.0478.24
4.3.110.0070.0338.24
4.3.100.0070.0308.24
4.3.90.0070.0278.24
4.3.80.0000.0578.24
4.3.70.0000.0338.24
4.3.60.0030.0338.24
4.3.50.0000.0278.24
4.3.40.0000.0578.24
4.3.30.0000.0378.24
4.3.20.0030.0278.24
4.3.10.0000.0378.24
4.3.00.0030.0308.24

preferences:
46.23 ms | 400 KiB | 5 Q