3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sub = array( '+7 812-703-10-00', '8-812-346-60-01', '+7(495)785-98-42', '(499) 725 77 88', '8 (495) 663-61-00', '(812) 448-54-18', '8916-318-36-36', '540-69-05' ); foreach($sub as $s){ preg_match('/^(\+?\d+)?\s*(\(\d+\))?[\s-]*([\d-]*)$/', $s, $res); print_r($res); }

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.0150.00618.68
8.3.50.0100.00921.20
8.3.40.0060.00918.67
8.3.30.0040.01118.92
8.3.20.0050.00320.34
8.3.10.0000.00822.09
8.3.00.0030.00522.33
8.2.180.0120.00316.50
8.2.170.0070.00722.96
8.2.160.0100.00319.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00926.16
8.2.120.0050.00319.79
8.2.110.0090.00020.43
8.2.100.0090.00319.95
8.2.90.0040.00419.05
8.2.80.0000.00818.03
8.2.70.0050.00317.63
8.2.60.0060.00317.91
8.2.50.0070.00218.07
8.2.40.0040.00418.03
8.2.30.0070.00017.98
8.2.20.0070.00017.70
8.2.10.0040.00417.84
8.2.00.0090.00017.89
8.1.280.0070.00725.92
8.1.270.0040.00418.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0090.00318.93
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00717.48
8.1.190.0040.00417.41
8.1.180.0020.00518.61
8.1.170.0030.00518.65
8.1.160.0000.00722.17
8.1.150.0040.00418.80
8.1.140.0040.00417.48
8.1.130.0030.00617.86
8.1.120.0000.00817.65
8.1.110.0060.00317.56
8.1.100.0000.00717.49
8.1.90.0070.00017.52
8.1.80.0050.00317.58
8.1.70.0030.00317.57
8.1.60.0040.00417.77
8.1.50.0030.00517.71
8.1.40.0030.00617.66
8.1.30.0000.00717.68
8.1.20.0030.00517.79
8.1.10.0080.00417.68
8.1.00.0040.00417.50
8.0.300.0000.00818.77
8.0.290.0050.00217.16
8.0.280.0030.00318.40
8.0.270.0030.00317.28
8.0.260.0000.00717.02
8.0.250.0000.00717.13
8.0.240.0050.00517.13
8.0.230.0050.00317.04
8.0.220.0030.00317.02
8.0.210.0070.00017.09
8.0.200.0030.00317.06
8.0.190.0040.00417.00
8.0.180.0000.00717.05
8.0.170.0040.00417.11
8.0.160.0030.00617.00
8.0.150.0000.00716.90
8.0.140.0000.00816.97
8.0.130.0000.00613.56
8.0.120.0040.00416.98
8.0.110.0000.00817.02
8.0.100.0040.00417.07
8.0.90.0040.00416.86
8.0.80.0030.01417.09
8.0.70.0070.00016.94
8.0.60.0040.00416.95
8.0.50.0030.00516.93
8.0.30.0110.00717.27
8.0.20.0090.01117.40
8.0.10.0000.00717.23
8.0.00.0150.00816.90
7.4.330.0030.00315.00
7.4.320.0030.00316.64
7.4.300.0000.00616.79
7.4.290.0070.00016.80
7.4.280.0050.00516.69
7.4.270.0000.00616.77
7.4.260.0050.00316.77
7.4.250.0070.00016.75
7.4.240.0000.00716.70
7.4.230.0000.00716.84
7.4.220.0050.01116.78
7.4.210.0040.01016.72
7.4.200.0000.00816.76
7.4.190.0040.00416.79
7.4.160.0040.01516.66
7.4.150.0150.00317.40
7.4.140.0120.00717.86
7.4.130.0100.00816.65
7.4.120.0090.00816.70
7.4.110.0090.00916.75
7.4.100.0230.00016.50
7.4.90.0120.00616.68
7.4.80.0050.01619.39
7.4.70.0100.00716.48
7.4.60.0110.00916.52
7.4.50.0040.00016.74
7.4.40.0060.00622.77
7.4.30.0070.01016.67
7.4.00.0070.00914.95
7.3.330.0050.00013.25
7.3.320.0000.00513.18
7.3.310.0080.00016.31
7.3.300.0060.00016.46
7.3.290.0040.01116.46
7.3.280.0080.00916.39
7.3.270.0090.00917.40
7.3.260.0120.00416.45
7.3.250.0070.01016.57
7.3.240.0040.02116.70
7.3.230.0060.01116.42
7.3.210.0150.00316.88
7.3.200.0040.01219.39
7.3.190.0090.00916.66
7.3.180.0110.00416.39
7.3.170.0120.00416.41
7.3.160.0000.01616.64
7.3.120.0050.01314.98
7.3.110.0090.00914.62
7.3.100.0070.01114.83
7.3.90.0110.00415.08
7.3.80.0120.00315.20
7.3.70.0070.01014.77
7.3.60.0090.00615.05
7.3.50.0030.01014.69
7.3.40.0070.01014.82
7.3.30.0060.01114.93
7.3.20.0000.01816.75
7.3.10.0120.00516.65
7.3.00.0070.01016.59
7.2.330.0080.00916.77
7.2.320.0120.00616.59
7.2.310.0040.01316.60
7.2.300.0100.00716.77
7.2.290.0130.00916.79
7.2.250.0130.00315.18
7.2.240.0100.00715.35
7.2.230.0040.01114.84
7.2.220.0070.00315.13
7.2.210.0060.00615.15
7.2.200.0030.01015.10
7.2.190.0070.00715.09
7.2.180.0030.00815.30
7.2.170.0030.00915.29
7.2.130.0150.00616.78
7.2.120.0110.00616.84
7.2.110.0120.00716.79
7.2.100.0140.00616.70
7.2.90.0110.01116.91
7.2.80.0140.00716.79
7.2.70.0080.01216.93
7.2.60.0100.00916.92
7.2.50.0080.01016.91
7.2.40.0110.00916.87
7.2.30.0080.00916.99
7.2.20.0110.00916.91
7.2.10.0160.00516.90
7.2.00.0070.01017.95
7.1.330.0000.01516.04
7.1.320.0030.00916.13
7.1.310.0100.00315.98
7.1.300.0130.00315.93
7.1.290.0050.00515.94
7.1.280.0070.00715.82
7.1.270.0040.01415.94
7.1.260.0060.01116.14
7.1.250.0130.00815.72
7.1.200.0070.00715.98
7.1.100.0030.00618.16
7.1.70.0000.00717.34
7.1.60.0100.01619.82
7.1.50.0040.00717.19
7.1.00.0100.05322.56
7.0.200.0090.00316.91
7.0.140.0030.07722.12
7.0.60.0100.05319.79
7.0.50.0130.03317.99
7.0.40.0170.07720.29
7.0.30.0300.07720.26
7.0.20.0270.05020.08
7.0.10.0400.05720.08
7.0.00.0170.06020.11
5.6.280.0030.07321.09
5.6.210.0070.04320.73
5.6.200.0100.06018.16
5.6.190.0030.04320.33
5.6.180.3430.04320.63
5.6.170.0300.07720.51
5.6.160.0030.07320.52
5.6.150.0000.04018.21
5.6.140.0070.05718.18
5.6.130.0070.08018.22
5.6.120.0030.09020.98
5.6.110.0100.06321.04
5.6.100.0070.08720.98
5.6.90.0130.08321.07
5.6.80.0000.05320.37
5.6.70.0100.05020.37
5.5.350.0170.08720.43
5.5.340.0100.05717.93
5.5.330.0000.09320.42
5.5.320.0230.07020.21
5.5.310.0230.05720.43
5.5.300.0030.04017.98
5.5.290.0070.03717.97
5.5.280.0070.07720.73
5.5.270.0170.07320.67
5.5.260.0000.04720.79
5.5.250.0030.04020.79
5.5.240.0130.06020.36
5.4.450.0700.06019.61
5.4.440.0700.06319.58
5.4.430.0770.05019.30
5.4.420.0700.06319.30
5.4.410.0100.05319.57
5.4.400.0570.06018.74
5.4.390.0300.05318.46
5.4.380.0300.05018.55
5.4.370.0100.05718.46
5.4.360.0170.04718.46
5.4.350.0120.05912.00
5.4.340.0080.03912.00
5.4.320.0010.04212.48
5.4.310.0020.04412.48
5.4.300.0070.03812.48
5.4.290.0060.04312.48
5.4.280.0120.04812.36
5.4.270.0130.05012.36
5.4.260.0090.03812.36
5.4.250.0040.04212.36
5.4.240.0100.04812.36
5.4.230.0070.03712.36
5.4.220.0060.03612.36
5.4.210.0140.03912.35
5.4.200.0100.04212.35
5.4.190.0080.04312.35
5.4.180.0050.03812.35
5.4.170.0050.03712.36
5.4.160.0030.03912.36
5.4.150.0070.03512.35
5.4.140.0080.03512.04
5.4.130.0120.04112.03
5.4.120.0060.03611.99
5.4.110.0090.03311.98
5.4.100.0050.03711.98
5.4.90.0090.04011.98
5.4.80.0110.04911.98
5.4.70.0080.04111.98
5.4.60.0110.04611.98
5.4.50.0070.04111.97
5.4.40.0100.04211.96
5.4.30.0040.03811.96
5.4.20.0070.03511.96
5.4.10.0060.03711.96
5.4.00.0040.03911.45
5.3.290.0070.05412.80
5.3.280.0070.03712.71
5.3.270.0040.04312.72
5.3.260.0070.04012.72
5.3.250.0090.04912.72
5.3.240.0140.04012.72
5.3.230.0090.03912.71
5.3.220.0150.04612.68
5.3.210.0090.05312.68
5.3.200.0070.05312.68
5.3.190.0090.04812.68
5.3.180.0080.03512.67
5.3.170.0040.03912.67
5.3.160.0060.03612.68
5.3.150.0110.03412.67
5.3.140.0070.03812.66
5.3.130.0070.04612.66
5.3.120.0130.03912.66
5.3.110.0070.03912.66
5.3.100.0080.03912.12
5.3.90.0100.05112.08
5.3.80.0100.04712.07
5.3.70.0070.03512.08
5.3.60.0050.03812.06
5.3.50.0070.03612.00
5.3.40.0080.03412.00
5.3.30.0080.03311.96
5.3.20.0080.03611.74
5.3.10.0050.03711.71
5.3.00.0050.04011.70
5.2.170.0060.0309.19
5.2.160.0050.0299.19
5.2.150.0070.0349.18
5.2.140.0050.0349.18
5.2.130.0030.0319.14
5.2.120.0040.0339.14
5.2.110.0040.0349.16
5.2.100.0070.0279.15
5.2.90.0030.0329.15
5.2.80.0070.0289.15
5.2.70.0040.0319.15
5.2.60.0080.0299.10
5.2.50.0080.0279.07
5.2.40.0020.0329.06
5.2.30.0050.0359.04
5.2.20.0040.0309.02
5.2.10.0040.0298.93
5.2.00.0080.0348.78
5.1.60.0070.0298.05
5.1.50.0050.0268.05
5.1.40.0050.0248.04
5.1.30.0030.0288.39
5.1.20.0040.0288.41
5.1.10.0040.0268.14
5.1.00.0060.0248.13
5.0.50.0050.0216.61
5.0.40.0010.0216.47
5.0.30.0050.0306.28
5.0.20.0040.0236.26
5.0.10.0050.0196.23
5.0.00.0040.0306.23
4.4.90.0060.0174.78
4.4.80.0040.0204.75
4.4.70.0050.0174.75
4.4.60.0030.0194.76
4.4.50.0040.0174.77
4.4.40.0030.0264.71
4.4.30.0040.0154.76
4.4.20.0020.0174.84
4.4.10.0020.0174.85
4.4.00.0020.0294.76
4.3.110.0040.0154.67
4.3.100.0050.0134.67
4.3.90.0010.0194.63
4.3.80.0030.0284.59
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0184.62
4.3.40.0020.0254.54
4.3.30.0020.0163.29
4.3.20.0020.0163.27
4.3.10.0030.0153.23
4.3.00.0170.0176.74

preferences:
55.26 ms | 400 KiB | 5 Q