3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "* @method static CIAO()\nsaddsa\n* @method static LOL() "; $matches = []; preg_match_all('/^\\s*\\*\\s*@method\\s+static\\s+([A-Z]+)\\(\\)\\s*$/m', $str, $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.70.0150.00616.74
8.3.60.0140.00416.71
8.3.50.0140.00617.54
8.3.40.0150.00018.85
8.3.30.0090.00618.58
8.3.20.0030.00720.38
8.3.10.0040.00423.52
8.3.00.0040.00417.78
8.2.180.0110.00318.41
8.2.170.0110.00422.96
8.2.160.0120.00620.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00021.25
8.2.120.0050.00226.35
8.2.110.0090.00019.34
8.2.100.0060.00618.03
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0000.01117.75
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0000.00720.43
8.2.30.0030.00521.03
8.2.20.0050.00317.91
8.2.10.0050.00318.06
8.2.00.0040.00417.99
8.1.280.0160.00625.92
8.1.270.0100.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00322.06
8.1.230.0120.00017.64
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.36
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0060.00318.61
8.1.160.0070.00018.99
8.1.150.0000.00720.68
8.1.140.0080.00019.52
8.1.130.0000.00818.73
8.1.120.0000.00717.57
8.1.110.0040.00417.60
8.1.100.0030.00317.51
8.1.90.0070.00017.54
8.1.80.0040.00417.43
8.1.70.0000.00817.48
8.1.60.0080.00017.66
8.1.50.0000.00817.66
8.1.40.0000.00817.49
8.1.30.0000.00817.80
8.1.20.0030.00517.71
8.1.10.0000.00817.71
8.1.00.0050.00317.57
8.0.300.0050.00218.77
8.0.290.0080.00016.75
8.0.280.0070.00018.43
8.0.270.0040.00417.27
8.0.260.0040.00416.93
8.0.250.0030.00317.09
8.0.240.0060.00317.02
8.0.230.0000.00817.04
8.0.220.0040.00416.88
8.0.210.0000.00716.95
8.0.200.0030.00316.95
8.0.190.0060.00316.93
8.0.180.0040.00417.03
8.0.170.0000.00716.89
8.0.160.0040.00416.91
8.0.150.0040.00416.83
8.0.140.0000.00716.86
8.0.130.0080.00013.49
8.0.120.0070.00017.01
8.0.110.0000.00716.82
8.0.100.0030.00516.77
8.0.90.0070.00017.06
8.0.80.0100.01117.02
8.0.70.0000.00717.01
8.0.60.0050.00216.97
8.0.50.0000.00716.96
8.0.30.0060.01217.25
8.0.20.0120.00817.40
8.0.10.0070.00017.02
8.0.00.0100.00716.67
7.4.330.0050.00015.55
7.4.320.0030.00316.72
7.4.300.0000.00716.75
7.4.290.0070.00416.74
7.4.280.0000.00816.56
7.4.270.0050.00316.57
7.4.260.0030.00313.41
7.4.250.0070.00016.70
7.4.240.0070.00016.73
7.4.230.0050.00316.76
7.4.220.0140.01016.62
7.4.210.0030.01216.53
7.4.200.0070.00016.56
7.4.160.0100.00716.68
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0100.00916.47
7.4.120.0110.01016.52
7.4.110.0150.00416.64
7.4.100.0130.01016.52
7.4.90.0050.01116.69
7.4.80.0110.00619.39
7.4.70.0130.00716.76
7.4.60.0130.00316.48
7.4.50.0030.01316.69
7.4.40.0040.01416.46
7.4.30.0110.00816.67
7.4.00.0120.00314.87
7.3.330.0050.00013.02
7.3.320.0050.00013.08
7.3.310.0040.00416.36
7.3.300.0040.00216.33
7.3.290.0030.01116.31
7.3.280.0110.00616.32
7.3.270.0070.01017.40
7.3.260.0150.01016.46
7.3.250.0110.00716.37
7.3.240.0080.00916.35
7.3.230.0080.01516.53
7.3.210.0060.01216.31
7.3.200.0060.01216.39
7.3.190.0040.01316.34
7.3.180.0090.00816.52
7.3.170.0100.00716.32
7.3.160.0100.01316.27
7.3.120.0070.01115.09
7.3.110.0030.01414.96
7.3.100.0060.00614.91
7.3.90.0030.00714.82
7.3.80.0030.01414.78
7.3.70.0000.01414.90
7.3.60.0150.00314.92
7.3.50.0060.00614.79
7.3.40.0070.00714.88
7.3.30.0000.01014.75
7.3.20.0070.00716.75
7.3.10.0060.00316.44
7.3.00.0040.01216.74
7.2.330.0240.00016.50
7.2.320.0130.00316.50
7.2.310.0090.00916.70
7.2.300.0100.01416.71
7.2.290.0160.00616.50
7.2.240.0040.01115.17
7.2.230.0080.00415.08
7.2.220.0040.01415.06
7.2.210.0070.01015.13
7.2.200.0000.01515.03
7.2.190.0040.00815.00
7.2.180.0040.01115.09
7.2.170.0070.00314.85
7.2.160.0030.01014.95
7.2.150.0070.01117.00
7.2.140.0060.00616.88
7.2.130.0030.01316.64
7.2.120.0130.00016.91
7.2.110.0080.00017.00
7.2.100.0070.00716.83
7.2.90.0030.01016.63
7.2.80.0070.00416.86
7.2.70.0090.00616.75
7.2.60.0080.00316.83
7.2.50.0030.01017.06
7.2.40.0060.00616.94
7.2.30.0000.01216.82
7.2.20.0060.00616.95
7.2.10.0100.00716.75
7.2.00.0030.01118.28
7.1.330.0040.01215.95
7.1.320.0090.00315.86
7.1.310.0110.00315.82
7.1.300.0060.00616.09
7.1.290.0080.00815.95
7.1.280.0130.00315.94
7.1.270.0030.00915.63
7.1.260.0090.00616.02
7.1.250.0090.00916.05
7.1.200.0100.00315.93
7.1.100.0040.00718.19
7.1.70.0040.00817.35
7.1.60.0210.00335.04
7.1.50.0180.00734.95
7.1.40.0120.01234.47
7.1.30.0160.01034.54
7.1.20.0170.00734.82
7.1.10.0060.00616.96
7.1.00.0090.00316.92
7.0.200.0070.00516.90
7.0.190.0060.00616.60
7.0.180.0060.00616.29
7.0.170.0060.00616.32
7.0.160.0000.01216.25
7.0.150.0040.00816.42
7.0.140.0090.00916.41
7.0.130.0030.00916.68
7.0.120.0050.00816.58
7.0.110.0050.00516.45
7.0.100.0060.00616.38
7.0.90.0060.00616.39
7.0.80.0000.01216.61
7.0.70.0030.01016.54
7.0.60.0030.00916.39
7.0.50.0000.01116.39
7.0.40.0060.00816.79
7.0.30.0000.01216.79
7.0.20.0030.00916.69
7.0.10.0000.01216.52
7.0.00.0030.01016.32

preferences:
45.75 ms | 401 KiB | 5 Q