3v4l.org

run code in 300+ PHP versions simultaneously
<?php // clears all extra horizontal whitespace from the line endings // to prevent parsing issues $comment = preg_replace('/\h*$/Sum', '', $comment); /* * Splits the docblock into a short description, long description and * tags section * - The short description is started from the first character until * a dot is encountered followed by a newline OR * two consecutive newlines (horizontal whitespace is taken into * account to consider spacing errors) * - The long description, any character until a new line is * encountered followed by an @ and word characters (a tag). * This is optional. * - Tags; the remaining characters * * Big thanks to RichardJ for contributing this Regular Expression */ preg_match( '/ (\#\@\+|\#\@\-)? \A ( [^\n.]+ (?: (?! \. \n | \n{2} ) # disallow the first seperator here [\n.] (?! [ \t]* @\pL ) # disallow second seperator [^\n.]+ )* \.? ) (?: \s* # first seperator (actually newlines but it\'s all whitespace) (?! @\pL ) # disallow the rest, to make sure this one doesn\'t match, #if it doesn\'t exist ( [^\n]+ (?: \n+ (?! [ \t]* @\pL ) # disallow second seperator (@param) [^\n]+ )* ) )? (\s+ [\s\S]*)? # everything that follows /ux', $comment, $matches ); array_shift($matches); 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.40.0100.00719.04
8.3.30.0140.00019.11
8.3.20.0030.00620.22
8.3.10.0090.00023.35
8.3.00.0040.00419.63
8.2.170.0100.01022.96
8.2.160.0070.01020.43
8.2.150.0040.00424.18
8.2.140.0120.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00821.22
8.2.110.0070.00322.16
8.2.100.0070.00420.57
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0050.00317.91
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0050.00218.16
8.2.20.0000.00817.91
8.2.10.0040.00418.01
8.2.00.0040.00417.97
8.1.270.0060.00324.10
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.05
8.1.230.0060.00619.22
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0050.00318.74
8.1.160.0030.00521.91
8.1.150.0030.00618.91
8.1.140.0000.00817.55
8.1.130.0040.00417.85
8.1.120.0040.00417.48
8.1.110.0040.00417.59
8.1.100.0040.00417.58
8.1.90.0000.00717.45
8.1.80.0000.00717.60
8.1.70.0040.00417.50
8.1.60.0030.00617.69
8.1.50.0050.00317.63
8.1.40.0040.00417.59
8.1.30.0050.00317.76
8.1.20.0040.00417.73
8.1.10.0000.00717.57
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0020.00518.34
8.0.270.0030.00317.10
8.0.260.0060.00017.23
8.0.250.0000.00717.21
8.0.240.0030.00617.17
8.0.230.0030.00317.17
8.0.220.0040.00417.17
8.0.210.0070.00017.02
8.0.200.0060.00017.18
8.0.190.0040.00717.19
8.0.180.0000.01117.04
8.0.170.0000.00817.13
8.0.160.0000.00717.08
8.0.150.0000.00817.04
8.0.140.0080.00017.10
8.0.130.0000.00713.61
8.0.120.0000.00817.12
8.0.110.0000.00717.21
8.0.100.0050.00217.20
8.0.90.0070.00017.14
8.0.80.0100.00717.17
8.0.70.0040.00417.18
8.0.60.0020.00517.05
8.0.50.0050.00316.99
8.0.30.0100.00917.21
8.0.20.0120.01217.40
8.0.10.0040.00417.06
8.0.00.0130.00517.03
7.4.330.0030.00315.01
7.4.320.0000.00716.74
7.4.300.0060.00016.82
7.4.290.0030.00316.69
7.4.280.0050.00316.62
7.4.270.0030.00316.74
7.4.260.0060.00013.54
7.4.250.0050.00216.80
7.4.240.0050.00216.76
7.4.230.0000.00716.61
7.4.220.0180.00016.93
7.4.210.0040.01116.79
7.4.200.0090.00016.72
7.4.160.0080.01116.76
7.4.150.0150.00317.40
7.4.140.0100.01117.86
7.4.130.0090.00916.82
7.4.120.0120.00616.71
7.4.110.0100.00716.71
7.4.100.0150.00916.74
7.4.90.0130.00316.71
7.4.80.0130.00619.39
7.4.70.0080.00816.74
7.4.60.0140.00316.73
7.4.50.0030.00616.86
7.4.40.0090.00616.64
7.4.30.0130.00316.74
7.4.00.0020.01515.00
7.3.330.0030.00313.21
7.3.320.0000.00613.25
7.3.310.0050.00316.44
7.3.300.0040.00416.44
7.3.290.0000.01416.43
7.3.280.0080.00816.43
7.3.270.0080.01617.40
7.3.260.0160.00016.48
7.3.250.0140.00716.46
7.3.240.0030.01316.37
7.3.230.0070.01116.65
7.3.210.0000.01716.61
7.3.200.0080.01219.39
7.3.190.0060.01616.47
7.3.180.0070.01116.68
7.3.170.0130.00316.34
7.3.160.0120.00616.60
7.3.120.0130.00715.03
7.3.110.0090.01215.19
7.3.100.0040.01215.06
7.3.90.0060.00915.00
7.3.80.0000.01314.90
7.3.70.0090.00314.96
7.3.60.0030.00614.77
7.3.50.0120.00315.08
7.3.40.0000.01114.91
7.3.30.0080.00414.89
7.3.20.0060.00316.86
7.3.10.0100.00316.73
7.3.00.0040.01116.75
7.2.330.0030.01416.70
7.2.320.0000.01616.61
7.2.310.0090.01216.63
7.2.300.0130.00616.73
7.2.290.0070.01016.75
7.2.250.0080.00815.16
7.2.240.0000.01914.91
7.2.230.0040.01114.85
7.2.220.0040.01114.89
7.2.210.0070.01015.27
7.2.200.0000.01515.28
7.2.190.0100.00715.27
7.2.180.0120.00315.14
7.2.170.0030.01015.19
7.2.160.0030.01014.99
7.2.150.0060.00916.94
7.2.140.0120.00317.14
7.2.130.0090.00617.08
7.2.120.0040.00717.10
7.2.110.0110.00416.88
7.2.100.0030.00717.05
7.2.90.0130.00317.11
7.2.80.0000.01417.07
7.2.70.0060.01517.02
7.2.60.0070.01117.07
7.2.50.0030.01616.90
7.2.40.0060.00917.08
7.2.30.0040.01417.13
7.2.20.0000.01617.13
7.2.10.0070.00717.14
7.2.00.0090.00518.11
7.1.330.0060.01215.74
7.1.320.0030.01016.08
7.1.310.0060.01015.78
7.1.300.0070.00715.73
7.1.290.0070.01016.09
7.1.280.0060.00615.86
7.1.270.0040.01215.91
7.1.260.0040.01215.69
7.1.250.0090.00615.91
7.1.240.0000.01415.77
7.1.230.0030.00915.89
7.1.220.0140.00315.71
7.1.210.0080.00615.98
7.1.200.0040.01115.85
7.1.190.0120.00415.95
7.1.180.0030.01015.95
7.1.170.0050.00515.91
7.1.160.0090.00015.93
7.1.150.0100.00716.04
7.1.140.0100.00315.70
7.1.130.0000.00915.88
7.1.120.0030.00916.00
7.1.110.0030.01016.08
7.1.100.0100.00717.14
7.1.90.0030.01015.98
7.1.80.0070.00715.75
7.1.70.0020.01116.66
7.1.60.0110.00617.69
7.1.50.0070.00716.43
7.1.40.0030.00615.69
7.1.30.0060.00615.76
7.1.20.0070.00715.93
7.1.10.0040.00815.91
7.1.00.0080.03819.26
7.0.330.0140.00015.58
7.0.320.0000.01615.63
7.0.310.0120.00415.65
7.0.300.0040.01215.39
7.0.290.0040.01215.77
7.0.280.0040.00415.49
7.0.270.0000.01315.42
7.0.260.0040.00715.56
7.0.250.0070.00315.62
7.0.240.0030.01015.63
7.0.230.0080.00815.53
7.0.220.0000.01515.65
7.0.210.0100.00715.73
7.0.200.0000.01016.04
7.0.190.0000.01615.68
7.0.180.0030.01015.61
7.0.170.0060.00615.65
7.0.160.0080.00415.35
7.0.150.0000.01215.88
7.0.140.0050.03818.80
7.0.130.0030.00915.70
7.0.120.0090.00315.63
7.0.110.0060.00615.47
7.0.100.0100.00015.33
7.0.90.0030.00615.72
7.0.80.0140.00415.25
7.0.70.0060.00315.47
7.0.60.0050.04517.63
7.0.50.0020.04616.80
7.0.40.0030.04916.91
7.0.30.0180.04316.89
7.0.20.0160.04016.98
7.0.10.0030.02416.82
7.0.00.0050.03616.94
5.6.400.0060.00314.36
5.6.390.0000.00914.18
5.6.380.0000.01413.95
5.6.370.0090.00613.83
5.6.360.0060.00914.25
5.6.350.0040.01214.13
5.6.340.0050.00514.33
5.6.330.0060.00614.51
5.6.320.0070.00714.39
5.6.310.0070.01014.46
5.6.300.0040.00814.12
5.6.290.0030.01114.12
5.6.280.0060.03817.56
5.6.270.0060.00614.64
5.6.260.0000.01014.41
5.6.250.0140.00014.27
5.6.240.0130.00314.30
5.6.230.0130.00314.34
5.6.220.0030.00614.20
5.6.210.0030.02817.43
5.6.200.0080.04316.13
5.6.190.0070.02317.28
5.6.180.0080.03017.38
5.6.170.0250.04517.31
5.6.160.0050.02317.51
5.6.150.0060.04416.15
5.6.140.0100.04116.29
5.6.130.0050.04916.26
5.6.120.0050.02617.79
5.6.110.0030.02417.65
5.6.100.0110.03317.60
5.6.90.0050.04017.50
5.6.80.0050.04817.28
5.6.70.0060.00614.19
5.6.60.0000.01114.27
5.6.50.0000.01314.07
5.6.40.0030.01014.07
5.6.30.0000.01314.30
5.6.20.0000.01514.40
5.6.10.0090.00313.96
5.6.00.0120.00314.28
5.5.380.0000.01514.54
5.5.370.0090.00914.01
5.5.360.0070.00314.33
5.5.350.0080.03317.25
5.5.340.0080.02316.03
5.5.330.0110.04017.27
5.5.320.0200.04517.21
5.5.310.0080.03117.25
5.5.300.0050.02716.12
5.5.290.0070.02515.93
5.5.280.0100.02417.58
5.5.270.0040.02717.57
5.5.260.0050.04417.47
5.5.250.0070.04017.44
5.5.240.1970.02617.07
5.5.230.0000.01414.10
5.5.220.0030.01014.29
5.5.210.0070.00714.24
5.5.200.0040.01114.10
5.5.190.0040.00714.04
5.5.180.0070.00714.02
5.5.170.0090.00314.13
5.5.160.0030.00614.24
5.5.150.0040.00813.96
5.5.140.0030.00914.00
5.5.130.0070.00714.16
5.5.120.0000.01314.13
5.5.110.0070.00714.29
5.5.100.0070.00713.96
5.5.90.0070.00413.98
5.5.80.0080.00314.23
5.5.70.0060.00614.16
5.5.60.0090.00313.74
5.5.50.0060.00613.73
5.5.40.0030.00714.12
5.5.30.0030.00914.09
5.5.20.0070.00713.96
5.5.10.0040.00814.18
5.5.00.0050.00514.05
5.4.450.0180.02516.26
5.4.440.0120.03016.20
5.4.430.0180.02316.08
5.4.420.0290.02316.25
5.4.410.0370.02915.97
5.4.400.0130.02215.88
5.4.390.0500.02016.09
5.4.380.0080.03615.80
5.4.370.0080.03315.71
5.4.360.0100.03215.78
5.4.350.0100.02815.72
5.4.340.0110.02815.81
5.4.330.0000.01212.93
5.4.320.0070.02012.69
5.4.310.0050.02412.69
5.4.300.0050.02412.70
5.4.290.0090.02212.69
5.4.280.0070.02612.64
5.4.270.0070.02412.64
5.4.260.0040.02212.64
5.4.250.0040.02212.64
5.4.240.0050.02212.64
5.4.230.0020.02612.64
5.4.220.0040.02412.64
5.4.210.0020.02612.64
5.4.200.0020.02312.64
5.4.190.0020.02212.63
5.4.180.0030.02112.64
5.4.170.0040.02112.64
5.4.160.0040.02212.64
5.4.150.0080.01812.64
5.4.140.0060.03012.48
5.4.130.0050.02612.47
5.4.120.0080.01812.45
5.4.110.0060.02012.45
5.4.100.0050.02012.45
5.4.90.0060.02112.45
5.4.80.0040.02312.45
5.4.70.0040.02312.45
5.4.60.0040.02012.45
5.4.50.0020.02312.45
5.4.40.0060.01912.44
5.4.30.0050.02112.44
5.4.20.0050.02012.44
5.4.10.0060.02012.44
5.4.00.0050.02312.18
5.3.290.0040.04212.80
5.3.280.0070.04012.71
5.3.270.0080.04512.73
5.3.260.0020.04412.72
5.3.250.0040.04112.72
5.3.240.0090.05312.72
5.3.230.0070.03812.71
5.3.220.0080.04112.68
5.3.210.0080.04312.68
5.3.200.0070.04412.68
5.3.190.0060.04412.68
5.3.180.0040.04512.68
5.3.170.0100.03412.66
5.3.160.0100.03212.67
5.3.150.0070.03612.68
5.3.140.0080.03512.66
5.3.130.0070.04712.66
5.3.120.0040.04012.66
5.3.110.0020.04512.66
5.3.100.0010.04112.12
5.3.90.0050.03912.09
5.3.80.0070.04312.07
5.3.70.0090.04012.07
5.3.60.0090.03412.07
5.3.50.0040.04012.00
5.3.40.0060.03912.00
5.3.30.0080.03511.96
5.3.20.0070.03611.74
5.3.10.0060.05011.70
5.3.00.0070.04811.69
5.2.170.0060.0399.19
5.2.160.0060.0309.20
5.2.150.0060.0309.19
5.2.140.0070.0319.19
5.2.130.0060.0289.15
5.2.120.0080.0269.16
5.2.110.0040.0319.16
5.2.100.0060.0359.15
5.2.90.0070.0399.15
5.2.80.0090.0359.14
5.2.70.0070.0319.15
5.2.60.0060.0309.11
5.2.50.0030.0339.07
5.2.40.0060.0379.05
5.2.30.0040.0369.03
5.2.20.0050.0309.02
5.2.10.0070.0278.93
5.2.00.0090.0378.79
5.1.60.0040.0248.08
5.1.50.0020.0268.07
5.1.40.0080.0238.05
5.1.30.0070.0268.41
5.1.20.0070.0278.43
5.1.10.0030.0288.16
5.1.00.0060.0288.16
5.0.50.0060.0196.63
5.0.40.0040.0206.48
5.0.30.0030.0336.29
5.0.20.0050.0206.26
5.0.10.0050.0276.24
5.0.00.0050.0396.23
4.4.90.0060.0144.77
4.4.80.0000.0184.75
4.4.70.0030.0164.75
4.4.60.0030.0204.75
4.4.50.0020.0224.77
4.4.40.0050.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0154.85
4.4.10.0030.0164.85
4.4.00.0070.0214.76
4.3.110.0030.0214.67
4.3.100.0040.0194.66
4.3.90.0030.0204.63
4.3.80.0030.0314.58
4.3.70.0030.0204.63
4.3.60.0060.0114.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0020.0163.28
4.3.20.0010.0173.26
4.3.10.0040.0133.22
4.3.00.0030.01316.03

preferences:
49.81 ms | 400 KiB | 5 Q