3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = <<<REGEX / (?:\A|\n)\s* # (?:(@[\pL-_\\]+)\ *(\()([?s:^\)]*)(\)))| (?: (?: (?:(@author)\ +([^<]+)(?:(\<)(.+?)(\>))?)| (@api)| (@category\ +([^ ]+))| (@copyright)| (@deprecated)| (@example\ +([^ ]+))| (@filesource)| (@global\ +([^ ]+))| (@ignore)| (@internal)| (@license\ +([^ ]+))| (?:(@link)\ +([^ ]+))| (@method)| (@package\ +([^ ]+))| (@param\ +([^ ]+)\ +([^ ]+))| (@property\ +([^ ]+)\ +([^ ]+))| (@property-read\ +([^ ]+)\ +([^ ]+))| (@property-write\ +([^ ]+)\ +([^ ]+))| (@return\ +([^ ]+))| (?:(@see)\ +([^ ]+))| (@since\ +([^ ]+))| (@source)| (@subpackage\ +([^ ]+))| (@throws\ +([^ ]+))| (@todo)| (@uses\ +([^ ]+))| (@var\ +([^ ]+))| (@version\ +([^ ]+))| (@[\pL-_]+) ) \ + (?s:(.*?)) ) (?=\n\s*@|\Z) /ux REGEX; $comment = <<<COMMENT @ORM\Type(name="") @see MyTag this is a @description that spans multiple lines @internal @author Mike van Riel <me@mikevanriel.com> COMMENT; var_dump(preg_match_all($regex, $comment, $matches, PREG_SET_ORDER)); 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.0110.00318.46
8.3.50.0120.00921.89
8.3.40.0120.00318.76
8.3.30.0120.00418.96
8.3.20.0040.00420.37
8.3.10.0040.00420.65
8.3.00.0040.00417.50
8.2.180.0120.00416.36
8.2.170.0180.00422.96
8.2.160.0070.00720.46
8.2.150.0080.00024.18
8.2.140.0110.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00222.12
8.2.110.0090.00020.43
8.2.100.0090.00318.09
8.2.90.0050.00318.89
8.2.80.0000.00817.97
8.2.70.0000.00817.38
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00717.99
8.2.20.0070.00017.80
8.2.10.0040.00417.95
8.2.00.0000.00817.79
8.1.280.0080.00825.92
8.1.270.0090.00022.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.97
8.1.230.0000.01119.14
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0000.00721.98
8.1.150.0040.00418.86
8.1.140.0000.00717.39
8.1.130.0000.00717.77
8.1.120.0000.00717.33
8.1.110.0030.00617.46
8.1.100.0030.00317.32
8.1.90.0000.00817.44
8.1.80.0070.00017.35
8.1.70.0000.00717.32
8.1.60.0080.00017.49
8.1.50.0040.00417.42
8.1.40.0080.00017.38
8.1.30.0030.00517.57
8.1.20.0050.00217.46
8.1.10.0000.00817.52
8.1.00.0030.00617.48
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.41
8.0.270.0050.00317.14
8.0.260.0030.00317.34
8.0.250.0000.00617.04
8.0.240.0030.00317.05
8.0.230.0000.00716.91
8.0.220.0000.00616.91
8.0.210.0070.00016.79
8.0.200.0060.00016.88
8.0.190.0090.00017.03
8.0.180.0080.00016.84
8.0.170.0030.00616.89
8.0.160.0030.00316.95
8.0.150.0070.00016.95
8.0.140.0090.00016.75
8.0.130.0000.00613.34
8.0.120.0060.00316.89
8.0.110.0050.00216.94
8.0.100.0040.00416.96
8.0.90.0070.00016.92
8.0.80.0090.00916.88
8.0.70.0000.00816.94
8.0.60.0050.00316.89
8.0.50.0040.00417.00
8.0.30.0120.00817.21
8.0.20.0020.01817.40
8.0.10.0040.00417.16
8.0.00.0090.00816.84
7.4.330.0020.00215.09
7.4.320.0060.00016.48
7.4.300.0020.00516.54
7.4.290.0070.00016.63
7.4.280.0040.00416.68
7.4.270.0030.00616.64
7.4.260.0030.00316.50
7.4.250.0050.00216.42
7.4.240.0020.00516.59
7.4.230.0070.00016.65
7.4.220.0070.01416.49
7.4.210.0080.00916.58
7.4.200.0050.00216.66
7.4.160.0090.00616.48
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0110.00616.53
7.4.120.0120.00816.50
7.4.110.0070.01116.61
7.4.100.0170.00016.48
7.4.90.0080.00816.49
7.4.80.0060.01519.39
7.4.70.0160.00016.54
7.4.60.0070.01116.67
7.4.50.0030.00316.26
7.4.40.0120.00916.63
7.4.30.0000.01716.65
7.4.00.0060.00614.87
7.3.330.0050.00013.18
7.3.320.0050.00013.09
7.3.310.0050.00216.16
7.3.300.0000.00716.27
7.3.290.0160.00316.32
7.3.280.0070.01116.27
7.3.270.0130.01017.40
7.3.260.0120.00616.24
7.3.250.0100.00816.39
7.3.240.0040.01616.47
7.3.230.0120.00416.54
7.3.210.0040.01216.69
7.3.200.0170.00419.39
7.3.190.0070.01316.62
7.3.180.0100.00616.29
7.3.170.0120.00316.60
7.3.160.0150.00616.25
7.3.10.0080.00816.63
7.3.00.0000.01416.34
7.2.330.0120.00616.76
7.2.320.0060.01416.59
7.2.310.0190.00616.64
7.2.300.0140.00916.50
7.2.290.0150.01116.66
7.2.130.0070.00316.94
7.2.120.0030.01316.85
7.2.110.0060.00616.89
7.2.100.0070.01116.79
7.2.90.0150.00317.00
7.2.80.0060.00917.16
7.2.70.0040.01116.75
7.2.60.0030.01016.99
7.2.50.0060.00916.98
7.2.40.0140.00417.13
7.2.30.0070.00716.99
7.2.20.0030.01316.82
7.2.10.0070.01017.02
7.2.00.0060.01018.35
7.1.250.0090.00615.98
7.1.200.0110.00316.10
7.1.100.0000.01018.39
7.1.70.0000.00917.46
7.1.60.0120.01219.32
7.1.50.0210.00635.10
7.1.00.0030.07722.68
7.0.200.0060.00616.77
7.0.140.0000.07322.16
7.0.60.0000.04320.07
7.0.50.0070.04718.04
7.0.40.0030.08720.34
7.0.30.0230.06720.10
7.0.20.0330.05320.23
7.0.10.0000.07720.27
7.0.00.0070.04720.18
5.6.280.0000.07721.10
5.6.210.0070.08320.47
5.6.200.0030.05018.15
5.6.190.0070.05020.39
5.6.180.3500.04020.40
5.6.170.0300.05720.47
5.6.160.0070.05720.39
5.6.150.0100.08318.22
5.6.140.0100.06018.18
5.6.130.0100.06018.22
5.6.120.0030.08321.14
5.6.110.0070.08020.97
5.6.100.0070.07721.00
5.6.90.0070.08321.07
5.6.80.0170.07020.50
5.6.70.0300.07720.37
5.5.350.0170.03720.39
5.5.340.0100.07317.98
5.5.330.0070.05020.07
5.5.320.0270.04320.16
5.5.310.0270.05720.27
5.5.300.0030.06017.88
5.5.290.0100.08318.02
5.5.280.0000.04720.95
5.5.270.0170.06020.88
5.5.260.0130.07720.73
5.5.250.0070.08720.54
5.5.240.0400.05720.25
5.4.450.1000.07719.47
5.4.440.0800.05319.46
5.4.430.0800.06719.12
5.4.420.0730.00019.26
5.4.410.0670.00019.41
5.4.400.0630.00019.04
5.4.390.0730.00019.05
5.4.380.0670.00019.19
5.4.370.0700.00018.97
5.4.360.0630.00018.98
5.4.350.0700.00018.96
5.4.340.0630.00019.16
5.4.320.0030.04012.48
5.4.310.0100.03412.47
5.4.300.0080.03412.48
5.4.290.0060.03812.47
5.4.280.0050.03712.37
5.4.270.0100.03312.37
5.4.260.0060.03812.37
5.4.250.0070.03712.37
5.4.240.0060.03612.37
5.4.230.0070.03912.36
5.4.220.0110.03512.36
5.4.210.0060.04012.36
5.4.200.0080.03812.36
5.4.190.0070.03612.36
5.4.180.0070.03612.36
5.4.170.0110.03712.37
5.4.160.0070.03612.36
5.4.150.0060.03712.36
5.4.140.0070.04512.04
5.4.130.0060.03712.04
5.4.120.0040.03911.99
5.4.110.0080.03411.98
5.4.100.0040.03811.99
5.4.90.0110.03311.98
5.4.80.0100.03511.99
5.4.70.0110.03311.98
5.4.60.0080.03411.98
5.4.50.0100.03211.98
5.4.40.0060.03611.97
5.4.30.0080.03511.97
5.4.20.0070.03511.96
5.4.10.0080.03411.97
5.4.00.0040.04611.46
5.3.290.0060.04012.80
5.3.280.0100.03512.70
5.3.270.0070.03912.72
5.3.260.0060.04112.72
5.3.250.0080.04312.72
5.3.240.0070.03712.72
5.3.230.0080.03712.71
5.3.220.0070.03812.68
5.3.210.0100.03612.68
5.3.200.0060.03712.68
5.3.190.0090.03612.67
5.3.180.0130.03112.68
5.3.170.0070.03712.67
5.3.160.0080.04212.67
5.3.150.0100.03612.67
5.3.140.0080.04112.66
5.3.130.0090.03812.66
5.3.120.0090.04612.66
5.3.110.0070.03812.66
5.3.100.0060.03812.12
5.3.90.0080.03512.10
5.3.80.0060.03812.08
5.3.70.0070.03612.09
5.3.60.0070.03612.07
5.3.50.0050.03812.02
5.3.40.0050.03912.02
5.3.30.0050.03911.98
5.3.20.0050.03711.76
5.3.10.0090.03611.72
5.3.00.0080.03511.71
5.2.170.0060.0329.22
5.2.160.0040.0349.21
5.2.150.0080.0319.22
5.2.140.0050.0319.21
5.2.130.0080.0269.17
5.2.120.0070.0279.18
5.2.110.0050.0299.18
5.2.100.0080.0289.18
5.2.90.0030.0329.17
5.2.80.0020.0329.17
5.2.70.0040.0329.17
5.2.60.0100.0279.12
5.2.50.0070.0299.09
5.2.40.0050.0339.07
5.2.30.0040.0319.05
5.2.20.0060.0299.08
5.2.10.0080.0319.00
5.2.00.0060.0298.85
5.1.60.0060.0238.15
5.1.50.0040.0268.14
5.1.40.0040.0268.13
5.1.30.0010.0298.48
5.1.20.0050.0388.50
5.1.10.0070.0268.22
5.1.00.0060.0258.22
5.0.50.0050.0206.70
5.0.40.0010.0226.52
5.0.30.0010.0336.34
5.0.20.0040.0196.31
5.0.10.0040.0216.28
5.0.00.0050.0296.28
4.4.90.0020.0174.77
4.4.80.0040.0154.75
4.4.70.0050.0144.75
4.4.60.0020.0174.75
4.4.50.0030.0164.77
4.4.40.0050.0234.71
4.4.30.0040.0154.75
4.4.20.0070.0134.84
4.4.10.0050.0144.84
4.4.00.0020.0274.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0020.0154.64
4.3.80.0030.0244.59
4.3.70.0020.0154.63
4.3.60.0020.0154.62
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0000.0183.32
4.3.20.0010.0163.30
4.3.10.0020.0163.25
4.3.00.0130.0237.18

preferences:
42.63 ms | 401 KiB | 5 Q