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> 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.0110.01121.89
8.3.40.0040.01118.84
8.3.30.0120.00318.96
8.3.20.0040.00420.33
8.3.10.0030.00520.52
8.3.00.0030.00517.63
8.2.180.0120.00316.75
8.2.170.0150.00322.96
8.2.160.0130.00020.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0080.00022.28
8.2.110.0030.00622.25
8.2.100.0130.00017.78
8.2.90.0050.00219.11
8.2.80.0000.00917.97
8.2.70.0000.00817.50
8.2.60.0080.00017.93
8.2.50.0100.00018.07
8.2.40.0030.00518.09
8.2.30.0000.00718.10
8.2.20.0040.00417.72
8.2.10.0040.00417.95
8.2.00.0060.00317.72
8.1.280.0150.00325.92
8.1.270.0080.00022.02
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00022.42
8.1.230.0050.00517.77
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.66
8.1.160.0040.00421.99
8.1.150.0000.00718.86
8.1.140.0000.00817.43
8.1.130.0030.00317.86
8.1.120.0040.00417.50
8.1.110.0030.00617.32
8.1.100.0080.00017.42
8.1.90.0030.00317.41
8.1.80.0040.00417.40
8.1.70.0030.00517.41
8.1.60.0080.00017.55
8.1.50.0050.00517.55
8.1.40.0000.00817.35
8.1.30.0000.00817.45
8.1.20.0050.00317.53
8.1.10.0040.00417.58
8.1.00.0050.00317.36
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.35
8.0.270.0030.00317.23
8.0.260.0030.00317.28
8.0.250.0000.00816.95
8.0.240.0030.00316.93
8.0.230.0000.00716.98
8.0.220.0040.00416.92
8.0.210.0080.00016.79
8.0.200.0070.00016.86
8.0.190.0040.00717.05
8.0.180.0040.00416.91
8.0.170.0060.00316.82
8.0.160.0040.00416.97
8.0.150.0000.00716.91
8.0.140.0060.00616.91
8.0.130.0030.00313.37
8.0.120.0000.00716.93
8.0.110.0000.00716.85
8.0.100.0030.00516.97
8.0.90.0050.00217.03
8.0.80.0000.01916.95
8.0.70.0050.00316.91
8.0.60.0030.00516.96
8.0.50.0040.00416.79
8.0.30.0100.01017.04
8.0.20.0200.00317.40
8.0.10.0060.00317.12
8.0.00.0070.01016.85
7.4.330.0050.00015.04
7.4.320.0060.00016.52
7.4.300.0040.00416.50
7.4.290.0070.00016.45
7.4.280.0030.00516.61
7.4.270.0070.00016.67
7.4.260.0040.00416.52
7.4.250.0030.00516.63
7.4.240.0030.00516.61
7.4.230.0030.00316.38
7.4.220.0040.01516.71
7.4.210.0080.00716.59
7.4.200.0040.00416.60
7.4.160.0100.01016.57
7.4.150.0150.00317.40
7.4.140.0090.00817.86
7.4.130.0110.00616.68
7.4.120.0100.00716.54
7.4.110.0140.00516.63
7.4.100.0070.01016.72
7.4.90.0170.00416.35
7.4.80.0130.01219.39
7.4.70.0100.00716.80
7.4.60.0070.01016.79
7.4.50.0000.00616.54
7.4.40.0160.00616.47
7.4.30.0070.01016.48
7.4.00.0060.00914.98
7.3.330.0000.00613.18
7.3.320.0030.00313.14
7.3.310.0000.00816.34
7.3.300.0030.00316.11
7.3.290.0060.00916.25
7.3.280.0100.00916.28
7.3.270.0070.01017.40
7.3.260.0090.00916.44
7.3.250.0130.00416.35
7.3.240.0160.00616.50
7.3.230.0060.00916.39
7.3.210.0070.01116.61
7.3.200.0070.01519.39
7.3.190.0100.00616.52
7.3.180.0080.00816.64
7.3.170.0140.00316.48
7.3.160.0100.01016.72
7.2.330.0040.01716.81
7.2.320.0080.01216.70
7.2.310.0280.02016.77
7.2.300.0120.00816.72
7.2.290.0040.01916.68
7.2.00.0060.00619.70
7.1.100.0040.00718.65
7.1.70.0060.00317.43
7.1.60.0030.01619.32
7.1.50.0270.01034.97
7.1.00.0000.08022.54
7.0.200.0000.01016.87
7.0.140.0030.07722.28
7.0.70.3670.03020.00
7.0.60.0100.08020.15
7.0.50.0070.06017.93
7.0.40.0070.07720.32
7.0.30.0400.04720.07
7.0.20.0330.07020.26
7.0.10.0370.06720.06
7.0.00.0070.07720.40
5.6.280.0030.07321.02
5.6.210.0200.05320.74
5.6.200.0030.07718.13
5.6.190.0130.07320.41
5.6.180.0030.04320.36
5.6.170.0230.04720.33
5.6.160.0000.04720.54
5.6.150.0100.08018.18
5.6.140.0130.03018.21
5.6.130.0030.08318.16
5.6.120.0070.05721.08
5.6.110.0130.08321.04
5.6.100.0100.08021.00
5.6.90.0130.08020.99
5.6.80.0130.07720.33
5.6.70.0130.07320.37
5.5.350.0030.04020.34
5.5.340.0070.05017.98
5.5.330.0100.08320.23
5.5.320.0030.08720.20
5.5.310.0100.05020.33
5.5.300.0170.07017.98
5.5.290.0030.08317.97
5.5.280.0070.04020.73
5.5.270.0170.06020.76
5.5.260.0230.06320.97
5.5.250.0130.07320.61
5.5.240.0070.06320.16
5.4.450.0270.04019.41
5.4.440.0670.06319.59
5.4.430.0700.05719.61
5.4.420.0700.00019.26
5.4.410.0870.00019.15
5.4.400.0670.00019.18
5.4.390.0670.00019.00
5.4.380.0700.00018.95
5.4.370.0670.00019.20
5.4.360.0670.00019.15
5.4.350.0630.00019.15
5.4.340.0630.00018.96
5.4.320.0090.04812.48
5.4.310.0090.03712.47
5.4.300.0070.03912.47
5.4.290.0090.03612.47
5.4.280.0040.03912.37
5.4.270.0090.03512.37
5.4.260.0060.03812.37
5.4.250.0080.03612.37
5.4.240.0050.03712.37
5.4.230.0090.03412.36
5.4.220.0040.03812.36
5.4.210.0070.03412.36
5.4.200.0070.03612.36
5.4.190.0030.03912.36
5.4.180.0060.03712.36
5.4.170.0050.03812.37
5.4.160.0070.03612.36
5.4.150.0030.04112.36
5.4.140.0040.04012.04
5.4.130.0070.03612.03
5.4.120.0050.03611.99
5.4.110.0080.03411.99
5.4.100.0090.03311.99
5.4.90.0080.04411.99
5.4.80.0070.03611.99
5.4.70.0080.03211.98
5.4.60.0100.03211.98
5.4.50.0070.03511.98
5.4.40.0070.03411.96
5.4.30.0050.03711.97
5.4.20.0030.03911.96
5.4.10.0070.03411.96
5.4.00.0050.03711.46
5.3.290.0100.03512.80
5.3.280.0050.03812.71
5.3.270.0080.04212.73
5.3.260.0080.03712.72
5.3.250.0060.03812.72
5.3.240.0080.03512.72
5.3.230.0050.04712.71
5.3.220.0120.03312.68
5.3.210.0040.04012.68
5.3.200.0070.03412.68
5.3.190.0050.03812.68
5.3.180.0070.03512.67
5.3.170.0070.03512.67
5.3.160.0050.04212.67
5.3.150.0060.04012.68
5.3.140.0070.04412.66
5.3.130.0100.03712.65
5.3.120.0050.03912.66
5.3.110.0040.03912.66
5.3.100.0070.03612.12
5.3.90.0070.03512.10
5.3.80.0040.03912.09
5.3.70.0060.03712.08
5.3.60.0070.03912.07
5.3.50.0070.03612.02
5.3.40.0070.03512.02
5.3.30.0090.03211.98
5.3.20.0050.03611.76
5.3.10.0090.03111.74
5.3.00.0050.03711.71
5.2.170.0040.0319.22
5.2.160.0040.0309.22
5.2.150.0050.0419.22
5.2.140.0080.0289.21
5.2.130.0060.0299.17
5.2.120.0030.0309.17
5.2.110.0090.0259.18
5.2.100.0030.0319.18
5.2.90.0070.0289.18
5.2.80.0050.0309.17
5.2.70.0050.0309.17
5.2.60.0050.0309.13
5.2.50.0030.0329.09
5.2.40.0050.0289.08
5.2.30.0070.0289.05
5.2.20.0070.0319.08
5.2.10.0070.0268.99
5.2.00.0060.0308.85
5.1.60.0050.0248.15
5.1.50.0050.0248.14
5.1.40.0050.0238.12
5.1.30.0060.0248.48
5.1.20.0080.0308.49
5.1.10.0030.0278.22
5.1.00.0070.0238.22
5.0.50.0060.0196.70
5.0.40.0020.0216.52
5.0.30.0030.0316.34
5.0.20.0070.0206.31
5.0.10.0030.0206.28
5.0.00.0060.0466.28
4.4.90.0030.0154.78
4.4.80.0020.0174.75
4.4.70.0020.0194.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0000.0194.76
4.4.20.0050.0144.85
4.4.10.0020.0244.84
4.4.00.0050.0304.76
4.3.110.0020.0154.67
4.3.100.0000.0174.66
4.3.90.0030.0144.64
4.3.80.0020.0244.58
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0050.0134.62
4.3.40.0030.0244.54
4.3.30.0040.0143.33
4.3.20.0010.0173.30
4.3.10.0030.0143.25
4.3.00.0000.01316.50

preferences:
45.88 ms | 401 KiB | 5 Q