3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = <<<REGEX / (?:\A|\n)\s* (@[\pL-_]+) \ * (?s:(.*?)) (?=\n\s*@|\Z) /sux REGEX; $comment = <<<COMMENT @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.0090.01218.54
8.3.50.0170.00317.84
8.3.40.0150.00018.83
8.3.30.0150.00018.74
8.3.20.0050.00220.33
8.3.10.0040.00420.51
8.3.00.0080.00019.25
8.2.180.0040.01116.63
8.2.170.0180.00422.96
8.2.160.0070.00720.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00222.06
8.2.110.0090.00020.39
8.2.100.0120.00017.91
8.2.90.0040.00419.03
8.2.80.0040.00417.97
8.2.70.0090.00017.62
8.2.60.0070.00317.55
8.2.50.0040.00418.07
8.2.40.0050.00218.09
8.2.30.0040.00417.92
8.2.20.0070.00017.74
8.2.10.0040.00418.02
8.2.00.0030.00517.55
8.1.280.0130.00625.92
8.1.270.0080.00023.77
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.86
8.1.230.0070.00419.00
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0070.00017.11
8.1.180.0030.00718.10
8.1.170.0030.00518.39
8.1.160.0000.00721.88
8.1.150.0030.00518.93
8.1.140.0040.00417.40
8.1.130.0070.00017.83
8.1.120.0030.00517.30
8.1.110.0090.00017.35
8.1.100.0020.00517.41
8.1.90.0000.00717.32
8.1.80.0000.00717.28
8.1.70.0030.00317.32
8.1.60.0050.00817.55
8.1.50.0030.00517.47
8.1.40.0000.00817.34
8.1.30.0030.00617.42
8.1.20.0080.00017.66
8.1.10.0080.00017.54
8.1.00.0050.00217.34
8.0.300.0080.00018.77
8.0.290.0050.00316.63
8.0.280.0050.00318.37
8.0.270.0070.00017.16
8.0.260.0030.00317.13
8.0.250.0000.00716.83
8.0.240.0040.00416.94
8.0.230.0000.00716.88
8.0.220.0000.00716.79
8.0.210.0000.00716.88
8.0.200.0030.00316.87
8.0.190.0070.00317.00
8.0.180.0000.00816.87
8.0.170.0000.00816.80
8.0.160.0040.00416.80
8.0.150.0070.00016.84
8.0.140.0000.00716.90
8.0.130.0030.00313.32
8.0.120.0000.00816.86
8.0.110.0040.00416.89
8.0.100.0000.00716.95
8.0.90.0000.00816.88
8.0.80.0110.01116.89
8.0.70.0000.00916.76
8.0.60.0030.00316.84
8.0.50.0040.00416.88
8.0.30.0120.01017.14
8.0.20.0110.01017.40
8.0.10.0000.00816.88
8.0.00.0080.01016.64
7.4.330.0000.00515.00
7.4.320.0070.00016.57
7.4.300.0030.00316.49
7.4.290.0000.00616.60
7.4.280.0040.00416.49
7.4.270.0070.00016.54
7.4.260.0030.00316.53
7.4.250.0040.00316.56
7.4.240.0050.00216.57
7.4.230.0040.00416.49
7.4.220.0030.01616.42
7.4.210.0000.01416.52
7.4.200.0030.00316.71
7.4.160.0050.01316.53
7.4.150.0070.01117.40
7.4.140.0120.00817.86
7.4.130.0080.00816.49
7.4.120.0070.01316.47
7.4.110.0140.00416.55
7.4.100.0030.01216.48
7.4.90.0130.01216.51
7.4.80.0100.00619.39
7.4.70.0140.00416.67
7.4.60.0120.00616.47
7.4.50.0000.00816.60
7.4.40.0070.01016.64
7.4.30.0030.01416.36
7.4.00.0060.01114.81
7.3.330.0050.00013.20
7.3.320.0030.00313.03
7.3.310.0030.00316.20
7.3.300.0030.00316.28
7.3.290.0160.00316.21
7.3.280.0080.00816.24
7.3.270.0100.01317.40
7.3.260.0090.00916.26
7.3.250.0090.00716.43
7.3.240.0130.00416.41
7.3.230.0030.01216.49
7.3.210.0100.00716.45
7.3.200.0130.00719.39
7.3.190.0100.00716.21
7.3.180.0120.00916.44
7.3.170.0080.00816.27
7.3.160.0100.01316.48
7.3.120.0060.01314.69
7.3.110.0140.00314.94
7.3.100.0070.01114.92
7.3.90.0000.01314.72
7.3.80.0040.01115.08
7.3.70.0040.01114.69
7.3.60.0110.00314.74
7.3.50.0030.01014.59
7.3.40.0040.01114.48
7.3.30.0060.00914.84
7.3.20.0090.00616.70
7.3.10.0160.00316.66
7.3.00.0130.00316.36
7.2.330.0100.00816.43
7.2.320.0090.00916.41
7.2.310.0030.01616.64
7.2.300.0130.01016.66
7.2.290.0140.00516.47
7.2.250.0090.00914.91
7.2.240.0130.00614.75
7.2.230.0120.00615.11
7.2.220.0060.00615.11
7.2.210.0000.01415.02
7.2.200.0040.01415.21
7.2.190.0100.00714.86
7.2.180.0040.01114.89
7.2.170.0030.00915.00
7.2.00.0080.00419.39
7.1.330.0030.01415.85
7.1.320.0000.01415.82
7.1.310.0000.01815.72
7.1.300.0060.01115.66
7.1.290.0040.01115.64
7.1.280.0030.00615.80
7.1.270.0000.01515.84
7.1.260.0020.01616.14
7.1.100.0060.00618.07
7.1.70.0000.01017.28
7.1.60.0000.01519.32
7.1.50.0110.01116.83
7.1.00.0000.08022.57
7.0.200.0030.00616.82
7.0.140.0030.07321.96
7.0.60.0000.07719.89
7.0.50.0200.06017.74
7.0.40.0130.05020.26
7.0.30.0230.08020.15
7.0.20.0300.05020.02
7.0.10.0100.07720.35
7.0.00.0070.04020.21
5.6.280.0030.07321.13
5.6.210.0100.03720.53
5.6.200.0000.04318.23
5.6.190.0100.04020.49
5.6.180.0330.04720.41
5.6.170.0300.07020.41
5.6.160.0030.04020.54
5.6.150.0170.07018.11
5.6.140.0070.08318.12
5.6.130.0030.07318.07
5.6.120.0000.04320.76
5.6.110.0070.04020.88
5.6.100.0100.08320.95
5.6.90.0100.03320.98
5.6.80.0070.08020.28
5.5.350.0200.07320.38
5.5.340.0030.04317.97
5.5.330.0200.07020.47
5.5.320.0370.04720.32
5.5.310.0300.07720.50
5.5.300.0000.08718.00
5.5.290.0000.07717.95
5.5.280.0000.04320.77
5.5.270.0030.04320.83
5.5.260.0070.08720.75
5.5.250.0030.09020.63
5.5.240.0170.02720.18
5.4.450.0100.04719.14
5.4.440.1070.06019.61
5.4.430.0700.05319.41
5.4.420.0830.00019.37
5.4.410.0730.00019.25
5.4.400.0670.00019.23
5.4.390.0630.00019.08
5.4.380.0630.00018.97
5.4.370.0630.00018.99
5.4.360.0600.00019.15
5.4.350.0670.00018.96
5.4.340.0630.00019.14
5.4.320.0060.03712.46
5.4.310.0080.03512.45
5.4.300.0060.03912.46
5.4.290.0060.03712.45
5.4.280.0060.03812.35
5.4.270.0050.04012.35
5.4.260.0050.03812.35
5.4.250.0090.04312.35
5.4.240.0020.03912.35
5.4.230.0090.04712.34
5.4.220.0110.04612.34
5.4.210.0040.03712.34
5.4.200.0050.04312.34
5.4.190.0070.03812.34
5.4.180.0030.03812.34
5.4.170.0050.03612.35
5.4.160.0080.03312.34
5.4.150.0070.03512.34
5.4.140.0120.03012.02
5.4.130.0070.03512.01
5.4.120.0030.03811.98
5.4.110.0040.03711.97
5.4.100.0080.03111.96
5.4.90.0070.04611.97
5.4.80.0080.04211.97
5.4.70.0070.04811.96
5.4.60.0080.04111.96
5.4.50.0050.04011.96
5.4.40.0080.03711.95
5.4.30.0030.03711.95
5.4.20.0090.04911.95
5.4.10.0090.03811.95
5.4.00.0060.03511.44
5.3.290.0080.03612.80
5.3.280.0110.04012.71
5.3.270.0080.04512.72
5.3.260.0040.04312.72
5.3.250.0060.03612.72
5.3.240.0060.03712.71
5.3.230.0070.03512.71
5.3.220.0050.03712.68
5.3.210.0080.04412.68
5.3.200.0090.03612.68
5.3.190.0070.03612.68
5.3.180.0100.03912.67
5.3.170.0080.03512.67
5.3.160.0070.04912.67
5.3.150.0080.03712.67
5.3.140.0070.04012.05
5.3.130.0050.04012.66
5.3.120.0100.04312.65
5.3.110.0090.03912.66
5.3.100.0070.04412.12
5.3.90.0070.04312.08
5.3.80.0070.03412.07
5.3.70.0080.04012.07
5.3.60.0090.04212.06
5.3.50.0070.03712.00
5.3.40.0050.03812.00
5.3.30.0060.03411.96
5.3.20.0050.03611.73
5.3.10.0080.03311.70
5.3.00.0050.03611.69
5.2.170.0040.0309.20
5.2.160.0070.0289.19
5.2.150.0040.0309.19
5.2.140.0080.0409.19
5.2.130.0060.0319.15
5.2.120.0050.0289.15
5.2.110.0060.0289.16
5.2.100.0030.0299.16
5.2.90.0030.0319.15
5.2.80.0040.0369.15
5.2.70.0050.0329.15
5.2.60.0020.0329.11
5.2.50.0040.0319.07
5.2.40.0020.0319.05
5.2.30.0070.0389.03
5.2.20.0080.0269.04
5.2.10.0060.0278.93
5.2.00.0050.0288.80
5.1.60.0060.0228.08
5.1.50.0050.0298.07
5.1.40.0030.0368.06
5.1.30.0040.0268.41
5.1.20.0070.0248.43
5.1.10.0020.0288.15
5.1.00.0040.0278.15
5.0.50.0040.0206.63
5.0.40.0060.0226.49
5.0.30.0020.0326.30
5.0.20.0020.0216.28
5.0.10.0030.0236.25
5.0.00.0060.0376.25
4.4.90.0040.0164.78
4.4.80.0040.0144.76
4.4.70.0040.0144.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0050.0244.71
4.4.30.0030.0164.76
4.4.20.0030.0164.85
4.4.10.0050.0174.85
4.4.00.0050.0244.76
4.3.110.0020.0224.66
4.3.100.0020.0164.67
4.3.90.0010.0164.63
4.3.80.0040.0234.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0040.0144.63
4.3.40.0040.0234.54
4.3.30.0030.0233.29
4.3.20.0020.0163.27
4.3.10.0010.0183.22
4.3.00.0030.01716.50

preferences:
77.1 ms | 400 KiB | 5 Q