3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Re #A4FKA-F2NW9 123test'; preg_match('/#\K\S+/', $str, $matches); echo $matches[0];

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.80.0000.00918.30
8.3.70.0070.01016.36
8.3.60.0140.00718.42
8.3.50.0140.00516.72
8.3.40.0070.00718.82
8.3.30.0120.00318.74
8.3.20.0040.00421.82
8.3.10.0080.00021.77
8.3.00.0000.00721.92
8.2.200.0070.00416.75
8.2.190.0070.01016.86
8.2.180.0110.00418.66
8.2.170.0110.00422.96
8.2.160.0030.01020.38
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0080.00019.89
8.2.120.0080.00026.35
8.2.110.0000.00819.31
8.2.100.0090.00317.84
8.2.90.0080.00018.34
8.2.80.0050.00318.16
8.2.70.0030.00617.93
8.2.60.0080.00018.22
8.2.50.0000.00818.10
8.2.40.0040.00419.30
8.2.30.0050.00220.40
8.2.20.0050.00218.14
8.2.10.0040.00419.27
8.2.00.0070.00018.02
8.1.290.0030.00718.88
8.1.280.0070.00725.92
8.1.270.0060.00320.33
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00723.86
8.1.230.0110.00020.91
8.1.220.0070.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0050.00318.64
8.1.160.0040.00418.81
8.1.150.0040.00318.94
8.1.140.0000.00718.86
8.1.130.0000.00620.24
8.1.120.0070.00017.39
8.1.110.0040.00417.41
8.1.100.0080.00017.54
8.1.90.0000.00717.55
8.1.80.0070.00017.46
8.1.70.0030.00317.47
8.1.60.0060.00317.55
8.1.50.0030.00517.52
8.1.40.0030.00517.66
8.1.30.0080.00017.62
8.1.20.0000.00817.66
8.1.10.0040.00417.79
8.1.00.0000.00817.67
8.0.300.0040.00419.99
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0030.00317.30
8.0.260.0030.00318.35
8.0.250.0000.00717.13
8.0.240.0030.00317.11
8.0.230.0030.00317.08
8.0.220.0060.00016.87
8.0.210.0000.00617.02
8.0.200.0070.00017.08
8.0.190.0060.00617.00
8.0.180.0000.00717.02
8.0.170.0000.00917.05
8.0.160.0060.00316.95
8.0.150.0040.00416.96
8.0.140.0070.00416.79
8.0.130.0030.00313.40
8.0.120.0050.00316.96
8.0.110.0040.00416.89
8.0.100.0050.00216.97
8.0.90.0080.00016.89
8.0.80.0090.00616.95
8.0.70.0040.00417.09
8.0.60.0040.00416.82
8.0.50.0000.00716.85
8.0.30.0090.00917.10
8.0.20.0120.01516.86
8.0.10.0000.00816.91
8.0.00.0080.01116.86
7.4.330.0050.00016.55
7.4.320.0030.00316.77
7.4.300.0000.00716.70
7.4.290.0030.00316.67
7.4.280.0030.00616.76
7.4.270.0100.00016.75
7.4.260.0000.00716.61
7.4.250.0030.00316.61
7.4.240.0000.00716.68
7.4.230.0000.00716.50
7.4.220.0000.00716.56
7.4.210.0060.00916.71
7.4.200.0000.00716.83
7.4.160.0120.00616.62
7.4.130.0150.00916.75
7.4.120.0140.00316.77
7.4.110.0140.00716.69
7.4.100.0100.00716.74
7.4.90.0070.01016.81
7.4.80.0060.01219.39
7.4.70.0090.01316.54
7.4.60.0070.01016.85
7.4.50.0050.00516.46
7.4.40.0110.00716.59
7.4.00.0090.00615.09
7.3.330.0000.00513.09
7.3.320.0000.00513.28
7.3.310.0030.00316.18
7.3.300.0070.00016.34
7.3.290.0040.01116.46
7.3.280.0150.01215.72
7.3.260.0090.01116.60
7.3.240.0080.00816.63
7.3.230.0120.00616.40
7.3.210.0170.00716.52
7.3.200.0000.01616.46
7.3.190.0060.01216.32
7.3.180.0090.00916.43
7.3.170.0100.00716.58
7.3.160.0120.00916.31
7.3.40.0110.00014.80
7.3.30.0120.00014.98
7.3.20.0070.00714.92
7.3.10.0070.00714.98
7.3.00.0050.01915.16
7.2.330.0100.00716.72
7.2.320.0120.00616.58
7.2.310.0070.01116.76
7.2.300.0140.00416.61
7.2.290.0130.00916.58
7.2.170.0030.01714.94
7.2.160.0090.00315.18
7.2.150.0300.00615.26
7.2.140.0090.00915.23
7.2.130.0550.00015.14
7.2.120.0110.00714.80
7.2.110.0210.00015.09
7.2.100.0100.01015.25
7.2.90.0090.01215.13
7.2.80.0170.00315.25
7.2.70.0160.00615.21
7.2.60.0050.00815.03
7.2.50.0070.00715.18
7.2.40.0110.00315.09
7.2.30.0070.01015.29
7.2.20.0180.00315.01
7.2.10.0070.00514.84
7.2.00.0100.00315.13
7.1.280.0120.01014.06
7.1.270.0070.00714.22
7.1.260.0150.00614.04
7.1.250.0130.00314.19

preferences:
27.76 ms | 403 KiB | 5 Q