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_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.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.40.0040.01118.91
8.3.30.0110.00419.09
8.3.20.0050.00220.33
8.3.10.0080.00021.92
8.3.00.0040.00422.31
8.2.170.0120.00322.96
8.2.160.0070.00721.20
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0070.00419.40
8.2.110.0050.00522.29
8.2.100.0090.00317.93
8.2.90.0000.00819.35
8.2.80.0040.00418.04
8.2.70.0000.01217.75
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00718.07
8.2.20.0000.00717.86
8.2.10.0040.00417.75
8.2.00.0040.00417.87
8.1.270.0040.00423.97
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00523.84
8.1.230.0070.00419.16
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0040.00817.34
8.1.190.0050.00317.53
8.1.180.0050.00318.10
8.1.170.0000.00818.83
8.1.160.0100.00021.98
8.1.150.0050.00218.69
8.1.140.0030.00617.63
8.1.130.0070.00017.87
8.1.120.0000.00817.56
8.1.110.0000.00817.69
8.1.100.0040.00417.54
8.1.90.0040.00417.60
8.1.80.0040.00417.66
8.1.70.0040.00417.64
8.1.60.0000.00917.74
8.1.50.0040.00417.72
8.1.40.0040.00417.58
8.1.30.0030.00517.70
8.1.20.0050.00317.72
8.1.10.0050.00317.59
8.1.00.0020.00517.59
8.0.300.0040.00418.77
8.0.290.0040.00417.43
8.0.280.0050.00218.54
8.0.270.0030.00317.41
8.0.260.0030.00316.93
8.0.250.0030.00317.16
8.0.240.0050.00217.04
8.0.230.0050.00217.11
8.0.220.0030.00316.94
8.0.210.0030.00517.03
8.0.200.0030.00317.17
8.0.190.0000.00917.15
8.0.180.0000.00817.08
8.0.170.0040.00416.98
8.0.160.0040.00417.14
8.0.150.0040.00417.00
8.0.140.0000.00817.03
8.0.130.0000.00513.56
8.0.120.0040.00416.93
8.0.110.0040.00416.97
8.0.100.0000.00717.09
8.0.90.0080.00017.12
8.0.80.0030.01416.98
8.0.70.0040.00417.11
8.0.60.0070.00017.03
8.0.50.0050.00217.06
8.0.30.0120.00917.17
8.0.20.0110.01317.40
8.0.10.0040.00417.22
8.0.00.0110.00917.11
7.4.330.0000.00515.10
7.4.320.0000.00616.89
7.4.300.0000.00616.88
7.4.290.0050.00216.84
7.4.280.0030.00316.75
7.4.270.0040.00416.77
7.4.260.0070.00016.73
7.4.250.0050.00316.57
7.4.240.0020.00616.79
7.4.230.0030.00316.85
7.4.220.0060.01016.64
7.4.210.0070.00916.83
7.4.200.0040.00416.56
7.4.190.0050.00316.73
7.4.160.0070.01016.79
7.4.150.0180.00017.40
7.4.140.0150.00517.86
7.4.130.0140.00716.69
7.4.120.0080.01016.76
7.4.110.0120.00616.77
7.4.100.0140.00916.80
7.4.90.0100.01016.60
7.4.80.0040.01419.39
7.4.70.0160.00716.52
7.4.60.0210.00616.80
7.4.50.0050.00316.43
7.4.40.0000.01622.77
7.4.30.0100.00616.68
7.4.00.0120.00415.13
7.3.330.0050.00013.32
7.3.320.0000.00713.50
7.3.310.0000.00716.60
7.3.300.0030.00316.50
7.3.290.0110.00416.52
7.3.280.0100.00916.57
7.3.270.0140.00317.40
7.3.260.0100.00716.76
7.3.250.0090.01116.84
7.3.240.0080.00816.50
7.3.230.0100.00716.50
7.3.210.0070.01016.80
7.3.200.0090.01419.39
7.3.190.0100.00716.83
7.3.180.0130.00616.65
7.3.170.0090.00616.79
7.3.160.0220.00416.56
7.3.120.0000.01715.29
7.3.110.0100.00314.95
7.3.100.0060.00915.06
7.3.90.0030.01315.08
7.3.80.0000.01715.04
7.3.70.0130.00314.86
7.3.60.0000.01214.96
7.3.50.0030.01015.11
7.3.40.0030.00915.14
7.3.30.0070.01014.89
7.3.20.0100.00616.96
7.3.10.0040.01516.68
7.3.00.0040.01216.75
7.2.330.0090.00916.87
7.2.320.0070.01016.60
7.2.310.0030.01516.78
7.2.300.0100.00616.78
7.2.290.0030.01316.76
7.2.240.0040.01114.94
7.2.230.0030.01415.13
7.2.220.0030.00714.95
7.2.210.0060.01015.14
7.2.200.0030.01314.97
7.2.190.0000.01815.13
7.2.180.0060.01115.13
7.2.170.0040.01115.16
7.2.160.0000.01715.22
7.2.150.0040.01116.75
7.2.140.0070.01017.03
7.2.130.0030.01017.07
7.2.120.0090.00317.09
7.2.110.0060.00916.79
7.2.100.0060.01216.93
7.2.90.0110.00717.08
7.2.80.0030.01016.97
7.2.70.0040.01117.17
7.2.60.0070.01116.93
7.2.50.0070.01017.22
7.2.40.0100.00616.97
7.2.30.0070.01016.98
7.2.20.0030.00917.13
7.2.10.0100.00716.93
7.2.00.0090.00718.28
7.1.330.0120.00416.11
7.1.320.0120.00416.13
7.1.310.0090.00315.98
7.1.300.0040.01215.79
7.1.290.0030.01316.07
7.1.280.0080.00316.10
7.1.270.0040.01115.81
7.1.260.0030.01415.93
7.1.250.0070.00715.97
7.1.100.0110.00418.59
7.1.70.0030.00717.32
7.1.60.0070.01719.82
7.1.50.0090.01317.29
7.1.00.0030.07722.52
7.0.200.0090.00317.04
7.0.140.0100.06722.08
7.0.100.0430.07319.95
7.0.90.0630.08020.17
7.0.80.0600.08019.95
7.0.70.0430.08719.84
7.0.60.0500.07019.95
7.0.50.0600.07320.28
7.0.40.0070.08320.05
7.0.30.0070.08020.18
7.0.20.0070.08319.98
7.0.10.0070.07720.06
7.0.00.0170.07319.93
5.6.280.0070.07020.89
5.6.250.0030.07020.50
5.6.240.0130.08020.70
5.6.230.0170.07320.54
5.6.220.0170.03720.61
5.6.210.0070.06720.65
5.6.200.0070.08021.03
5.6.190.0000.09020.96
5.6.180.0030.08721.01
5.6.170.0130.07021.03
5.6.160.0100.08021.13
5.6.150.0070.08321.07
5.6.140.0100.06721.13
5.6.130.0170.07021.05
5.6.120.0030.08021.12
5.6.110.0170.07721.06
5.6.100.0070.08320.97
5.6.90.0170.06721.03
5.6.80.0000.08720.45
5.6.70.0070.08020.29
5.6.60.0070.07720.51
5.6.50.0030.04720.34
5.6.40.0070.07720.46
5.6.30.0070.04720.48
5.6.20.0100.07320.44
5.6.10.0070.05720.30
5.6.00.0000.05320.43
5.5.380.0000.09320.52
5.5.370.0100.07720.33
5.5.360.0130.03320.35
5.5.350.0070.07720.36
5.5.340.0070.07320.77
5.5.330.0030.09020.94
5.5.320.0170.05720.90
5.5.310.0070.08320.89
5.5.300.0170.07320.84
5.5.290.0170.06720.94
5.5.280.0130.07720.77
5.5.270.0070.06720.89
5.5.260.0130.06720.88
5.5.250.0000.05720.45
5.5.240.0100.06720.19
5.5.230.0130.07720.20
5.5.220.0130.06720.14
5.5.210.0070.08020.03
5.5.200.0030.08320.24
5.5.190.0070.08320.27
5.5.180.0030.05720.24
5.5.160.0300.04320.19
5.5.150.0130.08019.99
5.5.140.0100.05720.11
5.5.130.0130.07020.25
5.5.120.0130.07320.30
5.5.110.0170.07019.99
5.5.100.0100.07320.09
5.5.90.0170.07020.01
5.5.80.0070.08320.08
5.5.70.0070.07020.01
5.5.60.0070.06720.16
5.5.50.0100.07020.11
5.5.40.0030.08320.16
5.5.30.0100.07320.06
5.5.20.0100.07320.06
5.5.10.0070.07719.97
5.5.00.0070.07720.04
5.4.450.0100.07719.30
5.4.440.0070.08019.21
5.4.430.0070.04719.50
5.4.420.0070.03719.48
5.4.410.0070.05019.34
5.4.400.0130.06719.17
5.4.390.0100.07719.15
5.4.380.0030.05019.18
5.4.370.0130.05319.09
5.4.360.0030.05719.20
5.4.350.0130.06319.16
5.4.340.0130.07019.05
5.4.320.0100.07019.04
5.4.310.0100.05019.13
5.4.300.0070.06718.88
5.4.290.0100.05319.16
5.4.280.0030.08019.03
5.4.270.0030.08018.86
5.4.260.0200.05319.03
5.4.250.0070.05018.94
5.4.240.0030.08018.87
5.4.230.0000.08719.18
5.4.220.0130.06318.92
5.4.210.0130.07319.12
5.4.200.0100.07719.04
5.4.190.0030.07719.13
5.4.180.0130.06718.87
5.4.170.0170.05719.09
5.4.160.0070.06019.05
5.4.150.0200.06319.08
5.4.140.0070.06716.48
5.4.130.0070.06716.50
5.4.120.0070.07016.46
5.4.110.0200.05716.53
5.4.100.0130.06316.39
5.4.90.0070.05716.45
5.4.80.0000.06016.51
5.4.70.0030.04716.31
5.4.60.0070.07316.34
5.4.50.0030.07316.29
5.4.40.0130.06716.35
5.4.30.0030.05716.29
5.4.20.0100.06316.48
5.4.10.0070.07016.40
5.4.00.0070.07315.91
5.3.290.0100.07314.64
5.3.280.0000.06314.52
5.3.270.0030.07714.69
5.3.260.0070.07014.63
5.3.250.0100.07014.71
5.3.240.0130.07014.70
5.3.230.0030.08314.70
5.3.220.0030.07714.56
5.3.210.0130.06714.67
5.3.200.0030.08014.59
5.3.190.0030.08014.49
5.3.180.0030.08014.54
5.3.170.0130.07014.55
5.3.160.0000.07714.63
5.3.150.0070.04314.54
5.3.140.0070.07014.59
5.3.130.0070.07314.64
5.3.120.0070.07314.58
5.3.110.0100.07714.56
5.3.100.0100.07314.11
5.3.90.0100.06313.95
5.3.80.0030.07713.95
5.3.70.0100.06313.91
5.3.60.0030.08014.07
5.3.50.0070.06713.98
5.3.40.0000.08014.07
5.3.30.0170.03313.79
5.3.20.0130.05713.60
5.3.10.0170.03713.77
5.3.00.0100.06313.57
5.2.170.0000.06011.16
5.2.160.0070.03311.05
5.2.150.0100.06311.05
5.2.140.0030.06311.07
5.2.130.0070.05310.96
5.2.120.0130.05311.17
5.2.110.0030.03711.16
5.2.100.0030.03311.11
5.2.90.0030.05310.96
5.2.80.0030.06011.19
5.2.70.0070.06011.01
5.2.60.0070.05011.16
5.2.50.0030.06311.13
5.2.40.0070.05711.11
5.2.30.0070.04310.91
5.2.20.0100.05310.97
5.2.10.0030.05010.80
5.2.00.0000.05310.65
5.1.60.0070.04310.10
5.1.50.0000.03310.03
5.1.40.0070.0509.97
5.1.30.0100.05010.40
5.1.20.0000.05710.36
5.1.10.0030.0579.92
5.1.00.0000.0579.91
5.0.50.0030.0508.55
5.0.40.0030.0308.26
5.0.30.0070.0408.23
5.0.20.0070.0408.24
5.0.10.0070.0308.24
5.0.00.0030.0678.28
4.4.90.0000.0207.96
4.4.80.0030.0307.96
4.4.70.0000.0237.96
4.4.60.0030.0377.96
4.4.50.0000.0377.96
4.4.40.0030.0507.96
4.4.30.0030.0407.96
4.4.20.0030.0307.96
4.4.10.0000.0377.96
4.4.00.0030.0507.96
4.3.110.0000.0277.96
4.3.100.0030.0307.96
4.3.90.0070.0307.96
4.3.80.0000.0477.96
4.3.70.0000.0307.96
4.3.60.0030.0337.96
4.3.50.0030.0337.96
4.3.40.0000.0477.96
4.3.30.0070.0307.96
4.3.20.0030.0377.96
4.3.10.0000.0237.96
4.3.00.0000.0377.96

preferences:
34.24 ms | 400 KiB | 5 Q