3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '~(?:(?:(?:\+|00)32\h?(?:\(0\)\h?)?|0)(?:4(?:60|[789]\d)/?(?:\h?\d{2}\.?){2}\h?\d{2}|(?:\d/?\h?\d{3}|\d{2}[/-]?\h?\d{2})(?:\.?\h?\d{2}){2}))(?!\S)~'; $str = 'OK 01/07 - 31/07 OK 0487207339 OK +32487207339 OK 01.07.2016 OK +32 (0)16 89 44 77 OK 016894477 OK 003216894477 OK +3216894477 OK 016/89.44.77 OK +32 16894477 OK 0032 16894477 OK +32 16/894477 NOK +32 16-894477 (this should match) OK 0479/878810 NOK 20150211-0001731015-1 (this shouldn\'t match)'; preg_match_all($re, $str, $matches); print_r($matches[0]);

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.4.140.0120.01017.77
8.4.130.0100.00817.86
8.4.120.0140.00622.20
8.4.110.0150.00420.59
8.4.100.0030.00718.76
8.4.90.0150.00618.82
8.4.80.0070.00718.82
8.4.70.0120.00818.25
8.4.60.0090.01218.91
8.4.50.0130.00819.60
8.4.40.0000.00817.93
8.4.30.0100.00018.63
8.4.20.0060.00320.01
8.4.10.0130.00618.82
8.3.270.0110.00816.81
8.3.260.0140.00716.62
8.3.250.0100.00918.87
8.3.240.0130.00616.76
8.3.230.0090.01016.79
8.3.220.0110.00618.65
8.3.210.0090.00618.71
8.3.200.0020.00616.83
8.3.190.0110.00818.75
8.3.180.0100.01018.83
8.3.170.0100.01017.21
8.3.160.0100.00018.71
8.3.150.0160.00319.20
8.3.140.0080.00020.59
8.3.130.0090.00916.71
8.3.120.0040.00720.50
8.3.110.0030.00616.96
8.3.100.0080.00018.66
8.3.90.0150.00326.77
8.3.80.0060.00317.00
8.3.70.0110.01116.58
8.3.60.0070.00716.50
8.3.50.0140.00318.09
8.3.40.0070.00720.16
8.3.30.0160.00619.04
8.3.20.0060.01224.18
8.3.10.0080.00024.66
8.3.00.0150.00326.16
8.2.290.0090.01020.42
8.2.280.0060.00218.84
8.2.270.0120.00619.10
8.2.260.0110.00716.67
8.2.250.0050.00518.81
8.2.240.0000.01618.47
8.2.230.0080.00020.94
8.2.220.0060.00324.06
8.2.210.0110.00726.77
8.2.200.0000.00917.00
8.2.190.0090.00916.75
8.2.180.0120.00625.92
8.2.170.0040.01119.14
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0030.00521.02
8.2.110.0110.00021.30
8.2.100.0040.00817.97
8.2.90.0030.00518.22
8.2.80.0000.00819.11
8.2.70.0000.01017.75
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0030.00620.13
8.2.30.0050.00218.14
8.2.20.0000.00819.38
8.2.10.0040.00419.03
8.2.00.0040.00419.37
8.1.330.0130.00421.85
8.1.320.0160.00316.21
8.1.310.0030.01018.48
8.1.300.0080.00016.65
8.1.290.0100.00030.84
8.1.280.0120.00925.92
8.1.270.0070.01124.00
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00422.14
8.1.230.0040.00720.95
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00917.48
8.1.180.0000.00918.10
8.1.170.0040.00418.67
8.1.160.0080.00018.98
8.1.150.0070.00018.77
8.1.140.0060.00317.55
8.1.130.0030.00518.93
8.1.120.0040.00417.46
8.1.110.0040.00417.58
8.1.100.0000.00717.58
8.1.90.0040.00417.46
8.1.80.0000.00717.47
8.1.70.0070.00017.58
8.1.60.0060.00317.63
8.1.50.0000.00817.60
8.1.40.0050.00317.64
8.1.30.0030.00617.64
8.1.20.0000.00817.69
8.1.10.0030.00517.62
8.1.00.0080.00017.57
8.0.300.0000.00720.29
8.0.290.0060.00316.63
8.0.280.0000.00818.48
8.0.270.0070.00018.07
8.0.260.0080.00018.33
8.0.250.0030.00316.98
8.0.240.0080.00017.03
8.0.230.0070.00017.02
8.0.220.0040.00417.05
8.0.210.0030.00316.93
8.0.200.0030.00316.94
8.0.190.0030.00516.95
8.0.180.0080.00316.97
8.0.170.0060.00317.01
8.0.160.0030.00616.84
8.0.150.0060.00316.83
8.0.140.0070.00016.87
8.0.130.0030.00313.39
8.0.120.0000.00817.06
8.0.110.0060.00316.97
8.0.100.0050.00517.09
8.0.90.0030.00717.01
8.0.80.0000.01016.88
8.0.70.0000.00917.10
8.0.60.0030.00616.97
8.0.50.0030.00617.06
8.0.30.0030.00616.95
8.0.20.0030.00617.13
8.0.10.0030.00617.09
8.0.00.0040.00417.16
7.4.330.0000.00615.55
7.4.320.0000.00616.85
7.4.300.0060.00016.86
7.4.290.0000.00816.64
7.4.280.0050.00316.63
7.4.270.0000.00716.72
7.4.260.0060.00013.50
7.4.250.0050.00216.70
7.4.240.0050.00316.82
7.4.230.0000.00916.83
7.4.220.0030.00616.83
7.4.210.0060.00316.82
7.4.200.0060.00316.77
7.4.190.0040.00416.66
7.4.180.0000.00816.75
7.4.160.0000.00816.76
7.4.150.0000.00816.57
7.4.140.0000.00816.75
7.4.130.0060.00316.71
7.4.120.0050.00216.77
7.4.110.0000.00916.72
7.4.100.0030.00616.73
7.4.90.0040.00416.59
7.4.80.0000.00816.64
7.4.70.0000.01016.57
7.4.60.0000.00816.73
7.4.50.0030.00616.55
7.4.40.0030.00616.54
7.4.30.0000.00916.76
7.4.20.0000.00716.67
7.4.10.0050.00316.57
7.4.00.0090.00016.60
7.3.330.0040.00416.28
7.3.320.0050.00013.16
7.3.310.0040.00416.23
7.3.300.0000.00816.33
7.3.290.0000.00816.22
7.3.280.0030.00616.21
7.3.270.0060.00316.25
7.3.260.0030.00616.25
7.3.250.0000.00816.31
7.3.240.0080.00016.23
7.3.230.0030.00616.47
7.3.220.0050.00316.25
7.3.210.0040.00416.43
7.3.200.0040.00416.38
7.3.190.0040.00416.24
7.3.180.0040.00416.24
7.3.170.0060.00316.45
7.3.160.0040.00416.26
7.3.150.0000.00916.45
7.3.140.0090.00016.11
7.3.130.0060.00316.31
7.3.120.0040.00516.38
7.3.110.0000.00916.34
7.3.100.0060.00316.21
7.3.90.0050.00316.64
7.3.80.0030.00516.42
7.3.70.0000.00816.30
7.3.60.0040.00416.36
7.3.50.0060.00316.51
7.3.40.0030.00616.30
7.3.30.0060.00316.47
7.3.20.0000.00918.17
7.3.10.0090.00018.02
7.3.00.0030.00618.20

preferences:
30.69 ms | 403 KiB | 5 Q