3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = <<<REGEX / \A|\n\s* (@[\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> 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.0130.01018.30
8.3.50.0150.00722.06
8.3.40.0040.01218.66
8.3.30.0040.01618.72
8.3.20.0050.00220.26
8.3.10.0080.00020.53
8.3.00.0000.00819.25
8.2.180.0040.01118.51
8.2.170.0110.00322.96
8.2.160.0100.00720.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00021.99
8.2.110.0000.00920.45
8.2.100.0070.00417.91
8.2.90.0040.00419.28
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0070.00217.68
8.2.50.0000.00818.07
8.2.40.0070.00017.92
8.2.30.0000.00717.90
8.2.20.0050.00217.64
8.2.10.0070.00017.92
8.2.00.0000.00817.60
8.1.280.0120.00625.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00023.91
8.1.230.0070.00419.09
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00421.95
8.1.150.0040.00418.72
8.1.140.0000.00817.43
8.1.130.0030.00317.74
8.1.120.0000.00717.48
8.1.110.0040.00417.35
8.1.100.0040.00417.41
8.1.90.0000.00717.41
8.1.80.0000.00717.41
8.1.70.0070.00017.36
8.1.60.0000.01017.53
8.1.50.0040.00417.35
8.1.40.0040.00417.50
8.1.30.0090.00017.55
8.1.20.0000.00817.54
8.1.10.0040.00417.55
8.1.00.0030.00617.43
8.0.300.0040.00418.77
8.0.290.0000.00716.60
8.0.280.0080.00018.34
8.0.270.0050.00317.18
8.0.260.0030.00317.11
8.0.250.0000.00616.98
8.0.240.0000.00616.91
8.0.230.0070.00016.96
8.0.220.0030.00316.88
8.0.210.0000.00616.82
8.0.200.0000.00616.92
8.0.190.0070.00416.96
8.0.180.0040.00416.88
8.0.170.0050.00316.93
8.0.160.0080.00016.95
8.0.150.0000.00716.79
8.0.140.0050.00316.90
8.0.130.0000.00613.36
8.0.120.0040.00416.84
8.0.110.0000.00916.74
8.0.100.0000.00716.75
8.0.90.0030.00316.91
8.0.80.0130.00716.91
8.0.70.0030.00516.87
8.0.60.0040.00416.88
8.0.50.0000.00816.78
8.0.30.0080.01516.96
8.0.20.0140.00817.40
8.0.10.0020.00517.00
8.0.00.0110.00616.79
7.4.330.0030.00315.04
7.4.320.0000.00716.50
7.4.300.0050.00316.50
7.4.290.0030.00316.54
7.4.280.0070.00016.59
7.4.270.0000.00716.51
7.4.260.0040.00416.40
7.4.250.0040.00416.57
7.4.240.0050.00316.56
7.4.230.0030.00316.49
7.4.220.0130.00616.68
7.4.210.0040.01116.52
7.4.200.0000.00716.66
7.4.160.0090.00616.43
7.4.150.0150.00317.40
7.4.140.0100.00917.86
7.4.130.0130.00316.42
7.4.120.0080.01016.55
7.4.110.0100.00716.74
7.4.100.0100.00616.36
7.4.90.0140.00316.53
7.4.80.0090.00919.39
7.4.70.0060.01216.53
7.4.60.0070.01016.38
7.4.50.0030.00316.43
7.4.40.0100.00716.50
7.4.30.0110.00916.41
7.4.00.0090.00814.80
7.3.330.0030.00313.10
7.3.320.0000.00513.17
7.3.310.0040.00416.24
7.3.300.0030.00316.13
7.3.290.0070.01316.26
7.3.280.0110.00616.27
7.3.270.0100.00717.40
7.3.260.0110.00716.61
7.3.250.0080.00816.19
7.3.240.0100.00716.23
7.3.230.0040.01216.39
7.3.210.0060.00916.30
7.3.200.0160.00919.39
7.3.190.0110.00716.50
7.3.180.0060.00916.46
7.3.170.0070.01116.43
7.3.160.0100.01016.27
7.3.120.0060.01014.36
7.3.110.0070.01014.82
7.3.100.0070.01014.66
7.3.90.0030.01014.70
7.3.80.0030.00914.93
7.3.70.0040.01114.52
7.3.60.0090.00314.71
7.3.50.0100.00314.57
7.3.40.0070.00714.62
7.3.30.0060.00914.54
7.3.20.0000.00916.54
7.3.10.0070.00416.71
7.3.00.0070.00416.61
7.2.330.0070.01016.66
7.2.320.0090.00916.34
7.2.310.0080.00816.59
7.2.300.0120.01216.79
7.2.290.0140.00416.62
7.2.250.0060.01115.00
7.2.240.0060.01315.20
7.2.230.0000.01114.99
7.2.220.0030.01315.02
7.2.210.0030.01314.79
7.2.200.0070.00715.18
7.2.190.0090.00314.98
7.2.180.0030.01014.99
7.2.170.0000.01215.15
7.2.00.0030.00719.27
7.1.330.0120.00315.59
7.1.320.0060.00615.85
7.1.310.0000.00915.68
7.1.300.0070.00715.95
7.1.290.0090.00315.66
7.1.280.0060.00916.02
7.1.270.0060.00916.05
7.1.260.0040.00416.05
7.1.100.0040.00818.07
7.1.70.0000.00717.14
7.1.60.0040.00719.32
7.1.50.0060.00817.13
7.1.00.0000.08022.31
7.0.200.0000.00916.77
7.0.140.0070.07022.08
7.0.60.0330.06720.06
7.0.50.0070.04717.90
7.0.40.0130.03720.30
7.0.30.0300.07020.11
7.0.20.0270.06020.32
7.0.10.0030.04320.14
7.0.00.0070.07720.35
5.6.280.0030.07320.86
5.6.210.0070.07320.71
5.6.200.0030.04018.22
5.6.190.0070.07320.61
5.6.180.0500.04320.60
5.6.170.0300.07320.40
5.6.160.0100.06320.48
5.6.150.0070.08018.18
5.6.140.0070.05018.20
5.6.130.0170.07718.07
5.6.120.0030.04020.88
5.6.110.0070.04021.11
5.6.100.0100.08320.98
5.6.90.0070.08321.04
5.6.80.0200.06720.35
5.5.350.0130.08320.53
5.5.340.0100.07717.99
5.5.330.0030.04020.34
5.5.320.0430.07020.29
5.5.310.0300.07020.27
5.5.300.0100.03317.91
5.5.290.0100.04718.00
5.5.280.0070.04020.68
5.5.270.0100.05020.86
5.5.260.0070.08320.87
5.5.250.0100.07020.58
5.5.240.0330.06320.18
5.4.450.1170.03719.42
5.4.440.1070.06319.27
5.4.430.0870.05019.56
5.4.420.0770.00019.51
5.4.410.0630.00019.19
5.4.400.0700.00019.16
5.4.390.0630.00019.07
5.4.380.0670.00019.07
5.4.370.0670.00019.08
5.4.360.0830.00019.09
5.4.350.0670.00019.15
5.4.340.0630.00019.16
5.4.320.0060.03712.46
5.4.310.0080.03612.45
5.4.300.0070.03712.46
5.4.290.0050.05812.45
5.4.280.0060.04112.35
5.4.270.0100.03312.35
5.4.260.0070.03612.35
5.4.250.0080.03812.35
5.4.240.0070.03412.35
5.4.230.0040.04012.34
5.4.220.0070.03512.34
5.4.210.0040.03712.34
5.4.200.0070.05112.34
5.4.190.0080.04812.34
5.4.180.0060.05112.34
5.4.170.0090.04712.35
5.4.160.0060.03612.35
5.4.150.0110.03312.34
5.4.140.0050.03712.03
5.4.130.0040.03812.02
5.4.120.0080.03211.97
5.4.110.0070.03311.97
5.4.100.0050.04011.97
5.4.90.0070.03611.97
5.4.80.0040.04011.97
5.4.70.0070.03711.96
5.4.60.0030.04111.96
5.4.50.0090.03611.96
5.4.40.0110.02811.95
5.4.30.0050.03611.95
5.4.20.0130.04511.95
5.4.10.0070.04211.95
5.4.00.0070.03911.44
5.3.290.0080.05012.80
5.3.280.0070.03712.71
5.3.270.0120.03312.72
5.3.260.0060.03912.72
5.3.250.0040.03912.72
5.3.240.0060.03712.72
5.3.230.0070.03812.70
5.3.220.0060.03612.68
5.3.210.0060.04212.68
5.3.200.0060.03512.68
5.3.190.0100.03312.68
5.3.180.0070.03712.67
5.3.170.0080.03312.67
5.3.160.0060.03612.68
5.3.150.0070.03612.68
5.3.140.0090.04312.66
5.3.130.0080.04112.66
5.3.120.0080.03912.66
5.3.110.0050.04012.66
5.3.100.0060.03612.12
5.3.90.0050.03712.09
5.3.80.0050.03712.07
5.3.70.0080.03912.08
5.3.60.0050.04012.07
5.3.50.0090.04312.00
5.3.40.0060.03712.00
5.3.30.0090.03511.96
5.3.20.0060.03511.73
5.3.10.0070.04511.70
5.3.00.0060.05011.70
5.2.170.0060.0349.20
5.2.160.0070.0329.20
5.2.150.0080.0289.19
5.2.140.0090.0259.19
5.2.130.0030.0319.15
5.2.120.0040.0299.15
5.2.110.0060.0279.16
5.2.100.0030.0299.16
5.2.90.0030.0309.15
5.2.80.0070.0289.15
5.2.70.0080.0279.15
5.2.60.0050.0309.10
5.2.50.0050.0449.07
5.2.40.0090.0369.05
5.2.30.0090.0329.03
5.2.20.0020.0319.03
5.2.10.0050.0288.93
5.2.00.0060.0288.80
5.1.60.0060.0238.08
5.1.50.0030.0298.07
5.1.40.0040.0248.06
5.1.30.0020.0288.41
5.1.20.0030.0288.43
5.1.10.0060.0258.15
5.1.00.0050.0248.15
5.0.50.0040.0216.63
5.0.40.0030.0206.49
5.0.30.0030.0326.30
5.0.20.0040.0206.27
5.0.10.0040.0246.25
5.0.00.0040.0326.24
4.4.90.0030.0164.78
4.4.80.0040.0154.76
4.4.70.0010.0174.75
4.4.60.0040.0144.75
4.4.50.0000.0184.77
4.4.40.0030.0254.71
4.4.30.0010.0184.76
4.4.20.0050.0174.84
4.4.10.0020.0164.85
4.4.00.0020.0274.76
4.3.110.0030.0154.67
4.3.100.0040.0134.67
4.3.90.0040.0194.63
4.3.80.0020.0274.58
4.3.70.0020.0174.63
4.3.60.0010.0164.63
4.3.50.0020.0174.63
4.3.40.0010.0294.54
4.3.30.0030.0153.30
4.3.20.0010.0173.27
4.3.10.0030.0143.22
4.3.00.0000.01716.50

preferences:
38.21 ms | 401 KiB | 5 Q