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.40.0070.00718.87
8.3.30.0140.00018.96
8.3.20.0040.00420.25
8.3.10.0060.00320.67
8.3.00.0050.00319.38
8.2.170.0150.00418.79
8.2.160.0120.00422.96
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00622.07
8.2.110.0000.00920.44
8.2.100.0090.00317.93
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0060.00617.63
8.2.60.0070.00017.80
8.2.50.0060.00318.07
8.2.40.0000.00718.03
8.2.30.0000.00718.06
8.2.20.0000.00917.60
8.2.10.0050.00218.01
8.2.00.0000.00717.78
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.13
8.1.230.0090.00319.07
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0040.00421.96
8.1.150.0040.00418.91
8.1.140.0000.00817.39
8.1.130.0070.00017.79
8.1.120.0000.00717.47
8.1.110.0000.00717.44
8.1.100.0030.00317.29
8.1.90.0000.00717.40
8.1.80.0000.00717.48
8.1.70.0030.00317.38
8.1.60.0000.00917.53
8.1.50.0050.00317.48
8.1.40.0080.00017.40
8.1.30.0040.00417.63
8.1.20.0040.00417.63
8.1.10.0050.00517.57
8.1.00.0040.00417.47
8.0.300.0030.00518.77
8.0.290.0050.00316.63
8.0.280.0000.00718.34
8.0.270.0040.00417.10
8.0.260.0000.00717.23
8.0.250.0020.00517.02
8.0.240.0000.00616.99
8.0.230.0030.00316.99
8.0.220.0060.00016.82
8.0.210.0070.00016.97
8.0.200.0000.00717.01
8.0.190.0080.00016.86
8.0.180.0050.00216.86
8.0.170.0030.00617.02
8.0.160.0040.00416.96
8.0.150.0000.00816.87
8.0.140.0040.00716.84
8.0.130.0000.00613.35
8.0.120.0080.00016.93
8.0.110.0030.00516.89
8.0.100.0080.00016.82
8.0.90.0030.00316.84
8.0.80.0090.00616.97
8.0.70.0040.00416.95
8.0.60.0070.00016.98
8.0.50.0000.00716.83
8.0.30.0080.01417.15
8.0.20.0070.01317.40
8.0.10.0000.00816.91
8.0.00.0030.01416.69
7.4.330.0030.00315.09
7.4.320.0000.00716.54
7.4.300.0040.00416.52
7.4.290.0080.00016.43
7.4.280.0060.00316.53
7.4.270.0000.00716.63
7.4.260.0000.00916.53
7.4.250.0000.00716.64
7.4.240.0030.00516.60
7.4.230.0030.00416.62
7.4.220.0090.01316.59
7.4.210.0070.00716.72
7.4.200.0030.00316.38
7.4.160.0100.01016.54
7.4.150.0080.00817.40
7.4.140.0130.00717.86
7.4.130.0080.01016.59
7.4.120.0100.00716.45
7.4.110.0030.01416.57
7.4.100.0030.01316.55
7.4.90.0150.00316.73
7.4.80.0100.00919.39
7.4.70.0070.01016.54
7.4.60.0160.00316.57
7.4.50.0000.00516.57
7.4.40.0100.00716.54
7.4.30.0090.00916.68
7.4.00.0060.01014.84
7.3.330.0030.00313.15
7.3.320.0000.00513.16
7.3.310.0000.00716.36
7.3.300.0040.00416.26
7.3.290.0120.00616.38
7.3.280.0100.00716.28
7.3.270.0150.00917.40
7.3.260.0130.00616.28
7.3.250.0150.00416.53
7.3.240.0030.01416.22
7.3.230.0100.00616.39
7.3.210.0140.00616.32
7.3.200.0120.01219.39
7.3.190.0090.01216.20
7.3.180.0110.00716.49
7.3.170.0070.01016.27
7.3.160.0040.01416.27
7.3.120.0030.01214.47
7.3.110.0110.00714.64
7.3.100.0090.00614.73
7.3.90.0000.01314.60
7.3.80.0070.00714.54
7.3.70.0030.01014.71
7.3.60.0070.00314.83
7.3.50.0000.01214.53
7.3.40.0060.00614.59
7.3.30.0120.00314.84
7.3.20.0040.00716.79
7.3.10.0090.00316.55
7.3.00.0000.01416.56
7.2.330.0110.00916.74
7.2.320.0100.01016.66
7.2.310.0100.01016.76
7.2.300.0110.00816.77
7.2.290.0180.00916.75
7.2.250.0090.00914.99
7.2.240.0030.01714.93
7.2.230.0080.00815.08
7.2.220.0080.00815.16
7.2.210.0100.00715.13
7.2.200.0060.01015.17
7.2.190.0040.01215.13
7.2.180.0040.00815.19
7.2.170.0000.01015.14
7.2.00.0080.00819.58
7.1.330.0090.00616.14
7.1.320.0030.01316.05
7.1.310.0100.00616.15
7.1.300.0000.01115.80
7.1.290.0030.00915.63
7.1.280.0160.00316.13
7.1.270.0000.01415.96
7.1.260.0060.00616.09
7.1.100.0000.01218.65
7.1.70.0040.00717.36
7.1.60.0170.01019.32
7.1.50.0210.00735.08
7.1.00.0070.07322.50
7.0.200.0000.00916.86
7.0.140.0070.06722.01
7.0.110.0070.07020.04
7.0.100.0130.06719.98
7.0.90.0130.07320.05
7.0.80.0130.06019.99
7.0.70.0030.08319.98
7.0.60.0200.07020.14
7.0.50.0100.08019.97
7.0.40.0130.07019.85
7.0.30.0070.05719.78
7.0.20.0100.08019.80
7.0.10.0070.04019.80
7.0.00.0070.04019.79
5.6.280.0100.06720.89
5.6.260.0100.07020.71
5.6.250.0070.07020.66
5.6.240.0070.08720.56
5.6.230.0070.06320.69
5.6.220.0070.08720.67
5.6.210.0070.05720.55
5.6.200.0100.06020.68
5.6.190.0030.07020.55
5.6.180.0000.04720.61
5.6.170.0130.06020.70
5.6.160.0030.04320.61
5.6.150.0000.07320.55
5.6.140.0030.07320.68
5.6.130.0030.05320.84
5.6.120.0030.06320.69
5.6.110.0030.04320.65
5.6.100.0030.09020.54
5.6.90.0030.04020.59
5.6.80.0070.06019.84
5.6.70.0100.06019.92
5.6.60.0000.06019.92
5.6.50.0030.06019.84
5.6.40.0030.05720.06
5.6.30.0030.04719.95
5.6.20.0100.06019.98
5.6.10.0030.05319.91
5.6.00.0130.06719.96
5.5.380.0130.07017.54
5.5.370.0070.06717.62
5.5.360.0130.06717.60
5.5.350.0030.04317.75
5.5.340.0130.07717.85
5.5.330.0000.04317.98
5.5.320.0100.07318.18
5.5.310.0030.08318.13
5.5.300.0100.04018.25
5.5.290.0030.07018.02
5.5.280.0070.03318.12
5.5.270.0030.05017.97
5.5.260.0070.03318.12
5.5.250.0000.05017.67
5.5.240.0070.07717.51
5.5.230.0070.03317.24
5.5.220.0000.06317.50
5.5.210.0030.05717.38
5.5.200.0000.05017.45
5.5.190.0030.06317.36
5.5.180.0070.05317.34
5.5.160.0030.04717.53
5.5.150.0030.07317.45
5.5.140.0000.04017.60
5.5.130.0000.05717.38
5.5.120.0030.06017.59
5.5.110.0000.04317.47
5.5.100.0000.04017.11
5.5.90.0030.07317.34
5.5.80.0000.04017.37
5.5.70.0170.06017.11
5.5.60.0100.05717.11
5.5.50.0000.04717.35
5.5.40.0070.03317.49
5.5.30.0130.02717.33
5.5.20.0030.03317.49
5.5.10.0070.03317.13
5.5.00.0000.04017.25
5.4.450.0070.05719.34
5.4.440.0070.07019.32
5.4.430.0000.08719.44
5.4.420.0070.07319.35
5.4.410.0000.03319.23
5.4.400.0030.03318.98
5.4.390.0000.04019.27
5.4.380.0000.05018.96
5.4.370.0130.06019.25
5.4.360.0030.08019.25
5.4.350.0070.03018.95
5.4.340.0100.07019.18
5.4.320.0000.04018.95
5.4.310.0070.03319.00
5.4.300.0100.06018.95
5.4.290.0130.07019.17
5.4.280.0000.03719.26
5.4.270.0030.03719.02
5.4.260.0030.04018.98
5.4.250.0130.02719.02
5.4.240.0070.06719.02
5.4.230.0030.07019.17
5.4.220.0070.03719.07
5.4.210.0070.04019.00
5.4.200.0030.04319.24
5.4.190.0100.03018.93
5.4.180.0000.05719.14
5.4.170.0100.03719.23
5.4.160.0070.04018.92
5.4.150.0070.03319.00
5.4.140.0070.03316.49
5.4.130.0030.03716.33
5.4.120.0070.02716.18
5.4.110.0000.03716.19
5.4.100.0030.06716.20
5.4.90.0100.02716.37
5.4.80.0030.03016.13
5.4.70.0030.03316.49
5.4.60.0130.03316.48
5.4.50.0100.02316.27
5.4.40.0030.03716.40
5.4.30.0030.03716.27
5.4.20.0000.03716.16
5.4.10.0030.03716.27
5.4.00.0030.03015.94
5.3.290.0030.04314.71
5.3.280.0100.07014.40
5.3.270.0170.02714.57
5.3.260.0000.04014.50
5.3.250.0070.03014.45
5.3.240.0100.03014.54
5.3.230.0030.03314.71
5.3.220.0030.04714.68
5.3.210.0000.04014.47
5.3.200.0070.05714.57
5.3.190.0130.05014.54
5.3.180.0000.05714.52
5.3.170.0030.03014.41
5.3.160.0070.07314.59
5.3.150.0070.03014.64
5.3.140.0000.04014.46
5.3.130.0000.04014.44
5.3.120.0000.04014.36
5.3.110.0030.03714.46
5.3.100.0030.03013.88
5.3.90.0000.05013.89
5.3.80.0100.03713.88
5.3.70.0000.03314.13
5.3.60.0030.03713.96
5.3.50.0000.04713.86
5.3.40.0070.03313.84
5.3.30.0030.03713.82
5.3.20.0000.03713.64
5.3.10.0000.03713.61
5.3.00.0030.03313.59
5.2.170.0000.02712.53
5.2.160.0030.03012.53
5.2.150.0000.03012.53
5.2.140.0030.02712.53
5.2.130.0000.03012.53
5.2.120.0070.02312.53
5.2.110.0030.02712.53
5.2.100.0070.02312.53
5.2.90.0000.02712.53
5.2.80.0000.03312.53
5.2.70.0030.02712.53
5.2.60.0030.02712.53
5.2.50.0030.02312.53
5.2.40.0000.03712.53
5.2.30.0030.02312.53
5.2.20.0070.02012.53
5.2.10.0030.02012.53
5.2.00.0000.03012.53
5.1.60.0030.02312.53
5.1.50.0000.02712.53
5.1.40.0030.02312.53
5.1.30.0000.02712.53
5.1.20.0000.02312.53
5.1.10.0000.02712.53
5.1.00.0000.02312.53
5.0.50.0030.02012.53
5.0.40.0000.01712.53
5.0.30.0000.03012.53
5.0.20.0000.01712.53
5.0.10.0030.01312.53
5.0.00.0030.02312.53
4.4.90.0030.01012.53
4.4.80.0000.01712.53
4.4.70.0000.01712.53
4.4.60.0000.01312.53
4.4.50.0000.01312.53
4.4.40.0030.02012.53
4.4.30.0000.01312.53
4.4.20.0030.01012.53
4.4.10.0070.01012.53
4.4.00.0000.02712.53
4.3.110.0000.01312.53
4.3.100.0000.01312.53
4.3.90.0000.01312.53
4.3.80.0030.02712.53
4.3.70.0000.01312.53
4.3.60.0000.02012.53
4.3.50.0030.01012.53
4.3.40.0070.03712.53
4.3.30.0000.02012.53
4.3.20.0000.01712.53
4.3.10.0000.01712.53
4.3.00.0030.03012.53

preferences:
42.2 ms | 400 KiB | 5 Q