3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = <<<REGEX / (?:\A|\n)\s* #(?:(@[\pL-_\\]+)\ *(\()([^\)]*)(\)))| (?: (?: (?:(@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.0000.01418.43
8.3.50.0110.00717.95
8.3.40.0120.00318.83
8.3.30.0070.00718.96
8.3.20.0040.00420.30
8.3.10.0080.00020.49
8.3.00.0050.00317.50
8.2.180.0120.00316.63
8.2.170.0100.00722.96
8.2.160.0000.01320.38
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0030.00522.28
8.2.110.0090.00022.25
8.2.100.0040.00719.38
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0150.00417.12
8.2.60.0000.00817.91
8.2.50.0090.00018.07
8.2.40.0000.00818.16
8.2.30.0040.00418.04
8.2.20.0040.00417.64
8.2.10.0040.00417.92
8.2.00.0040.00417.72
8.1.270.0040.00422.04
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00423.78
8.1.230.0070.00319.10
8.1.220.0080.00017.74
8.1.210.0070.00018.77
8.1.200.0040.00417.36
8.1.190.0040.00417.10
8.1.180.0000.00718.10
8.1.170.0030.00618.46
8.1.160.0000.00721.90
8.1.150.0000.00718.86
8.1.140.0040.00417.48
8.1.130.0070.00017.86
8.1.120.0070.00017.51
8.1.110.0040.00417.50
8.1.100.0030.00317.43
8.1.90.0000.00817.45
8.1.80.0030.00517.35
8.1.70.0000.00717.34
8.1.60.0030.00617.42
8.1.50.0060.00317.56
8.1.40.0040.00417.50
8.1.30.0040.00417.51
8.1.20.0040.00417.70
8.1.10.0030.00617.57
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.41
8.0.270.0070.00017.23
8.0.260.0060.00017.22
8.0.250.0020.00517.02
8.0.240.0060.00017.01
8.0.230.0050.00216.98
8.0.220.0030.00316.97
8.0.210.0040.00416.83
8.0.200.0060.00316.95
8.0.190.0070.00416.92
8.0.180.0040.00416.96
8.0.170.0040.00416.98
8.0.160.0020.00516.84
8.0.150.0070.00016.89
8.0.140.0030.00616.88
8.0.130.0000.00613.40
8.0.120.0080.00016.91
8.0.110.0040.00416.93
8.0.100.0050.00316.74
8.0.90.0050.00216.91
8.0.80.0110.01116.93
8.0.70.0080.00016.87
8.0.60.0040.00417.04
8.0.50.0040.00416.81
8.0.30.0120.00917.24
8.0.20.0080.01117.40
8.0.10.0040.00416.87
8.0.00.0050.01516.95
7.4.330.0050.00015.00
7.4.320.0000.00716.66
7.4.300.0030.00316.46
7.4.290.0050.00316.66
7.4.280.0040.00416.62
7.4.270.0040.00416.64
7.4.260.0030.00316.39
7.4.250.0040.00416.53
7.4.240.0060.00216.54
7.4.230.0000.00716.52
7.4.220.0120.00616.50
7.4.210.0070.01116.66
7.4.200.0060.00316.55
7.4.160.0120.00316.54
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0100.00716.46
7.4.120.0090.00916.58
7.4.110.0060.01116.65
7.4.100.0080.00816.34
7.4.90.0120.00616.50
7.4.80.0040.01219.39
7.4.70.0160.00016.57
7.4.60.0130.00316.50
7.4.50.0030.00316.50
7.4.40.0030.01316.57
7.4.30.0150.00916.52
7.4.00.0080.00715.19
7.3.330.0060.00013.11
7.3.320.0030.00313.26
7.3.310.0000.00716.37
7.3.300.0060.00016.32
7.3.290.0100.00916.31
7.3.280.0070.01016.27
7.3.270.0090.00917.40
7.3.260.0040.01416.25
7.3.250.0120.00616.25
7.3.240.0030.01716.40
7.3.230.0180.00416.50
7.3.210.0070.01016.32
7.3.200.0100.01519.39
7.3.190.0160.00616.12
7.3.180.0060.01016.45
7.3.170.0060.00916.48
7.3.160.0100.00816.26
7.3.120.0070.01115.02
7.3.110.0090.00914.89
7.3.100.0110.00414.75
7.3.90.0100.00714.71
7.3.80.0080.00015.04
7.3.70.0030.01014.64
7.3.60.0060.00614.49
7.3.50.0070.00714.63
7.3.40.0100.00614.49
7.3.30.0030.01014.78
7.3.20.0030.00616.64
7.3.10.0070.00716.80
7.3.00.0080.00816.52
7.2.330.0110.01116.79
7.2.320.0220.00616.78
7.2.310.0090.01216.59
7.2.300.0090.01116.54
7.2.290.0000.02516.70
7.2.250.0150.00615.33
7.2.240.0070.01114.89
7.2.230.0100.01015.28
7.2.220.0070.00715.36
7.2.210.0030.01215.05
7.2.200.0030.01215.25
7.2.190.0110.00015.14
7.2.180.0030.01215.24
7.2.170.0000.01415.06
7.1.330.0040.01415.83
7.1.320.0030.00716.03
7.1.310.0090.00615.84
7.1.300.0000.01415.93
7.1.290.0070.00716.02
7.1.280.0120.00315.97
7.1.270.0040.00715.96
7.1.260.0060.00615.87
7.1.200.0030.01015.94
7.1.70.0060.00317.51
7.1.60.0070.00717.71
7.1.50.0060.00617.37
7.1.00.0000.05022.67
7.0.200.0060.01216.93
7.0.140.0030.07022.06
7.0.60.0070.08020.01
7.0.50.0070.08017.93
7.0.40.0030.05320.10
7.0.30.0530.07020.27
7.0.20.0070.05020.22
7.0.10.0100.09020.39
7.0.00.0070.05720.39
5.6.280.0130.06320.81
5.6.210.0030.06320.70
5.6.200.0170.06318.21
5.6.190.0070.04020.39
5.6.180.0500.05320.68
5.6.170.0200.07020.48
5.6.160.0070.08020.37
5.6.150.0000.07018.18
5.6.140.0130.07718.17
5.6.130.0070.07718.09
5.6.120.0100.07721.05
5.6.110.0130.07720.98
5.6.100.0130.07321.00
5.6.90.0070.07321.12
5.6.80.0030.08320.52
5.5.350.0170.04720.43
5.5.340.0070.08317.91
5.5.330.0030.04320.36
5.5.320.0230.04020.32
5.5.310.0330.07320.23
5.5.300.0030.05717.98
5.5.290.0200.07017.97
5.5.280.0100.06720.77
5.5.270.0030.08720.86
5.5.260.0070.08020.77
5.5.250.0070.06320.78
5.5.240.0200.07720.27
5.4.450.0030.03719.46
5.4.440.1070.08719.24
5.4.430.0930.06719.46
5.4.420.0700.00019.32
5.4.410.0770.00019.21
5.4.400.0630.00019.23
5.4.390.0670.00019.17
5.4.380.0670.00018.93
5.4.370.0670.00019.05
5.4.360.0670.00019.05
5.4.350.0730.00018.98
5.4.340.0670.00019.07
5.4.320.0170.04012.48
5.4.310.0020.04412.47
5.4.300.0080.03612.48
5.4.290.0040.04012.47
5.4.280.0120.02912.37
5.4.270.0090.03312.37
5.4.260.0120.03612.37
5.4.250.0060.03812.37
5.4.240.0070.03712.37
5.4.230.0140.04512.36
5.4.220.0080.04112.36
5.4.210.0100.03912.36
5.4.200.0040.04212.36
5.4.190.0060.04012.36
5.4.180.0100.03912.36
5.4.170.0050.03812.37
5.4.160.0060.03712.36
5.4.150.0110.03612.36
5.4.140.0070.03612.04
5.4.130.0060.03612.04
5.4.120.0060.03611.99
5.4.110.0070.04311.99
5.4.100.0090.03511.99
5.4.90.0080.03611.99
5.4.80.0120.03911.99
5.4.70.0060.03411.98
5.4.60.0050.03611.98
5.4.50.0090.03311.98
5.4.40.0060.03811.97
5.4.30.0070.03611.96
5.4.20.0100.03411.97
5.4.10.0060.03611.96
5.4.00.0050.03711.46
5.3.290.0070.03912.80
5.3.280.0070.03712.71
5.3.270.0090.03612.72
5.3.260.0040.04112.72
5.3.250.0040.03912.72
5.3.240.0050.04112.72
5.3.230.0050.04012.71
5.3.220.0080.03612.68
5.3.210.0080.03812.68
5.3.200.0080.03512.68
5.3.190.0060.03812.68
5.3.180.0080.03512.67
5.3.170.0030.04012.67
5.3.160.0050.03912.67
5.3.150.0070.03812.67
5.3.140.0080.03512.66
5.3.130.0090.03712.66
5.3.120.0130.03312.66
5.3.110.0070.03912.66
5.3.100.0070.03712.12
5.3.90.0050.03812.09
5.3.80.0050.03812.09
5.3.70.0120.04012.08
5.3.60.0110.03312.07
5.3.50.0120.03512.02
5.3.40.0080.03912.02
5.3.30.0080.03711.98
5.3.20.0050.03711.76
5.3.10.0030.03811.72
5.3.00.0050.03811.71
5.2.170.0080.0289.22
5.2.160.0050.0309.22
5.2.150.0060.0309.22
5.2.140.0040.0339.21
5.2.130.0060.0299.17
5.2.120.0100.0269.17
5.2.110.0040.0319.18
5.2.100.0100.0289.18
5.2.90.0060.0299.18
5.2.80.0050.0319.18
5.2.70.0050.0329.18
5.2.60.0070.0309.12
5.2.50.0070.0319.08
5.2.40.0050.0319.07
5.2.30.0070.0299.05
5.2.20.0050.0309.08
5.2.10.0040.0319.00
5.2.00.0060.0328.85
5.1.60.0050.0268.15
5.1.50.0060.0308.14
5.1.40.0070.0298.13
5.1.30.0040.0288.48
5.1.20.0100.0338.49
5.1.10.0070.0278.22
5.1.00.0060.0328.22
5.0.50.0040.0256.70
5.0.40.0040.0246.52
5.0.30.0040.0316.33
5.0.20.0040.0326.31
5.0.10.0020.0266.29
5.0.00.0030.0336.28
4.4.90.0020.0164.78
4.4.80.0010.0204.76
4.4.70.0050.0144.75
4.4.60.0050.0144.76
4.4.50.0040.0224.77
4.4.40.0040.0294.71
4.4.30.0040.0184.75
4.4.20.0090.0184.85
4.4.10.0060.0224.85
4.4.00.0040.0374.76
4.3.110.0050.0214.67
4.3.100.0030.0194.66
4.3.90.0030.0174.63
4.3.80.0040.0234.59
4.3.70.0020.0184.63
4.3.60.0050.0124.63
4.3.50.0030.0154.63
4.3.40.0030.0324.54
4.3.30.0040.0183.33
4.3.20.0010.0223.31
4.3.10.0030.0153.25
4.3.00.0000.01316.50

preferences:
64.18 ms | 400 KiB | 5 Q