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.0070.00718.55
8.3.50.0100.00723.14
8.3.40.0130.00318.92
8.3.30.0070.00718.93
8.3.20.0000.00720.34
8.3.10.0050.00323.65
8.3.00.0040.00419.51
8.2.180.0150.00616.88
8.2.170.0150.00422.96
8.2.160.0100.00720.24
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00021.13
8.2.110.0070.00719.31
8.2.100.0090.00317.97
8.2.90.0140.00018.15
8.2.80.0030.00617.97
8.2.70.0000.00917.49
8.2.60.0000.00817.88
8.2.50.0000.00818.07
8.2.40.0000.00818.04
8.2.30.0040.00418.11
8.2.20.0000.00817.98
8.2.10.0040.00418.23
8.2.00.0040.00418.11
8.1.280.0040.01125.92
8.1.270.0070.00724.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.52
8.1.230.0040.00720.92
8.1.220.0000.00817.76
8.1.210.0050.00318.87
8.1.200.0030.00617.47
8.1.190.0060.00317.22
8.1.180.0030.00618.10
8.1.170.0040.00418.78
8.1.160.0000.00822.00
8.1.150.0000.00819.00
8.1.140.0000.00717.54
8.1.130.0000.00717.94
8.1.120.0000.00817.48
8.1.110.0040.00417.60
8.1.100.0040.00417.48
8.1.90.0000.00717.54
8.1.80.0040.00417.63
8.1.70.0040.00417.48
8.1.60.0040.00417.66
8.1.50.0000.00917.64
8.1.40.0000.00817.53
8.1.30.0030.00517.66
8.1.20.0040.00417.73
8.1.10.0040.00417.57
8.1.00.0000.00817.55
8.0.300.0080.00019.98
8.0.290.0050.00317.00
8.0.280.0040.00418.38
8.0.270.0030.00317.25
8.0.260.0030.00317.20
8.0.250.0030.00317.20
8.0.240.0000.00717.09
8.0.230.0000.00717.16
8.0.220.0080.00017.19
8.0.210.0000.00817.13
8.0.200.0030.00317.23
8.0.190.0080.00317.20
8.0.180.0000.00917.11
8.0.170.0030.00517.00
8.0.160.0000.00717.00
8.0.150.0000.00716.99
8.0.140.0000.00717.02
8.0.130.0070.00013.54
8.0.120.0080.00017.04
8.0.110.0040.00417.17
8.0.100.0030.00617.24
8.0.90.0040.00417.24
8.0.80.0100.00617.19
8.0.70.0040.00417.19
8.0.60.0070.00017.20
8.0.50.0000.00717.21
8.0.30.0120.00817.31
8.0.20.0150.00617.40
8.0.10.0040.00417.05
8.0.00.0120.00816.93
7.4.330.0000.00515.14
7.4.320.0030.00316.80
7.4.300.0000.00716.84
7.4.290.0030.00316.74
7.4.280.0070.00016.73
7.4.270.0030.00316.74
7.4.260.0040.00916.85
7.4.250.0000.00716.81
7.4.240.0020.00516.86
7.4.230.0030.00316.74
7.4.220.0120.00616.70
7.4.210.0000.01816.82
7.4.200.0080.00016.95
7.4.160.0070.01016.84
7.4.150.0140.00417.40
7.4.140.0100.00717.86
7.4.130.0110.00716.55
7.4.120.0090.01016.73
7.4.110.0170.00016.64
7.4.100.0090.00916.69
7.4.90.0060.01116.71
7.4.80.0030.01919.39
7.4.70.0070.01016.75
7.4.60.0090.00916.74
7.4.50.0040.00016.56
7.4.40.0080.00816.58
7.4.30.0100.00716.71
7.4.00.0060.00915.24
7.3.330.0060.00013.35
7.3.320.0000.00613.30
7.3.310.0030.00316.45
7.3.300.0040.00416.43
7.3.290.0140.00016.47
7.3.280.0060.01216.40
7.3.270.0090.00917.40
7.3.260.0070.01016.43
7.3.250.0080.01116.47
7.3.240.0110.00616.66
7.3.230.0120.00616.46
7.3.210.0060.01216.68
7.3.200.0070.01319.39
7.3.190.0060.01216.55
7.3.180.0080.00816.30
7.3.170.0060.00916.62
7.3.160.0110.00716.61
7.2.330.0100.01316.72
7.2.320.0140.00616.89
7.2.310.0060.01116.72
7.2.300.0130.00916.61
7.2.290.0130.00316.68
7.2.120.0170.00316.69
7.2.110.0070.01016.84
7.2.100.0170.00216.78
7.2.90.0160.00016.77
7.2.80.0100.00716.70
7.2.70.0130.00616.88
7.2.60.0110.00817.04
7.2.50.0130.00316.94
7.2.40.0110.00717.13
7.2.30.0050.01016.91
7.2.20.0120.01116.90
7.2.10.0190.00017.12
7.2.00.0050.01218.26
7.1.240.0140.00015.95
7.1.230.0140.00415.97
7.1.220.0150.00415.70
7.1.210.0110.00415.92
7.1.200.0080.00915.93
7.1.190.0070.01015.93
7.1.180.0130.00515.96
7.1.170.0080.00315.92
7.1.160.0040.01115.93
7.1.150.0080.00815.97
7.1.140.0130.00015.89
7.1.130.0130.00415.69
7.1.120.0110.00715.92
7.1.110.0130.00315.91
7.1.100.0060.00917.17
7.1.90.0070.00715.68
7.1.80.0030.01315.83
7.1.70.0060.00716.71
7.1.60.0100.01117.62
7.1.50.0020.01716.55
7.1.40.0040.00816.00
7.1.30.0090.00615.65
7.1.20.0070.01015.90
7.1.10.0030.00915.68
7.1.00.0070.04019.12
7.0.320.0100.01115.65
7.0.310.0080.00815.48
7.0.300.0120.00515.38
7.0.290.0110.00615.54
7.0.280.0070.00915.54
7.0.270.0130.00415.67
7.0.260.0110.00615.78
7.0.250.0120.00315.70
7.0.240.0080.00815.77
7.0.230.0100.00615.62
7.0.220.0140.00415.62
7.0.210.0080.00815.79
7.0.200.0070.00416.20
7.0.190.0000.00815.47
7.0.180.0060.00915.79
7.0.170.0000.00815.57
7.0.160.0070.00715.59
7.0.150.0000.01615.80
7.0.140.0050.03718.91
7.0.130.0070.00715.49
7.0.120.0030.00715.70
7.0.110.0040.00715.64
7.0.100.0030.00915.38
7.0.90.0130.00315.36
7.0.80.0120.00315.66
7.0.70.0040.00415.47
7.0.60.0070.03817.80
7.0.50.0080.04016.61
7.0.40.0040.02916.84
7.0.30.0290.04017.03
7.0.20.0170.03216.77
7.0.10.0050.04116.88
7.0.00.0120.04017.03
5.6.380.0110.00714.52
5.6.370.0060.01414.33
5.6.360.0060.00914.22
5.6.350.0040.00914.09
5.6.340.0150.00014.21
5.6.330.0120.00014.52
5.6.320.0100.00514.46
5.6.310.0110.00414.39
5.6.300.0000.01114.58
5.6.290.0060.00314.45
5.6.280.0080.03817.80
5.6.270.0060.00914.22
5.6.260.0070.00714.42
5.6.250.0100.00314.36
5.6.240.0060.00314.40
5.6.230.0100.00614.61
5.6.220.0090.00314.21
5.6.210.0050.02117.52
5.6.200.0060.03116.15
5.6.190.0070.02217.29
5.6.180.0210.03717.34
5.6.170.0200.04217.29
5.6.160.0050.02317.30
5.6.150.0100.03816.12
5.6.140.0070.04016.13
5.6.130.0080.04016.26
5.6.120.0050.02317.63
5.6.110.0120.02217.55
5.6.100.0050.03717.60
5.6.90.0070.02817.74
5.6.80.0030.03517.24
5.6.70.0040.01114.09
5.6.60.0080.00014.49
5.6.50.0080.00814.24
5.6.40.0030.00613.96
5.6.30.0040.01114.43
5.6.20.0030.01214.49
5.6.10.0000.01213.88
5.6.00.0070.00714.21
5.5.380.0070.00811.09
5.5.370.0070.00310.88
5.5.360.0030.01010.86
5.5.350.0080.03015.77
5.5.340.0040.02914.54
5.5.330.0090.02015.62
5.5.320.0240.02815.43
5.5.310.0240.03815.63
5.5.300.0050.02314.52
5.5.290.0070.02214.56
5.5.280.0080.04316.01
5.5.270.0070.02715.77
5.5.260.0110.04115.84
5.5.250.0040.02915.62
5.5.240.0150.04315.41
5.5.230.0080.00311.03
5.5.220.0090.00011.03
5.5.210.0080.00510.94
5.5.200.0070.00510.91
5.5.190.0090.00010.98
5.5.180.0030.00710.95
5.5.170.0120.00614.15
5.5.160.0070.00411.02
5.5.150.0090.00610.94
5.5.140.0120.00010.94
5.5.130.0080.00510.79
5.5.120.0070.00710.75
5.5.110.0120.00010.81
5.5.100.0100.00611.13
5.5.90.0130.00010.88
5.5.80.0080.00811.01
5.5.70.0060.00610.70
5.5.60.0110.00010.85
5.5.50.0070.00711.05
5.5.40.0100.00511.00
5.5.30.0050.00511.01
5.5.20.0060.00710.93
5.5.10.0040.00910.88
5.5.00.0110.00310.80
5.4.450.0150.02515.23
5.4.440.0180.02015.22
5.4.430.0260.02715.07
5.4.420.0260.02015.23
5.4.410.0480.02415.21
5.4.400.0440.02614.96
5.4.390.0220.01914.92
5.4.380.0100.03114.74
5.4.370.0130.02714.79
5.4.360.0110.02814.84
5.4.350.0120.02814.87
5.4.340.0160.02314.66
5.4.330.0040.00910.93
5.4.320.0090.01911.79
5.4.310.0080.02111.68
5.4.300.0040.02411.57
5.4.290.0100.01911.74
5.4.280.0060.02011.67
5.4.270.0080.02211.58
5.4.260.0040.02311.61
5.4.250.0070.02011.61
5.4.240.0090.01911.64
5.4.230.0090.02111.61
5.4.220.0100.02311.65
5.4.210.0050.02211.51
5.4.200.0100.02211.68
5.4.190.0080.02611.41
5.4.180.0080.02011.59
5.4.170.0100.02011.49
5.4.160.0080.02211.51
5.4.150.0070.02211.68
5.4.140.0060.02411.46
5.4.130.0090.01811.47
5.4.120.0060.02111.33
5.4.110.0090.02011.33
5.4.100.0080.02011.29
5.4.90.0060.02411.42
5.4.80.0090.02011.35
5.4.70.0090.01811.46
5.4.60.0110.02611.37
5.4.50.0090.02311.39
5.4.40.0100.02411.30
5.4.30.0070.02111.29
5.4.20.0060.02111.43
5.4.10.0080.02111.39
5.4.00.0070.02011.15
5.3.290.0090.01911.66
5.3.280.0070.02211.43
5.3.270.0050.02511.58
5.3.260.0060.02311.51
5.3.250.0080.02211.59
5.3.240.0080.02311.50
5.3.230.0080.02111.55
5.3.220.0090.01911.51
5.3.210.0100.02311.54
5.3.200.0060.02211.54
5.3.190.0090.02611.46
5.3.180.0050.02311.63
5.3.170.0090.01911.49
5.3.160.0080.02111.55
5.3.150.0040.02411.54
5.3.140.0080.02211.59
5.3.130.0070.02211.46
5.3.120.0100.02611.52
5.3.110.0080.02011.54
5.3.100.0060.02111.25
5.3.90.0060.02111.27
5.3.80.0060.02111.06
5.3.70.0110.01811.19
5.3.60.0080.02011.23
5.3.50.0040.03011.10
5.3.40.0090.02211.11
5.3.30.0070.02111.10
5.3.20.0060.02111.01
5.3.10.0080.01810.90
5.3.00.0060.02310.90
5.2.170.0070.0179.52
5.2.160.0060.0169.52
5.2.150.0080.0189.52
5.2.140.0060.0179.52
5.2.130.0060.0199.49
5.2.120.0060.0169.49
5.2.110.0050.0179.50
5.2.100.0060.0159.49
5.2.90.0050.0169.49
5.2.80.0050.0189.49
5.2.70.0080.0149.49
5.2.60.0040.0199.47
5.2.50.0040.0189.46
5.2.40.0070.0159.44
5.2.30.0060.0159.43
5.2.20.0040.0169.43
5.2.10.0050.0189.38
5.2.00.0070.0159.31
5.1.60.0040.0148.96
5.1.50.0020.0168.96
5.1.40.0040.0168.95
5.1.30.0020.0179.12
5.1.20.0080.0139.13
5.1.10.0050.0149.00
5.1.00.0050.0139.00
5.0.50.0010.0168.23
5.0.40.0040.0118.16
5.0.30.0050.0168.06
5.0.20.0050.0098.05
5.0.10.0040.0128.04
5.0.00.0050.0178.04
4.4.90.0010.0127.31
4.4.80.0030.0137.29
4.4.70.0010.0147.29
4.4.60.0020.0097.30
4.4.50.0030.0097.30
4.4.40.0020.0147.27
4.4.30.0020.0127.30
4.4.20.0040.0097.34
4.4.10.0040.0117.34
4.4.00.0040.0147.29
4.3.110.0020.0117.25
4.3.100.0010.0107.25
4.3.90.0040.0077.23
4.3.80.0050.0137.21
4.3.70.0010.0117.23
4.3.60.0020.0097.23
4.3.50.0030.0087.23
4.3.40.0040.0157.19
4.3.30.0010.0116.56
4.3.20.0030.0096.55
4.3.10.0040.0086.53
4.3.00.0120.01312.93

preferences:
48.26 ms | 401 KiB | 5 Q