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: $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.00316.75
8.3.50.0100.01017.52
8.3.40.0040.01119.01
8.3.30.0140.00718.95
8.3.20.0030.01218.93
8.3.10.0100.01020.66
8.3.00.0100.01017.71
8.2.180.0140.00716.88
8.2.170.0110.00422.96
8.2.160.0100.01021.32
8.2.150.0030.00524.18
8.2.140.0110.00724.66
8.2.130.0050.00326.16
8.2.120.0050.00319.78
8.2.110.0100.00622.22
8.2.100.0040.00817.97
8.2.90.0040.00417.88
8.2.80.0030.00517.97
8.2.70.0030.00517.93
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0060.00320.59
8.2.30.0080.00018.09
8.2.20.0040.00417.93
8.2.10.0000.00717.85
8.2.00.0080.00017.85
8.1.280.0040.01125.92
8.1.270.0000.00824.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00420.70
8.1.230.0040.00822.77
8.1.220.0070.00317.91
8.1.210.0030.00618.77
8.1.200.0060.00317.60
8.1.190.0030.00617.48
8.1.180.0060.00318.10
8.1.170.0040.00418.89
8.1.160.0000.00718.91
8.1.150.0040.00418.82
8.1.140.0000.00917.64
8.1.130.0070.00017.89
8.1.120.0040.00417.70
8.1.110.0030.00517.67
8.1.100.0040.00417.63
8.1.90.0040.00417.67
8.1.80.0000.00817.66
8.1.70.0000.00717.52
8.1.60.0090.00317.66
8.1.50.0030.00517.65
8.1.40.0080.00017.61
8.1.30.0030.00617.90
8.1.20.0050.00317.88
8.1.10.0000.00717.77
8.1.00.0040.00417.59
8.0.300.0000.00722.14
8.0.290.0030.00617.00
8.0.280.0090.00018.51
8.0.270.0080.00017.23
8.0.260.0030.00317.06
8.0.250.0050.00317.05
8.0.240.0070.00317.05
8.0.230.0070.00017.09
8.0.220.0000.00717.12
8.0.210.0030.00317.09
8.0.200.0050.00216.98
8.0.190.0070.00017.18
8.0.180.0000.00817.09
8.0.170.0000.00816.98
8.0.160.0040.00417.05
8.0.150.0040.00417.01
8.0.140.0040.00717.07
8.0.130.0000.00613.51
8.0.120.0040.00417.04
8.0.110.0000.00716.99
8.0.100.0040.00417.14
8.0.90.0000.00817.08
8.0.80.0090.00716.96
8.0.70.0040.00416.96
8.0.60.0040.00417.20
8.0.50.0040.00417.05
8.0.30.0130.00817.10
8.0.20.0150.00317.29
8.0.10.0050.00317.25
8.0.00.0070.01216.93
7.4.330.0060.00013.29
7.4.320.0080.00016.88
7.4.300.0070.00016.77
7.4.290.0030.00616.61
7.4.280.0000.00816.73
7.4.270.0040.00416.88
7.4.260.0000.00513.43
7.4.250.0040.00416.84
7.4.240.0070.00016.69
7.4.230.0030.00316.83
7.4.220.0140.01116.80
7.4.210.0080.00716.76
7.4.200.0070.00016.83
7.4.190.0040.00416.61
7.4.160.0130.00616.65
7.4.150.0040.01416.94
7.4.140.0090.01116.77
7.4.130.0120.00616.74
7.4.120.0090.01016.77
7.4.110.0100.01316.66
7.4.100.0100.00716.70
7.4.90.0030.01616.89
7.4.80.0110.01116.59
7.4.70.0110.00716.79
7.4.60.0100.00816.63
7.4.50.0050.00016.59
7.4.40.0090.00616.77
7.4.30.0080.00816.82
7.4.00.0090.00315.21
7.3.330.0060.00013.39
7.3.320.0070.00013.56
7.3.310.0000.00816.41
7.3.300.0030.00316.51
7.3.290.0110.00316.56
7.3.280.0120.00416.53
7.3.270.0110.00716.84
7.3.260.0150.00716.68
7.3.250.0100.01016.48
7.3.240.0070.01016.68
7.3.230.0070.01616.63
7.3.210.0100.00716.55
7.3.200.0110.00619.39
7.3.190.0150.00616.96
7.3.180.0040.01216.83
7.3.170.0150.00316.55
7.3.160.0120.01216.65
7.3.120.0060.00614.98
7.2.330.0030.01416.55
7.2.320.0030.01716.78
7.2.310.0030.01616.53
7.2.300.0090.00916.77
7.2.290.0130.00316.71
7.2.00.0090.00619.26
7.1.100.0000.01218.21
7.1.70.0000.00717.40
7.1.60.0110.01419.40
7.1.50.0030.01817.36
7.1.00.0000.06322.42
7.0.200.0030.00617.07
7.0.140.0030.07321.99
7.0.120.0070.07022.05
7.0.60.0070.08719.99
7.0.50.0070.04317.90
7.0.40.0070.09320.06
7.0.30.0230.08320.13
7.0.20.0200.03720.18
7.0.10.0300.06320.22
7.0.00.0070.05720.08
5.6.280.0070.06720.86
5.6.210.0100.08020.60
5.6.200.0070.08718.18
5.6.190.0100.09320.47
5.6.180.0370.04720.63
5.6.170.0400.04720.48
5.6.160.0070.07020.71
5.6.150.0070.04018.12
5.6.140.0100.06318.28
5.6.130.0000.08718.28
5.6.120.0070.08320.99
5.6.110.0070.08321.00
5.6.100.0000.04721.00
5.6.90.0000.08321.13
5.6.80.0070.04020.38
5.5.350.0200.07320.39
5.5.340.0030.05318.09
5.5.330.0070.07320.29
5.5.320.0030.04720.50
5.5.310.0200.06020.30
5.5.300.0070.03718.01
5.5.290.0100.07718.08
5.5.280.0200.07020.89
5.5.270.0070.09320.87
5.5.260.0130.08720.73
5.5.250.0000.08020.66
5.5.240.0030.08720.07
5.4.450.0070.04019.48
5.4.440.0000.08719.56
5.4.430.0100.05319.56
5.4.420.0130.04719.56
5.4.410.0030.07719.05
5.4.400.0100.05319.15
5.4.390.0030.04319.15
5.4.380.0000.04319.15
5.4.370.0070.07319.15
5.4.360.0030.07319.15
5.4.350.0070.07319.24
5.4.340.0000.08319.14
5.4.320.0000.05719.24
5.4.310.0100.07319.26
5.4.300.0030.06718.87
5.4.290.0030.07718.91
5.4.280.0070.06319.20
5.4.270.0030.05019.28
5.4.260.0030.04018.92
5.4.250.0130.06318.86
5.4.240.0030.04318.96
5.4.230.0030.07018.84
5.4.220.0030.08019.14
5.4.210.0030.05319.24
5.4.200.0030.04719.13
5.4.190.0030.07719.25
5.4.180.0070.06319.11
5.4.170.0030.06318.99
5.4.160.0000.08019.18
5.4.150.0030.04719.22
5.4.140.0100.06016.41
5.4.130.0100.06316.42
5.4.120.0100.04016.47
5.4.110.0070.07016.46
5.4.100.0030.07316.42
5.4.90.0070.06316.48
5.4.80.0030.07016.34
5.4.70.0030.06316.70
5.4.60.0030.07016.37
5.4.50.0100.06016.38
5.4.40.0000.07316.50
5.4.30.0070.05016.44
5.4.20.0000.05716.38
5.4.10.0070.03316.38
5.4.00.0070.03715.76
5.3.290.0070.07714.58
5.3.280.0030.03714.66
5.3.270.0100.07314.49
5.3.260.0100.07314.60
5.3.250.0000.06014.53
5.3.240.0000.04714.61
5.3.230.0130.06314.60
5.3.220.0000.04314.56
5.3.210.0000.04314.56
5.3.200.0070.07714.59
5.3.190.0130.07314.49
5.3.180.0070.07714.56
5.3.170.0070.08014.61
5.3.160.0100.06714.59
5.3.150.0030.06314.57
5.3.140.0000.07314.44
5.3.130.0200.05714.54
5.3.120.0070.03714.59
5.3.110.0100.05714.54
5.3.100.0100.08014.06
5.3.90.0100.05714.18
5.3.80.0030.04314.17
5.3.70.0030.07014.05
5.3.60.0100.04314.17
5.3.50.0100.03314.00
5.3.40.0100.06313.83
5.3.30.0070.07713.96
5.3.20.0030.07013.64
5.3.10.0030.05013.60
5.3.00.0100.03713.64
5.2.170.0070.06711.29
5.2.160.0170.05711.22
5.2.150.0070.04011.09
5.2.140.0070.04711.18
5.2.130.0130.05711.07
5.2.120.0030.05011.17
5.2.110.0000.04011.09
5.2.100.0030.03711.07
5.2.90.0070.06011.10
5.2.80.0030.03711.10
5.2.70.0170.05011.05
5.2.60.0070.05011.04
5.2.50.0100.05711.02
5.2.40.0030.06010.96
5.2.30.0100.05711.03
5.2.20.0000.06010.85
5.2.10.0100.04710.82
5.2.00.0000.06310.88
5.1.60.0070.04310.04
5.1.50.0100.0279.98
5.1.40.0070.02710.00
5.1.30.0000.03010.30
5.1.20.0030.06010.36
5.1.10.0030.02710.03
5.1.00.0030.0539.98
5.0.50.0000.0278.56
5.0.40.0070.0238.39
5.0.30.0000.0678.38
5.0.20.0070.0178.28
5.0.10.0030.0438.28
5.0.00.0000.0678.31
4.4.90.0000.0278.28
4.4.80.0070.0338.28
4.4.70.0100.0278.28
4.4.60.0130.0278.28
4.4.50.0000.0408.28
4.4.40.0000.0308.28
4.4.30.0030.0338.28
4.4.20.0000.0178.28
4.4.10.0100.0208.28
4.4.00.0030.0308.28
4.3.110.0030.0378.28
4.3.100.0000.0208.28
4.3.90.0000.0378.28
4.3.80.0070.0478.28
4.3.70.0070.0308.28
4.3.60.0000.0338.28
4.3.50.0000.0238.28
4.3.40.0030.0438.28
4.3.30.0030.0138.28
4.3.20.0000.0178.28
4.3.10.0000.0278.28
4.3.00.0000.0338.28

preferences:
43.41 ms | 401 KiB | 5 Q