3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( '+380671072122','+3 80671072122','+3 8 067 107 21 22','+38(067)1072122','+38 (067) 107 21 22','+3 8067 107-21-22','067 107 21 22','067-107-21-22','+380 67 1072122' ); foreach($test as $t){ preg_match('/^(\+?\d{1})?\s*(\(\d+\))?[\s-]*([\d-]*)$/', $t, $number[0]); preg_match('/^(\+)?(\d{1,3})?\s*(\d{1,2})/', $t, $number[1]); print_r($number); }

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.0120.00318.56
8.3.50.0130.00522.13
8.3.40.0070.00718.96
8.3.30.0110.00418.99
8.3.20.0040.00420.39
8.3.10.0040.00422.04
8.3.00.0040.00422.52
8.2.180.0120.00616.88
8.2.170.0070.00722.96
8.2.160.0120.00321.24
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.73
8.2.110.0060.00322.37
8.2.100.0040.00817.91
8.2.90.0000.00719.17
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00818.09
8.2.30.0090.00017.98
8.2.20.0000.00817.87
8.2.10.0070.00017.79
8.2.00.0040.00417.85
8.1.280.0150.00425.92
8.1.270.0050.00323.82
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0060.00323.71
8.1.230.0050.00519.08
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0000.00817.43
8.1.180.0030.00618.10
8.1.170.0030.00618.71
8.1.160.0040.00422.10
8.1.150.0070.00018.80
8.1.140.0000.00817.52
8.1.130.0000.00717.86
8.1.120.0000.00717.65
8.1.110.0000.00817.58
8.1.100.0040.00717.67
8.1.90.0000.00817.52
8.1.80.0050.00217.57
8.1.70.0000.00717.61
8.1.60.0060.00317.80
8.1.50.0000.00817.73
8.1.40.0000.00817.62
8.1.30.0060.00317.83
8.1.20.0030.00517.81
8.1.10.0030.00517.74
8.1.00.0040.00417.62
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0030.00318.38
8.0.270.0000.00717.03
8.0.260.0050.00516.99
8.0.250.0030.00317.02
8.0.240.0030.00316.98
8.0.230.0000.00817.11
8.0.220.0070.00016.96
8.0.210.0000.00717.05
8.0.200.0030.00317.06
8.0.190.0040.00417.09
8.0.180.0040.00416.97
8.0.170.0040.00417.14
8.0.160.0070.00017.05
8.0.150.0040.00417.07
8.0.140.0030.00316.95
8.0.130.0060.00013.41
8.0.120.0040.00417.05
8.0.110.0040.00417.02
8.0.100.0000.00716.91
8.0.90.0000.00717.08
8.0.80.0040.01216.93
8.0.70.0040.00416.93
8.0.60.0070.00016.91
8.0.50.0050.00317.04
8.0.30.0090.01017.41
8.0.20.0130.00617.54
8.0.10.0040.00417.16
8.0.00.0140.01316.95
7.4.330.0030.00315.22
7.4.320.0000.00616.62
7.4.300.0040.00416.82
7.4.290.0070.00316.83
7.4.280.0040.00416.74
7.4.270.0030.00316.87
7.4.260.0000.00816.81
7.4.250.0000.00816.79
7.4.240.0060.00216.77
7.4.230.0000.00716.73
7.4.220.0060.01216.72
7.4.210.0100.00816.83
7.4.200.0050.00316.66
7.4.190.0020.00516.82
7.4.160.0080.00816.67
7.4.150.0040.01517.40
7.4.140.0100.00817.86
7.4.130.0100.00716.71
7.4.120.0090.01016.64
7.4.110.0110.00616.85
7.4.100.0100.01016.65
7.4.90.0120.01216.86
7.4.80.0080.01616.91
7.4.70.0070.01016.79
7.4.60.0000.01516.77
7.4.50.0050.00416.74
7.4.40.0030.01222.77
7.4.30.0130.00316.81
7.4.00.0050.00815.16
7.3.330.0000.00613.32
7.3.320.0000.00513.27
7.3.310.0030.00316.47
7.3.300.0040.00416.47
7.3.290.0080.00816.44
7.3.280.0100.00616.45
7.3.270.0160.00317.40
7.3.260.0120.00616.48
7.3.250.0150.00616.52
7.3.240.0120.00916.72
7.3.230.0120.00416.67
7.3.210.0090.00916.67
7.3.200.0110.01119.39
7.3.190.0110.00616.80
7.3.180.0120.00616.43
7.3.170.0100.01016.62
7.3.160.0030.01316.68
7.3.120.0060.01015.12
7.3.110.0040.01415.02
7.3.100.0090.00615.01
7.3.90.0090.00615.19
7.3.80.0060.00314.94
7.3.70.0090.00015.04
7.3.60.0000.01615.10
7.3.50.0090.00614.81
7.3.40.0090.00614.84
7.3.30.0090.00615.11
7.3.20.0070.00316.92
7.3.10.0080.00416.70
7.3.00.0060.00316.63
7.2.330.0060.01216.72
7.2.320.0110.01416.66
7.2.310.0120.00416.76
7.2.300.0060.00916.81
7.2.290.0070.01016.65
7.2.250.0090.00915.43
7.2.240.0120.00315.04
7.2.230.0040.00715.03
7.2.220.0060.00615.30
7.2.210.0040.00815.26
7.2.200.0060.00615.39
7.2.190.0110.00815.11
7.2.180.0030.01314.98
7.2.170.0110.00414.75
7.1.330.0030.01016.21
7.1.320.0070.00315.88
7.1.310.0060.00315.91
7.1.300.0110.00715.91
7.1.290.0040.00715.89
7.1.280.0000.01315.81
7.1.270.0060.00916.01
7.1.260.0030.01016.01
7.1.70.0030.01217.34
7.1.60.0090.01519.82
7.1.50.0100.01316.83
7.1.00.0070.07322.47
7.0.200.0040.00417.08
7.0.140.0070.07322.18
7.0.60.0130.07019.94
7.0.50.0100.07717.91
7.0.40.0030.07320.25
7.0.30.0430.07020.32
7.0.20.0270.08720.09
7.0.10.0200.08320.17
7.0.00.0200.07320.29
5.6.280.0030.07720.81
5.6.210.0070.07020.74
5.6.200.0030.05018.28
5.6.190.0030.05720.52
5.6.180.3470.03720.39
5.6.170.0430.06720.56
5.6.160.0100.08020.45
5.6.150.0070.03718.21
5.6.140.0070.03718.14
5.6.130.0070.08718.13
5.6.120.0100.04021.03
5.6.110.0070.04321.14
5.6.100.0030.05321.08
5.6.90.0100.07721.08
5.6.80.0000.04320.37
5.6.70.4300.04320.36
5.5.350.0030.07020.49
5.5.340.0170.07017.95
5.5.330.0030.05720.42
5.5.320.0300.04320.36
5.5.310.0270.03320.36
5.5.300.0130.06018.00
5.5.290.0030.07317.94
5.5.280.0030.06020.96
5.5.270.0030.06720.87
5.5.260.0130.06020.88
5.5.250.0100.07320.66
5.5.240.0100.07320.04
5.4.450.0670.04319.39
5.4.440.0270.04719.16
5.4.430.0800.04019.48
5.4.420.0470.04019.32
5.4.410.0130.05318.99
5.4.400.0230.04018.52
5.4.390.0170.05718.78
5.4.380.0300.04018.72
5.4.370.0200.05018.84
5.4.360.0300.05718.75
5.4.350.0330.04718.63
5.4.340.0230.06018.50
5.4.320.0140.03212.49
5.4.310.0080.04012.48
5.4.300.0100.04312.48
5.4.290.0070.05012.48
5.4.280.0110.03712.36
5.4.270.0070.03912.36
5.4.260.0070.03912.36
5.4.250.0090.03712.36
5.4.240.0110.03512.36
5.4.230.0060.04212.36
5.4.220.0070.03712.35
5.4.210.0060.03912.36
5.4.200.0120.03412.35
5.4.190.0090.03612.35
5.4.180.0060.03912.35
5.4.170.0060.03912.36
5.4.160.0120.03212.36
5.4.150.0090.03712.36
5.4.140.0090.03612.04
5.4.130.0090.03412.03
5.4.120.0100.03511.98
5.4.110.0080.03511.98
5.4.100.0100.03511.98
5.4.90.0090.04711.98
5.4.80.0120.03411.98
5.4.70.0100.03211.97
5.4.60.0080.03511.98
5.4.50.0100.03211.97
5.4.40.0090.04611.96
5.4.30.0090.03511.96
5.4.20.0090.03611.96
5.4.10.0050.04111.96
5.4.00.0100.03511.45
5.3.290.0030.04312.80
5.3.280.0100.04012.71
5.3.270.0110.03612.72
5.3.260.0090.05312.72
5.3.250.0100.03712.72
5.3.240.0060.04012.72
5.3.230.0100.03712.71
5.3.220.0130.03612.68
5.3.210.0100.03812.68
5.3.200.0100.03612.68
5.3.190.0120.03512.68
5.3.180.0090.03512.68
5.3.170.0080.03712.67
5.3.160.0090.03612.68
5.3.150.0080.03712.67
5.3.140.0090.03612.66
5.3.130.0120.04412.66
5.3.120.0050.04212.66
5.3.110.0100.03712.66
5.3.100.0080.03712.12
5.3.90.0110.03412.08
5.3.80.0090.03612.07
5.3.70.0110.03412.07
5.3.60.0050.03912.06
5.3.50.0120.03312.00
5.3.40.0100.04712.00
5.3.30.0070.04411.96
5.3.20.0060.03911.74
5.3.10.0050.03611.71
5.3.00.0070.03911.70
5.2.170.0070.0409.20
5.2.160.0050.0319.19
5.2.150.0100.0289.20
5.2.140.0120.0269.19
5.2.130.0080.0319.15
5.2.120.0040.0329.15
5.2.110.0070.0299.16
5.2.100.0100.0319.16
5.2.90.0050.0329.15
5.2.80.0050.0379.15
5.2.70.0100.0309.14
5.2.60.0080.0319.11
5.2.50.0080.0439.07
5.2.40.0030.0349.05
5.2.30.0050.0339.03
5.2.20.0030.0329.02
5.2.10.0060.0318.93
5.2.00.0100.0348.79
5.1.60.0060.0278.07
5.1.50.0080.0248.07
5.1.40.0110.0308.04
5.1.30.0090.0338.39
5.1.20.0080.0288.41
5.1.10.0080.0268.14
5.1.00.0090.0278.15
5.0.50.0050.0226.62
5.0.40.0090.0186.48
5.0.30.0050.0346.29
5.0.20.0070.0196.26
5.0.10.0060.0216.24
5.0.00.0070.0316.23
4.4.90.0040.0184.77
4.4.80.0070.0144.76
4.4.70.0080.0154.76
4.4.60.0050.0164.75
4.4.50.0040.0174.77
4.4.40.0060.0254.71
4.4.30.0070.0174.76
4.4.20.0050.0214.84
4.4.10.0060.0164.85
4.4.00.0070.0244.76
4.3.110.0070.0164.67
4.3.100.0060.0154.67
4.3.90.0040.0184.63
4.3.80.0090.0334.58
4.3.70.0070.0234.63
4.3.60.0060.0214.63
4.3.50.0060.0164.63
4.3.40.0060.0244.54
4.3.30.0030.0183.29
4.3.20.0030.0193.27
4.3.10.0070.0143.23
4.3.00.0030.01313.57

preferences:
56.2 ms | 404 KiB | 6 Q