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 @see MyTag this is a @description that spans multiple lines @internal @author Mike van Riel <me@mikevanriel.com> @ORM\Type(name="") 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.0070.00718.55
8.3.50.0090.01218.06
8.3.40.0120.00318.67
8.3.30.0150.00319.00
8.3.20.0070.00020.30
8.3.10.0080.00020.65
8.3.00.0030.00617.50
8.2.180.0130.00617.00
8.2.170.0140.00722.96
8.2.160.0140.00019.21
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0120.00326.16
8.2.120.0000.00720.91
8.2.110.0100.00020.45
8.2.100.0070.00417.91
8.2.90.0050.00318.94
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00918.05
8.2.50.0050.00518.07
8.2.40.0030.00618.03
8.2.30.0050.00318.03
8.2.20.0040.00417.78
8.2.10.0030.00518.09
8.2.00.0000.00817.73
8.1.280.0030.01425.92
8.1.270.0030.00622.06
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00323.90
8.1.230.0090.00319.21
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0040.00417.10
8.1.180.0070.00018.10
8.1.170.0040.00418.52
8.1.160.0050.00221.99
8.1.150.0000.00818.77
8.1.140.0000.00717.34
8.1.130.0000.00717.86
8.1.120.0000.00717.35
8.1.110.0080.00017.32
8.1.100.0030.00317.46
8.1.90.0030.00317.45
8.1.80.0000.00817.43
8.1.70.0000.00817.43
8.1.60.0040.00417.56
8.1.50.0040.00417.47
8.1.40.0060.00317.55
8.1.30.0000.00817.61
8.1.20.0030.00517.52
8.1.10.0070.00317.52
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0080.00018.37
8.0.270.0000.00717.12
8.0.260.0060.00017.23
8.0.250.0000.00717.01
8.0.240.0060.00017.00
8.0.230.0000.00717.01
8.0.220.0060.00016.87
8.0.210.0000.00716.94
8.0.200.0030.00317.01
8.0.190.0070.00416.88
8.0.180.0050.00216.94
8.0.170.0000.00917.01
8.0.160.0070.00016.98
8.0.150.0000.00716.91
8.0.140.0110.00016.88
8.0.130.0000.00513.36
8.0.120.0050.00316.94
8.0.110.0040.00416.85
8.0.100.0050.00216.80
8.0.90.0040.00416.75
8.0.80.0070.01016.91
8.0.70.0030.00516.86
8.0.60.0000.00716.77
8.0.50.0000.00716.79
8.0.30.0120.00817.06
8.0.20.0110.01117.40
8.0.10.0040.00417.08
8.0.00.0080.01016.80
7.4.330.0000.00615.00
7.4.320.0060.00016.69
7.4.300.0030.00316.55
7.4.290.0000.00716.64
7.4.280.0030.00516.48
7.4.270.0000.00716.63
7.4.260.0030.00316.61
7.4.250.0000.00816.61
7.4.240.0040.00416.61
7.4.230.0000.00716.74
7.4.220.0150.00316.75
7.4.210.0000.01416.73
7.4.200.0000.00716.58
7.4.160.0090.00616.36
7.4.150.0100.00717.40
7.4.140.0060.01117.86
7.4.130.0100.00816.60
7.4.120.0130.00416.59
7.4.110.0100.00616.39
7.4.100.0040.01416.46
7.4.90.0170.00016.45
7.4.80.0100.00619.39
7.4.70.0060.01216.59
7.4.60.0030.01216.63
7.4.50.0050.00016.56
7.4.40.0120.00816.48
7.4.30.0080.01216.62
7.4.00.0030.01214.90
7.3.330.0000.00513.18
7.3.320.0070.00013.12
7.3.310.0030.00316.36
7.3.300.0000.00616.16
7.3.290.0080.00516.18
7.3.280.0090.01016.25
7.3.270.0110.00717.40
7.3.260.0120.00616.34
7.3.250.0080.00816.37
7.3.240.0100.01016.55
7.3.230.0130.00316.51
7.3.210.0060.01316.33
7.3.200.0090.00919.39
7.3.190.0050.01316.34
7.3.180.0040.01216.11
7.3.170.0090.00616.58
7.3.160.0070.01516.39
7.3.120.0050.01314.73
7.3.110.0090.00714.83
7.3.100.0050.01014.75
7.3.90.0060.01114.54
7.3.80.0070.00914.72
7.3.70.0090.00914.62
7.3.60.0020.01314.69
7.3.50.0060.00814.81
7.3.40.0020.01114.76
7.3.30.0080.00614.88
7.3.20.0020.01316.64
7.3.10.0070.00716.37
7.3.00.0040.01016.26
7.2.330.0070.01416.72
7.2.320.0090.01416.78
7.2.310.0030.01716.74
7.2.300.0040.01516.72
7.2.290.0150.00916.57
7.2.250.0070.01015.17
7.2.240.0060.01215.09
7.2.230.0030.01215.00
7.2.220.0070.01015.11
7.2.210.0030.01115.18
7.2.200.0080.00915.09
7.2.190.0100.00515.24
7.2.180.0060.00914.97
7.2.170.0060.01015.12
7.2.160.0030.00614.93
7.2.150.0070.01016.71
7.2.140.0060.01016.73
7.2.130.0060.01316.64
7.2.120.0180.00616.74
7.2.110.0080.01116.79
7.2.100.0190.00716.82
7.2.90.0310.01116.74
7.2.80.0150.00716.93
7.2.70.0220.00816.81
7.2.60.0170.00716.85
7.2.50.0140.01616.95
7.2.40.0240.00916.85
7.2.30.0110.01616.86
7.2.20.0500.00616.93
7.2.10.0280.00516.86
7.2.00.0050.01017.87
7.1.330.0020.01116.05
7.1.320.0050.00915.94
7.1.310.0070.00816.00
7.1.300.0050.01015.85
7.1.290.0030.01115.98
7.1.280.0030.01116.00
7.1.270.0050.01115.98
7.1.260.0120.00516.03
7.1.250.0090.00815.84
7.1.200.0070.00715.90
7.1.100.0030.00918.63
7.1.70.0030.01017.38
7.1.60.0070.00717.36
7.1.50.0300.01035.07
7.1.00.0030.07322.48
7.0.200.0070.01016.93
7.0.140.0030.07322.05
7.0.60.0070.08020.11
7.0.50.0100.07318.00
7.0.40.0100.08320.20
7.0.30.0500.07020.20
7.0.20.0370.04320.40
7.0.10.0070.08720.16
7.0.00.0130.03720.18
5.6.280.0070.07021.02
5.6.210.0100.07720.53
5.6.200.0030.05318.15
5.6.190.0030.04320.41
5.6.180.0270.07720.44
5.6.170.0270.05020.41
5.6.160.0170.07020.48
5.6.150.0070.06018.18
5.6.140.0030.09018.20
5.6.130.0070.05018.11
5.6.120.0100.05020.93
5.6.110.0100.07721.01
5.6.100.0070.08320.90
5.6.90.0130.07321.07
5.6.80.0100.03720.50
5.5.350.0230.07320.44
5.5.340.0230.06717.96
5.5.330.0100.08020.23
5.5.320.0200.04320.30
5.5.310.0300.04720.07
5.5.300.0070.07717.88
5.5.290.0000.08317.90
5.5.280.0100.07320.88
5.5.270.0070.08720.93
5.5.260.0270.07020.87
5.5.250.0100.07720.77
5.5.240.0230.07020.21
5.4.450.0370.06019.10
5.4.440.1000.06719.46
5.4.430.1000.05719.32
5.4.420.0670.00019.44
5.4.410.0670.00019.25
5.4.400.0670.00019.20
5.4.390.0670.00019.07
5.4.380.0670.00019.06
5.4.370.0630.00019.07
5.4.360.0630.00019.09
5.4.350.0700.00019.05
5.4.340.0630.00019.15
5.4.320.0090.04512.48
5.4.310.0090.04212.47
5.4.300.0070.04312.47
5.4.290.0100.04812.47
5.4.280.0070.04212.37
5.4.270.0070.03912.37
5.4.260.0050.04212.37
5.4.250.0100.04312.37
5.4.240.0100.03412.37
5.4.230.0090.04112.36
5.4.220.0140.03512.36
5.4.210.0100.03912.36
5.4.200.0120.04112.36
5.4.190.0070.03712.36
5.4.180.0100.03412.36
5.4.170.0060.03812.37
5.4.160.0080.03612.36
5.4.150.0080.03612.36
5.4.140.0060.04112.05
5.4.130.0080.03812.04
5.4.120.0100.03711.99
5.4.110.0040.04011.99
5.4.100.0080.03511.98
5.4.90.0050.04011.99
5.4.80.0070.03711.98
5.4.70.0110.04411.98
5.4.60.0150.03611.98
5.4.50.0080.03411.98
5.4.40.0040.04111.97
5.4.30.0100.03511.96
5.4.20.0050.03911.97
5.4.10.0060.03911.97
5.4.00.0090.03711.46
5.3.290.0130.03612.80
5.3.280.0050.04112.71
5.3.270.0100.04212.72
5.3.260.0070.05012.72
5.3.250.0100.03812.72
5.3.240.0080.03712.72
5.3.230.0080.03712.70
5.3.220.0080.03712.68
5.3.210.0070.04312.68
5.3.200.0090.04712.68
5.3.190.0150.04412.68
5.3.180.0110.05012.67
5.3.170.0090.03712.67
5.3.160.0110.03712.67
5.3.150.0100.05612.68
5.3.140.0110.05512.66
5.3.130.0140.04812.66
5.3.120.0130.05612.66
5.3.110.0130.05012.66
5.3.100.0060.05212.12
5.3.90.0080.05612.10
5.3.80.0110.03912.09
5.3.70.0060.04012.09
5.3.60.0120.05612.07
5.3.50.0090.04812.02
5.3.40.0160.04312.02
5.3.30.0040.04111.98
5.3.20.0090.04611.76
5.3.10.0100.04311.72
5.3.00.0050.03811.71
5.2.170.0050.0329.21
5.2.160.0040.0309.21
5.2.150.0060.0309.21
5.2.140.0070.0349.21
5.2.130.0080.0349.18
5.2.120.0050.0299.17
5.2.110.0060.0299.18
5.2.100.0050.0299.18
5.2.90.0050.0299.19
5.2.80.0050.0319.18
5.2.70.0060.0379.17
5.2.60.0060.0309.12
5.2.50.0090.0279.09
5.2.40.0060.0309.07
5.2.30.0080.0289.05
5.2.20.0070.0329.09
5.2.10.0030.0318.99
5.2.00.0050.0308.85
5.1.60.0060.0248.14
5.1.50.0060.0328.14
5.1.40.0060.0258.13
5.1.30.0040.0328.48
5.1.20.0110.0208.50
5.1.10.0050.0258.22
5.1.00.0030.0298.22
5.0.50.0050.0206.70
5.0.40.0040.0186.52
5.0.30.0050.0306.33
5.0.20.0040.0196.31
5.0.10.0060.0186.28
5.0.00.0020.0326.28
4.4.90.0040.0154.78
4.4.80.0050.0144.75
4.4.70.0050.0174.75
4.4.60.0050.0144.75
4.4.50.0030.0184.77
4.4.40.0040.0254.71
4.4.30.0060.0164.76
4.4.20.0030.0164.84
4.4.10.0070.0134.85
4.4.00.0060.0274.76
4.3.110.0010.0204.67
4.3.100.0040.0204.66
4.3.90.0050.0204.63
4.3.80.0030.0314.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0030.0244.53
4.3.30.0010.0173.33
4.3.20.0000.0173.30
4.3.10.0020.0153.25
4.3.00.0000.02316.50

preferences:
50.89 ms | 400 KiB | 5 Q