3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comment = <<<COMMENT #@+ This is a summary. This is a description. COMMENT; // 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.60.0000.01418.56
8.3.50.0180.00020.20
8.3.40.0080.00818.75
8.3.30.0100.00319.09
8.3.20.0030.00620.16
8.3.10.0000.00823.56
8.3.00.0080.01119.63
8.2.180.0120.00318.23
8.2.170.0040.01122.96
8.2.160.0090.00619.14
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0050.00321.04
8.2.110.0030.00622.27
8.2.100.0000.01220.32
8.2.90.0000.00919.17
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0000.00918.07
8.2.40.0050.00318.09
8.2.30.0040.00418.24
8.2.20.0040.00417.94
8.2.10.0000.00818.29
8.2.00.0040.00417.96
8.1.280.0070.00725.92
8.1.270.0050.00324.01
8.1.260.0000.00826.35
8.1.250.0020.00528.09
8.1.240.0000.01022.10
8.1.230.0120.00019.17
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0030.00717.36
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00722.05
8.1.150.0050.00318.93
8.1.140.0040.00417.68
8.1.130.0040.00417.97
8.1.120.0040.00417.57
8.1.110.0040.00417.60
8.1.100.0000.00717.59
8.1.90.0030.00517.56
8.1.80.0030.00417.47
8.1.70.0040.00417.53
8.1.60.0040.00417.62
8.1.50.0030.00517.64
8.1.40.0000.00817.52
8.1.30.0030.00517.77
8.1.20.0040.00417.73
8.1.10.0040.00417.57
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0030.00617.13
8.0.280.0040.00418.37
8.0.270.0000.00817.27
8.0.260.0000.00617.16
8.0.250.0040.00417.21
8.0.240.0030.00317.21
8.0.230.0000.00717.07
8.0.220.0000.00817.19
8.0.210.0030.00317.05
8.0.200.0030.00317.14
8.0.190.0090.00317.18
8.0.180.0040.00816.89
8.0.170.0050.00217.06
8.0.160.0040.00416.99
8.0.150.0050.00217.13
8.0.140.0000.00816.99
8.0.130.0030.00313.64
8.0.120.0030.00517.07
8.0.110.0080.00017.05
8.0.100.0030.00517.05
8.0.90.0040.00417.21
8.0.80.0090.00617.19
8.0.70.0080.00017.09
8.0.60.0030.00517.08
8.0.50.0000.00717.08
8.0.30.0080.01417.12
8.0.20.0130.00917.40
8.0.10.0080.00017.25
8.0.00.0100.00816.88
7.4.330.0050.00015.02
7.4.320.0000.00616.85
7.4.300.0060.00016.59
7.4.290.0040.00416.64
7.4.280.0040.00416.81
7.4.270.0080.00016.72
7.4.260.0040.00416.82
7.4.250.0040.00416.63
7.4.240.0020.00516.79
7.4.230.0030.00316.86
7.4.220.0080.01616.78
7.4.210.0040.01216.84
7.4.200.0060.00316.71
7.4.160.0130.00316.59
7.4.150.0080.01117.40
7.4.140.0130.00417.86
7.4.130.0090.01016.76
7.4.120.0140.00316.68
7.4.110.0070.01016.69
7.4.100.0060.01216.62
7.4.90.0100.01416.70
7.4.80.0090.00919.39
7.4.70.0080.00916.80
7.4.60.0090.00916.71
7.4.50.0000.00416.76
7.4.40.0060.01016.75
7.4.30.0030.01316.57
7.4.00.0050.01014.89
7.3.330.0030.00313.26
7.3.320.0000.00613.16
7.3.310.0040.00416.58
7.3.300.0000.00716.48
7.3.290.0090.00616.43
7.3.280.0070.01016.44
7.3.270.0120.00617.40
7.3.260.0120.00616.60
7.3.250.0160.00516.41
7.3.240.0180.00016.68
7.3.230.0110.00616.43
7.3.210.0090.00916.68
7.3.200.0150.00319.39
7.3.190.0100.00616.48
7.3.180.0040.01216.38
7.3.170.0080.00816.49
7.3.160.0150.00016.31
7.3.120.0060.00614.69
7.3.110.0100.01015.16
7.3.100.0150.00415.17
7.3.90.0080.00614.96
7.3.80.0090.00914.68
7.3.70.0040.00814.74
7.3.60.0070.00714.93
7.3.50.0100.00714.69
7.3.40.0040.00714.53
7.3.30.0070.00714.74
7.3.20.0060.00916.63
7.3.10.0030.00616.74
7.3.00.0060.00316.73
7.2.330.0100.01016.79
7.2.320.0110.01216.79
7.2.310.0210.00016.61
7.2.300.0000.02116.75
7.2.290.0090.00616.79
7.2.250.0110.00715.00
7.2.240.0030.01615.15
7.2.230.0070.00715.07
7.2.220.0030.01215.02
7.2.210.0060.01015.06
7.2.200.0070.01114.99
7.2.190.0090.00614.76
7.2.180.0060.00314.77
7.2.170.0100.00314.84
7.2.160.0030.01315.04
7.2.150.0120.00316.76
7.2.140.0030.00716.76
7.2.130.0070.01016.69
7.2.120.0070.00316.86
7.2.110.0100.00716.76
7.2.100.0000.01216.90
7.2.90.0030.01016.67
7.2.80.0060.00916.91
7.2.70.0070.01116.86
7.2.60.0090.00316.98
7.2.50.0070.00717.13
7.2.40.0100.00716.97
7.2.30.0060.00916.86
7.2.20.0040.01117.01
7.2.10.0090.00316.95
7.2.00.0080.00816.67
7.1.330.0000.01316.04
7.1.320.0060.01216.02
7.1.310.0070.01015.85
7.1.300.0040.00815.76
7.1.290.0040.01115.88
7.1.280.0000.00915.95
7.1.270.0090.00615.84
7.1.260.0110.00016.07
7.1.250.0030.01015.67
7.1.240.0090.00615.99
7.1.230.0100.00716.01
7.1.220.0060.00915.91
7.1.210.0030.00615.67
7.1.200.0010.01115.83
7.1.190.0070.01015.88
7.1.180.0090.00315.65
7.1.170.0080.00015.84
7.1.160.0040.01415.90
7.1.150.0070.01015.55
7.1.140.0060.01016.01
7.1.130.0000.01315.98
7.1.120.0090.00615.59
7.1.110.0060.00915.83
7.1.100.0060.00816.98
7.1.90.0080.00415.79
7.1.80.0030.01315.93
7.1.70.0010.00816.54
7.1.60.0050.01417.59
7.1.50.0090.00916.50
7.1.40.0000.01015.84
7.1.30.0100.00315.69
7.1.20.0110.00416.00
7.1.10.0030.01015.69
7.1.00.0060.03819.09
7.0.330.0000.01315.56
7.0.320.0060.00615.52
7.0.310.0070.01015.50
7.0.300.0040.00715.18
7.0.290.0110.00015.56
7.0.280.0040.00415.58
7.0.270.0030.00715.69
7.0.260.0070.00715.56
7.0.250.0070.00715.49
7.0.240.0080.00415.34
7.0.230.0090.00915.29
7.0.220.0040.00915.70
7.0.210.0030.01215.42
7.0.200.0080.00516.03
7.0.190.0070.00315.63
7.0.180.0090.00615.45
7.0.170.0090.00615.46
7.0.160.0040.00715.61
7.0.150.0040.01115.50
7.0.140.0050.03818.76
7.0.130.0060.00615.36
7.0.120.0080.00315.63
7.0.110.0060.00615.49
7.0.100.0030.01015.60
7.0.90.0000.01515.64
7.0.80.0070.00715.22
7.0.70.0000.01315.49
7.0.60.0030.03617.82
7.0.50.0110.03316.72
7.0.40.0030.02416.72
7.0.30.0230.03016.93
7.0.20.0140.02916.97
7.0.10.0080.04516.90
7.0.00.0030.02816.75
5.6.400.0000.01214.46
5.6.390.0130.00313.86
5.6.380.0000.00814.01
5.6.370.0030.00814.25
5.6.360.0060.00914.48
5.6.350.0000.01014.40
5.6.340.0080.00514.20
5.6.330.0060.00613.97
5.6.320.0080.00814.04
5.6.310.0030.01114.58
5.6.300.0030.00714.30
5.6.290.0090.00014.34
5.6.280.0060.03817.55
5.6.270.0060.00814.06
5.6.260.0000.01314.49
5.6.250.0000.01414.18
5.6.240.0000.00914.10
5.6.230.0080.00314.54
5.6.220.0060.00314.55
5.6.210.0050.02317.54
5.6.200.0090.04016.29
5.6.190.0030.02617.35
5.6.180.0150.04017.37
5.6.170.0170.03417.30
5.6.160.0060.02317.22
5.6.150.0060.02016.08
5.6.140.0050.03016.13
5.6.130.0030.04516.18
5.6.120.0020.02517.52
5.6.110.0030.05217.77
5.6.100.0030.05317.68
5.6.90.0030.04917.56
5.6.80.0030.04317.48
5.6.70.0040.01514.11
5.6.60.0060.00914.40
5.6.50.0090.00914.04
5.6.40.0040.01414.04
5.6.30.0070.00714.28
5.6.20.0040.01514.26
5.6.10.0000.00914.24
5.6.00.0120.00313.98
5.5.380.0030.00713.98
5.5.370.0070.00714.13
5.5.360.0000.01014.16
5.5.350.0040.04017.21
5.5.340.0020.04116.00
5.5.330.0040.02217.26
5.5.320.0260.03517.18
5.5.310.0180.03017.29
5.5.300.0090.02116.11
5.5.290.0020.02716.02
5.5.280.0110.02017.26
5.5.270.0090.04217.59
5.5.260.0090.03717.43
5.5.250.0020.04417.27
5.5.240.0150.04217.27
5.5.230.0000.01413.91
5.5.220.0130.00314.17
5.5.210.0000.01414.25
5.5.200.0030.01414.31
5.5.190.0080.00814.18
5.5.180.0040.01214.23
5.5.170.0000.01014.29
5.5.160.0030.01014.11
5.5.150.0080.00214.22
5.5.140.0030.01014.09
5.5.130.0030.01213.77
5.5.120.0070.00713.74
5.5.110.0070.00313.81
5.5.100.0060.00913.85
5.5.90.0030.00714.14
5.5.80.0100.00014.25
5.5.70.0000.01213.90
5.5.60.0030.01014.25
5.5.50.0000.01414.17
5.5.40.0090.00613.85
5.5.30.0040.01513.89
5.5.20.0040.01514.29
5.5.10.0040.00713.98
5.5.00.0030.01013.95
5.4.450.0110.02115.91
5.4.440.0110.03115.93
5.4.430.0140.02615.91
5.4.420.0180.02815.95
5.4.410.0080.03715.72
5.4.400.0150.02215.76
5.4.390.0180.03315.69
5.4.380.0100.02015.85
5.4.370.0130.01915.77
5.4.360.0120.02215.77
5.4.350.0000.02615.61
5.4.340.0060.02315.77
5.4.330.0040.00812.45
5.4.320.0120.02015.63
5.4.310.0100.02315.83
5.4.300.0120.02015.66
5.4.290.0110.02015.79
5.4.280.0130.02415.77
5.4.270.0080.04015.77
5.4.260.0100.02315.66
5.4.250.0180.03315.79
5.4.240.0100.02915.69
5.4.230.0090.02315.77
5.4.220.0050.04215.62
5.4.210.0060.02415.62
5.4.200.0000.02615.76
5.4.190.0800.03415.78
5.4.180.1020.02215.78
5.4.170.1000.02415.76
5.4.160.1180.01715.74
5.4.150.1020.02315.82
5.4.140.1050.01814.36
5.4.130.1250.02314.39
5.4.120.1150.02214.32
5.4.110.1100.02414.36
5.4.100.0950.02314.46
5.4.90.0130.02614.46
5.4.80.0080.02714.37
5.4.70.0130.03514.41
5.4.60.0100.03214.42
5.4.50.0100.02714.36
5.4.40.0150.02514.48
5.4.30.0150.03814.24
5.4.20.0150.03014.46
5.4.10.0150.02214.38
5.4.00.0110.02914.08
5.3.290.0200.07714.50
5.3.280.0370.05714.54
5.3.270.0200.06714.47
5.3.260.0200.05714.54
5.3.250.0270.05314.55
5.3.240.0200.05014.56
5.3.230.0130.04014.53
5.3.220.0230.03014.50
5.3.210.0270.06314.40
5.3.200.0130.05314.55
5.3.190.0270.06714.51
5.3.180.0270.03714.55
5.3.170.0230.04714.58
5.3.160.0230.04314.58
5.3.150.0270.06014.51
5.3.140.0200.07014.57
5.3.130.0200.04014.42
5.3.120.0130.07314.39
5.3.110.0100.05714.64
5.3.100.0200.07014.13
5.3.90.0200.05713.99
5.3.80.0130.05014.03
5.3.70.0230.06014.02
5.3.60.0200.05314.10
5.3.50.0170.03714.05
5.3.40.0170.03713.90
5.3.30.0130.05313.81
5.3.20.0130.04013.80
5.3.10.0200.04713.64
5.3.00.0230.07013.50
5.2.170.0270.04310.99
5.2.160.0170.04311.09
5.2.150.0170.02711.20
5.2.140.0130.03711.00
5.2.130.0170.04311.05
5.2.120.0170.02711.26
5.2.110.0130.03011.11
5.2.100.0170.05311.20
5.2.90.0100.03010.95
5.2.80.0100.03311.17
5.2.70.0170.02711.13
5.2.60.0170.02310.90
5.2.50.0130.03310.86
5.2.40.0100.03710.84
5.2.30.0130.03010.92
5.2.20.0070.03310.97
5.2.10.0100.04710.82
5.2.00.0170.05710.63
5.1.60.0170.04310.12
5.1.50.0170.0379.86
5.1.40.0130.0279.90
5.1.30.0130.05310.19
5.1.20.0230.04010.31
5.1.10.0200.03010.23
5.1.00.0130.03010.19
5.0.50.0030.0408.52
5.0.40.0030.0438.35
5.0.30.0100.0338.27
5.0.20.0130.0408.21
5.0.10.0070.0278.39
5.0.00.0030.0338.24
4.4.90.0070.0207.99
4.4.80.0070.0277.99
4.4.70.0030.0207.99
4.4.60.0000.0207.99
4.4.50.0130.0277.99
4.4.40.0030.0277.99
4.4.30.0030.0407.99
4.4.20.0070.0177.99
4.4.10.0030.0207.99
4.4.00.0030.0277.99
4.3.110.0070.0207.99
4.3.100.0070.0337.99
4.3.90.0070.0177.99
4.3.80.0070.0277.99
4.3.70.0000.0207.99
4.3.60.0100.0137.99
4.3.50.0070.0177.99
4.3.40.0030.0507.99
4.3.30.0070.0177.99
4.3.20.0030.0207.99
4.3.10.0030.0377.99
4.3.00.0030.0237.99

preferences:
50.02 ms | 400 KiB | 5 Q