3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD for landline no 0802404408 080-2404408 (080) 2404408 +91802404408 +91-802404408 for mobile no 8147708287 08147708287 +918147708287 +91-8147708287 can anyone help me, thanks in advance EOD; //$pattern = '/\b[\+\(]*?[0-9-]+[\)\s]*?[0-9-]+\b/'; $pattern = '/[\+\(]*?\b[0-9-]+[\)\s]*?[0-9-]+\b/'; preg_match_all($pattern, $str, $matches); var_dump($matches);

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.00616.75
8.3.50.0070.01222.08
8.3.40.0030.01518.96
8.3.30.0110.00319.00
8.3.20.0040.00420.34
8.3.10.0040.00423.61
8.3.00.0030.00917.88
8.2.180.0100.00618.54
8.2.170.0100.00322.96
8.2.160.0100.01020.47
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.01126.16
8.2.120.0060.00322.25
8.2.110.0090.00022.31
8.2.100.0030.00917.84
8.2.90.0000.00919.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00717.80
8.2.50.0040.00418.07
8.2.40.0070.00419.95
8.2.30.0030.00518.03
8.2.20.0040.00417.71
8.2.10.0050.00218.04
8.2.00.0060.00317.87
8.1.280.0110.00425.92
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.63
8.1.230.0060.00619.07
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.41
8.1.180.0090.00518.10
8.1.170.0070.00318.47
8.1.160.0070.00021.88
8.1.150.0000.00718.85
8.1.140.0000.00717.64
8.1.130.0000.00717.83
8.1.120.0000.00717.50
8.1.110.0050.00217.54
8.1.100.0050.00317.49
8.1.90.0050.00217.61
8.1.80.0000.00717.46
8.1.70.0070.00017.53
8.1.60.0040.00417.67
8.1.50.0030.00617.55
8.1.40.0040.00417.55
8.1.30.0080.00017.74
8.1.20.0080.00017.66
8.1.10.0000.00817.69
8.1.00.0000.00817.46
8.0.300.0030.00620.73
8.0.290.0050.00217.04
8.0.280.0050.00318.31
8.0.270.0000.00717.20
8.0.260.0030.00317.13
8.0.250.0030.00317.02
8.0.240.0030.00317.14
8.0.230.0080.00017.13
8.0.220.0000.00717.01
8.0.210.0050.00317.09
8.0.200.0040.00417.00
8.0.190.0040.00417.16
8.0.180.0090.00016.96
8.0.170.0030.00516.95
8.0.160.0040.00417.12
8.0.150.0000.00717.04
8.0.140.0050.00317.01
8.0.130.0050.00313.39
8.0.120.0030.00516.95
8.0.110.0080.00016.91
8.0.100.0030.00517.11
8.0.90.0060.00317.07
8.0.80.0130.01017.11
8.0.70.0040.00416.94
8.0.60.0080.00017.09
8.0.50.0070.00017.04
8.0.30.0140.00717.36
8.0.20.0080.01117.40
8.0.10.0080.00017.01
8.0.00.0070.01216.82
7.4.330.0030.00315.22
7.4.320.0000.00616.72
7.4.300.0040.00416.78
7.4.290.0000.00716.79
7.4.280.0040.00416.71
7.4.270.0000.00716.60
7.4.260.0090.00016.70
7.4.250.0060.00316.68
7.4.240.0040.00416.69
7.4.230.0040.00416.83
7.4.220.0160.00016.91
7.4.210.0100.00616.82
7.4.200.0030.00316.70
7.4.190.0000.00716.91
7.4.160.0130.00316.58
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0100.00616.77
7.4.120.0080.00916.80
7.4.110.0110.00716.65
7.4.100.0070.01316.66
7.4.90.0110.00716.66
7.4.80.0070.01019.39
7.4.70.0090.00816.65
7.4.60.0090.00616.65
7.4.50.0040.00416.38
7.4.40.0140.00322.77
7.4.30.0140.00216.71
7.4.10.0120.00715.01
7.4.00.0090.00814.89
7.3.330.0030.00313.11
7.3.320.0030.00313.18
7.3.310.0040.00416.19
7.3.300.0040.00416.39
7.3.290.0050.01016.46
7.3.280.0090.00916.35
7.3.270.0120.00617.40
7.3.260.0090.01016.38
7.3.250.0120.00916.61
7.3.240.0090.00816.53
7.3.230.0130.00516.39
7.3.210.0130.00616.36
7.3.200.0110.01119.39
7.3.190.0130.01016.66
7.3.180.0090.00816.30
7.3.170.0080.01516.68
7.3.160.0080.00816.43
7.3.130.0090.01014.96
7.3.120.0050.01214.98
7.3.110.0080.00915.01
7.3.100.0050.01114.77
7.3.90.0090.00514.84
7.3.80.0050.00714.82
7.3.70.0050.00815.06
7.3.60.0020.01314.89
7.3.50.0050.00714.82
7.3.40.0080.00314.85
7.3.30.0070.00814.82
7.3.20.0030.01316.86
7.3.10.0070.00516.73
7.3.00.0040.00916.64
7.2.330.0150.00316.62
7.2.320.0120.01116.60
7.2.310.0100.00716.55
7.2.300.0120.00416.44
7.2.290.0070.01416.59
7.2.260.0050.01215.01
7.2.250.0080.01115.02
7.2.240.0060.00814.96
7.2.230.0030.01514.97
7.2.220.0070.00914.97
7.2.210.0050.00715.04
7.2.200.0030.01115.03
7.2.190.0060.00714.94
7.2.180.0030.01215.02
7.2.170.0090.00614.87
7.2.160.0020.01014.77
7.2.150.0020.01116.87
7.2.140.0060.00716.95
7.2.130.0060.00716.78
7.2.120.0060.00616.84
7.2.110.0100.00316.71
7.2.100.0090.00416.92
7.2.90.0050.00817.01
7.2.80.0090.00316.85
7.2.70.0080.00616.79
7.2.60.0040.00916.91
7.2.50.0060.00616.90
7.2.40.0050.00616.87
7.2.30.0040.00716.87
7.2.20.0080.00516.96
7.2.10.0070.00616.75
7.2.00.0040.00817.43
7.1.330.0090.00615.98
7.1.320.0100.00315.98
7.1.310.0100.00615.90
7.1.300.0030.01115.84
7.1.290.0070.00515.92
7.1.280.0080.00615.86
7.1.270.0060.00915.75
7.1.260.0070.00615.71
7.1.250.0070.00415.90
7.1.240.0030.00915.83
7.1.230.0020.00815.83
7.1.220.0040.00715.82
7.1.210.0030.01015.94
7.1.200.0050.00715.75
7.1.190.0050.00515.94
7.1.180.0040.00715.88
7.1.170.0060.00815.89
7.1.160.0040.00715.86
7.1.150.0060.00615.84
7.1.140.0120.00015.81
7.1.130.0020.00915.90
7.1.120.0050.00815.82
7.1.110.0070.00615.72
7.1.100.0030.00816.46
7.1.90.0060.00615.85
7.1.80.0030.00915.85
7.1.70.0060.00616.13
7.1.60.0050.00816.64
7.1.50.0030.01316.11
7.1.40.0010.01015.77
7.1.30.0040.00815.58
7.1.20.0050.00815.86
7.1.10.0030.01215.87
7.1.00.0050.02517.39
7.0.330.0010.01115.29
7.0.320.0020.01015.37
7.0.310.0020.00915.26
7.0.300.0060.00415.36
7.0.290.0050.00615.55
7.0.280.0050.00715.54
7.0.270.0060.00815.29
7.0.260.0050.00615.45
7.0.250.0040.00615.56
7.0.240.0050.00615.44
7.0.230.0060.00615.46
7.0.220.0070.00715.66
7.0.210.0040.00915.43
7.0.200.0050.00615.74
7.0.190.0050.00715.40
7.0.180.0070.00715.52
7.0.170.0050.00815.40
7.0.160.0070.00715.49
7.0.150.0080.00415.55
7.0.140.0080.02217.25
7.0.130.0070.00715.51
7.0.120.0050.00715.35
7.0.110.0030.00715.50
7.0.100.0070.00315.37
7.0.90.0030.00715.57
7.0.80.0050.00615.59
7.0.70.0070.02417.13
7.0.60.0050.02217.00
7.0.50.0050.02517.28
7.0.40.0080.02415.16
7.0.30.0070.02815.28
7.0.20.0020.02815.14
7.0.10.0040.02415.19
7.0.00.0060.02715.22
5.6.400.0050.00714.09
5.6.390.0030.00814.16
5.6.380.0060.00914.04
5.6.370.0070.00414.24
5.6.360.0060.00614.24
5.6.350.0040.00614.15
5.6.340.0090.00514.32
5.6.330.0030.00914.30
5.6.320.0100.00214.08
5.6.310.0060.00714.28
5.6.300.0070.00713.95
5.6.290.0080.00714.45
5.6.280.0090.02115.96
5.6.270.0050.00714.20
5.6.260.0060.00514.35
5.6.250.0060.00614.19
5.6.240.0070.00714.27
5.6.230.0050.00714.31
5.6.220.0060.02415.91
5.6.210.0090.02215.66
5.6.200.0040.02916.00
5.6.190.0030.03115.99
5.6.180.0050.02815.88
5.6.170.0080.02415.95
5.6.160.0080.02415.85
5.6.150.0040.03015.92
5.6.140.0050.02515.87
5.6.130.0060.02116.08
5.6.120.0060.02515.85
5.6.110.0060.02915.93
5.6.100.0080.02415.95
5.6.90.0060.02216.01
5.6.80.0070.02415.76
5.6.70.0050.02015.80
5.6.60.0070.02415.73
5.6.50.0070.01715.74
5.6.40.0080.02315.66
5.6.30.0110.01815.71
5.6.20.0040.02615.67
5.6.10.0080.02215.62
5.6.00.0080.02215.68
5.5.380.0090.00413.12
5.5.370.0030.00912.92
5.5.360.0060.02514.88
5.5.350.0040.02514.77
5.5.340.0050.02214.98
5.5.330.0070.02315.05
5.5.320.0050.02514.92
5.5.310.0060.02015.06
5.5.300.0070.02315.03
5.5.290.0020.02814.95
5.5.280.0040.02415.01
5.5.270.0050.02814.99
5.5.260.0030.02715.02
5.5.250.0060.02114.94
5.5.240.0090.02014.73
5.5.230.0060.02214.80
5.5.220.0060.02414.86
5.5.210.0050.02314.78
5.5.200.0070.02314.92
5.5.190.0040.02514.84
5.5.180.0040.02114.76
5.5.170.0030.00812.86
5.5.160.0030.01914.76
5.5.150.0060.02414.90
5.5.140.0030.02514.86
5.5.130.0050.02414.83
5.5.120.0040.02114.69
5.5.110.0030.02414.77
5.5.100.0050.01714.72
5.5.90.0030.01814.76
5.5.80.0030.02514.66
5.5.70.0070.02414.70
5.5.60.0050.02614.70
5.5.50.0030.02014.60
5.5.40.0040.02514.82
5.5.30.0060.02114.80
5.5.20.0060.02314.61
5.5.10.0040.02314.74
5.5.00.0060.02314.71
5.4.450.0060.02013.69
5.4.440.0040.02213.71
5.4.430.0040.02513.56
5.4.420.0050.02213.64
5.4.410.0050.02413.57
5.4.400.0060.02113.51
5.4.390.0060.02213.54
5.4.380.0040.02213.58
5.4.370.0030.02313.48
5.4.360.0020.02313.44
5.4.350.0070.02213.52
5.4.340.0070.02313.45
5.4.330.0060.00311.64
5.4.320.0050.02213.61
5.4.310.0070.02213.44
5.4.300.0020.02213.41
5.4.290.0060.02213.41
5.4.280.0060.02013.46
5.4.270.0020.02313.45
5.4.260.0040.02113.38
5.4.250.0040.01513.37
5.4.240.0070.02113.51
5.4.230.0020.02313.43
5.4.220.0040.02013.54
5.4.210.0050.02413.50
5.4.200.0040.01713.51
5.4.190.0050.02113.48
5.4.180.0010.02413.49
5.4.170.0060.02213.45
5.4.160.0030.02613.54
5.4.150.0050.01713.48
5.4.140.0050.01712.79
5.4.130.0040.01312.80
5.4.120.0060.02112.75
5.4.110.0040.02212.92
5.4.100.0050.02112.96
5.4.90.0020.01712.79
5.4.80.0020.02412.74
5.4.70.0050.01212.86
5.4.60.0030.01512.74
5.4.50.0070.01912.87
5.4.40.0060.02212.77
5.4.30.0030.02012.76
5.4.20.0070.02112.87
5.4.10.0020.02312.83
5.4.00.0050.02012.66
5.3.290.0030.02312.18
5.3.280.0030.02312.15
5.3.270.0050.01712.19
5.3.260.0060.01912.13
5.3.250.0030.02012.17
5.3.240.0040.01912.09
5.3.230.0020.02512.12
5.3.220.0050.02212.18
5.3.210.0050.02312.08
5.3.200.0030.02212.13
5.3.190.0040.01612.16
5.3.180.0020.02112.18
5.3.170.0020.01512.18
5.3.160.0060.01412.10
5.3.150.0060.01812.15
5.3.140.0060.02312.16
5.3.130.0040.02012.15
5.3.120.0030.02412.09
5.3.110.0050.01812.12
5.3.100.0070.02011.93
5.3.90.0040.02212.00
5.3.80.0050.02111.95
5.3.70.0040.02011.91
5.3.60.0050.02111.99
5.3.50.0050.02211.88
5.3.40.0020.02611.87
5.3.30.0030.02411.89
5.3.20.0030.02111.78
5.3.10.0020.01911.84
5.3.00.0030.02011.79
5.2.170.0000.03610.82
5.2.160.0010.03310.82
5.2.150.0070.03110.82
5.2.140.0060.02810.82
5.2.130.0030.03210.82
5.2.120.0030.03110.82
5.2.110.0050.02510.82
5.2.100.0050.02810.82
5.2.90.0030.03110.82
5.2.80.0050.03410.82
5.2.70.0050.03310.82
5.2.60.0030.03010.82
5.2.50.0020.03110.82
5.2.40.0030.03510.82
5.2.30.0020.03110.82
5.2.20.0040.03010.82
5.2.10.0030.02810.82
5.2.00.0050.03010.82
5.1.60.0030.03010.82
5.1.50.0030.02810.82
5.1.40.0060.02310.82
5.1.30.0030.03110.82
5.1.20.0010.03110.82
5.1.10.0000.02710.82
5.1.00.0020.03210.82
5.0.50.0000.02510.82
5.0.40.0040.02410.82
5.0.30.0040.03210.82
5.0.20.0020.02210.82
5.0.10.0000.02610.82
5.0.00.0020.03210.82
4.4.90.0010.02110.82
4.4.80.0050.01510.82
4.4.70.0030.01910.82
4.4.60.0000.02010.82
4.4.50.0050.01710.82
4.4.40.0020.02510.82
4.4.30.0020.01810.82
4.4.20.0020.02010.82
4.4.10.0030.01710.82
4.4.00.0000.02910.82
4.3.110.0020.01810.82
4.3.100.0000.02010.82
4.3.90.0000.02210.82
4.3.80.0040.02610.82
4.3.70.0000.01810.82
4.3.60.0040.01710.82
4.3.50.0050.01810.82
4.3.40.0020.02910.82
4.3.30.0030.01710.82
4.3.20.0030.01710.82
4.3.10.0000.01610.82
4.3.00.0000.01210.82

preferences:
44.99 ms | 401 KiB | 5 Q