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.0070.00718.18
8.3.50.0110.01022.03
8.3.40.0150.00018.88
8.3.30.0100.00718.96
8.3.20.0040.00420.20
8.3.10.0060.00320.67
8.3.00.0030.00517.50
8.2.180.0070.01116.63
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0050.00222.19
8.2.110.0090.00020.35
8.2.100.0080.00417.91
8.2.90.0040.00419.01
8.2.80.0080.00017.97
8.2.70.0030.00717.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0030.00518.03
8.2.30.0050.00317.96
8.2.20.0070.00017.58
8.2.10.0070.00018.02
8.2.00.0030.00617.71
8.1.280.0090.01225.92
8.1.270.0040.00422.02
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.03
8.1.230.0080.00419.05
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0030.00517.35
8.1.180.0000.00718.10
8.1.170.0030.00518.44
8.1.160.0000.00821.98
8.1.150.0000.00818.80
8.1.140.0050.00217.35
8.1.130.0070.00017.93
8.1.120.0030.00317.45
8.1.110.0040.00417.45
8.1.100.0030.00317.32
8.1.90.0030.00317.43
8.1.80.0040.00417.46
8.1.70.0030.00317.37
8.1.60.0060.00317.54
8.1.50.0060.00317.54
8.1.40.0040.00417.52
8.1.30.0060.00317.45
8.1.20.0000.00817.63
8.1.10.0040.00417.54
8.1.00.0060.00317.37
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0000.00818.45
8.0.270.0040.00417.23
8.0.260.0030.00317.27
8.0.250.0030.00317.00
8.0.240.0030.00316.90
8.0.230.0030.00316.95
8.0.220.0000.00716.94
8.0.210.0070.00016.88
8.0.200.0000.00717.06
8.0.190.0040.00717.04
8.0.180.0000.00716.84
8.0.170.0000.00816.93
8.0.160.0020.00516.97
8.0.150.0040.00316.81
8.0.140.0070.00316.89
8.0.130.0050.00013.34
8.0.120.0040.00416.94
8.0.110.0040.00416.89
8.0.100.0030.00516.89
8.0.90.0070.00016.84
8.0.80.0090.00916.89
8.0.70.0040.00416.83
8.0.60.0000.00716.84
8.0.50.0000.00716.73
8.0.30.0120.00817.08
8.0.20.0080.01117.40
8.0.10.0030.00617.04
8.0.00.0090.01016.99
7.4.330.0000.00515.00
7.4.320.0030.00316.61
7.4.300.0070.00016.54
7.4.290.0070.00016.58
7.4.280.0000.00816.48
7.4.270.0040.00416.65
7.4.260.0030.00316.43
7.4.250.0050.00316.60
7.4.240.0060.00216.59
7.4.230.0040.00416.65
7.4.220.0090.01316.69
7.4.210.0130.00716.73
7.4.200.0050.00316.64
7.4.160.0090.01316.49
7.4.150.0150.00317.40
7.4.140.0110.00917.86
7.4.130.0100.00716.50
7.4.120.0080.00816.56
7.4.110.0080.00816.44
7.4.100.0110.00716.36
7.4.90.0090.00916.25
7.4.80.0040.01319.39
7.4.70.0170.00316.79
7.4.60.0100.01016.43
7.4.50.0000.00416.36
7.4.40.0030.01316.43
7.4.30.0100.01316.46
7.4.00.0040.01115.04
7.3.330.0020.00213.08
7.3.320.0030.00313.15
7.3.310.0070.00016.28
7.3.300.0030.00316.34
7.3.290.0100.01016.23
7.3.280.0090.00716.30
7.3.270.0120.00617.40
7.3.260.0150.00416.31
7.3.250.0130.00516.32
7.3.240.0140.00716.49
7.3.230.0160.00016.39
7.3.210.0100.00716.34
7.3.200.0070.01619.39
7.3.190.0070.01116.45
7.3.180.0070.00816.29
7.3.170.0060.00916.39
7.3.160.0060.01316.38
7.2.330.0100.01416.53
7.2.320.0130.01016.77
7.2.310.0190.00016.90
7.2.300.0070.01316.89
7.2.290.0090.01916.78
7.1.70.0040.00417.37
7.1.60.0060.01919.32
7.1.50.0270.01034.79
7.1.00.0000.08022.41
7.0.200.9160.01014.82
7.0.140.0000.07322.05
7.0.60.0130.07719.88
7.0.50.0000.04318.07
7.0.40.0070.09020.11
7.0.30.0430.08020.12
7.0.20.0270.04720.25
7.0.10.0030.08720.40
7.0.00.0070.05320.15
5.6.280.0030.07320.91
5.6.210.0030.08720.76
5.6.200.0030.08718.21
5.6.190.0070.06320.42
5.6.180.0230.08020.61
5.6.170.0270.08020.50
5.6.160.0070.04320.49
5.6.150.0070.08318.12
5.6.140.0000.06318.21
5.6.130.0000.07018.13
5.6.120.0030.04721.11
5.6.110.0100.06721.13
5.6.100.0130.06720.98
5.6.90.0100.08320.97
5.6.80.0100.06320.35
5.5.350.0070.08720.33
5.5.340.0000.04717.92
5.5.330.0100.08020.41
5.5.320.0400.07720.27
5.5.310.0300.06020.20
5.5.300.0070.07717.96
5.5.290.0070.06018.00
5.5.280.0070.08020.68
5.5.270.0070.06020.87
5.5.260.0070.08320.65
5.5.250.0070.08720.57
5.5.240.0200.08320.27
5.4.450.0000.03719.46
5.4.440.0670.06719.61
5.4.430.0730.05719.59
5.4.420.0830.00019.43
5.4.410.0700.00019.21
5.4.400.0630.00019.24
5.4.390.0630.00018.97
5.4.380.0700.00018.96
5.4.370.0630.00019.18
5.4.360.0770.00019.09
5.4.350.0670.00019.06
5.4.340.0830.00019.07
5.4.320.0030.04412.48
5.4.310.0060.04612.47
5.4.300.0060.04412.47
5.4.290.0040.04112.47
5.4.280.0080.03512.37
5.4.270.0110.04112.37
5.4.260.0050.04012.37
5.4.250.0070.04012.37
5.4.240.0070.04412.37
5.4.230.0070.05212.36
5.4.220.0070.04212.36
5.4.210.0100.03412.36
5.4.200.0100.03712.36
5.4.190.0090.03412.36
5.4.180.0050.03812.36
5.4.170.0050.04512.37
5.4.160.0100.03312.36
5.4.150.0070.03912.36
5.4.140.0050.03912.04
5.4.130.0080.03812.03
5.4.120.0080.03811.99
5.4.110.0070.03511.99
5.4.100.0060.04011.98
5.4.90.0010.04211.98
5.4.80.0100.03311.98
5.4.70.0060.03411.98
5.4.60.0070.04111.98
5.4.50.0100.03111.98
5.4.40.0070.03411.97
5.4.30.0040.03911.97
5.4.20.0070.03911.97
5.4.10.0090.03911.97
5.4.00.0040.04211.46
5.3.290.0080.04012.80
5.3.280.0110.03312.70
5.3.270.0060.04612.73
5.3.260.0060.04012.72
5.3.250.0060.04412.72
5.3.240.0060.03812.72
5.3.230.0070.04312.70
5.3.220.0050.03812.68
5.3.210.0090.04812.68
5.3.200.0080.04812.68
5.3.190.0110.03612.67
5.3.180.0070.04212.68
5.3.170.0070.04512.67
5.3.160.0050.03812.67
5.3.150.0140.04712.67
5.3.140.0090.03412.66
5.3.130.0070.04112.66
5.3.120.0040.04112.66
5.3.110.0070.05612.66
5.3.100.0060.03812.12
5.3.90.0090.04012.10
5.3.80.0080.03712.09
5.3.70.0060.03712.09
5.3.60.0050.03712.07
5.3.50.0070.03612.02
5.3.40.0050.03912.02
5.3.30.0070.03511.98
5.3.20.0080.03711.76
5.3.10.0060.03811.72
5.3.00.0050.03811.71
5.2.170.0060.0349.22
5.2.160.0050.0299.21
5.2.150.0030.0419.21
5.2.140.0060.0469.21
5.2.130.0050.0399.18
5.2.120.0090.0349.17
5.2.110.0080.0369.18
5.2.100.0060.0279.17
5.2.90.0070.0409.18
5.2.80.0070.0329.17
5.2.70.0050.0319.17
5.2.60.0080.0319.12
5.2.50.0090.0329.10
5.2.40.0050.0309.07
5.2.30.0040.0319.05
5.2.20.0080.0369.08
5.2.10.0050.0288.99
5.2.00.0090.0318.85
5.1.60.0030.0308.15
5.1.50.0030.0278.14
5.1.40.0050.0328.13
5.1.30.0040.0278.48
5.1.20.0080.0238.50
5.1.10.0050.0268.22
5.1.00.0070.0288.22
5.0.50.0050.0226.70
5.0.40.0030.0236.52
5.0.30.0030.0376.34
5.0.20.0060.0226.31
5.0.10.0020.0236.28
5.0.00.0060.0306.28
4.4.90.0040.0154.77
4.4.80.0020.0174.76
4.4.70.0020.0184.76
4.4.60.0050.0154.76
4.4.50.0030.0284.77
4.4.40.0060.0234.71
4.4.30.0020.0194.76
4.4.20.0090.0174.84
4.4.10.0050.0224.85
4.4.00.0030.0414.76
4.3.110.0060.0224.67
4.3.100.0040.0134.66
4.3.90.0020.0154.63
4.3.80.0030.0284.58
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0030.0154.62
4.3.40.0030.0264.54
4.3.30.0010.0173.33
4.3.20.0030.0153.31
4.3.10.0020.0163.25
4.3.00.0100.01316.50

preferences:
44.68 ms | 401 KiB | 5 Q