3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b(\d+)\.[A-Z]/'; $str = 'There are stores attached: Store1 (Detached) **28876.Mazon** (Detached) 28455.Targo (Detached) 28389.Walmo (Detached)'; preg_match_all($re, $str, $matches); print_r($matches[1]);

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.4.120.0130.00823.74
8.4.110.0140.00624.33
8.4.100.0100.00218.07
8.4.90.0060.00520.19
8.4.80.0170.00818.93
8.4.70.0100.00618.14
8.4.60.0090.00318.58
8.4.50.0100.00718.02
8.4.40.0170.00318.54
8.4.30.0000.01620.36
8.4.20.0130.00617.99
8.4.10.0140.00719.44
8.3.250.0130.00716.53
8.3.240.0060.00316.70
8.3.230.0030.00616.89
8.3.220.0080.00718.65
8.3.210.0100.00816.80
8.3.200.0040.00418.33
8.3.190.0090.00816.90
8.3.180.0110.00418.23
8.3.170.0110.00718.78
8.3.160.0080.00016.69
8.3.150.0080.00020.60
8.3.140.0060.00316.77
8.3.130.0040.00418.32
8.3.120.0150.00418.98
8.3.110.0060.00320.94
8.3.100.0060.00916.57
8.3.90.0060.00926.77
8.3.80.0000.01019.36
8.3.70.0000.01418.55
8.3.60.0120.00318.55
8.3.50.0100.01023.60
8.3.40.0120.00921.86
8.3.30.0130.00318.97
8.3.20.0050.00224.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0110.00916.84
8.2.280.0050.00318.28
8.2.270.0100.01017.10
8.2.260.0060.00920.43
8.2.250.0100.01018.81
8.2.240.0160.00017.29
8.2.230.0100.00022.58
8.2.220.0030.01324.06
8.2.210.0090.00626.77
8.2.200.0100.00018.88
8.2.190.0090.01218.82
8.2.180.0140.00725.92
8.2.170.0090.01219.08
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0000.00926.16
8.2.120.0080.00026.35
8.2.110.0060.00319.45
8.2.100.0110.00317.72
8.2.90.0040.00419.52
8.2.80.0000.00819.03
8.2.70.0000.00817.75
8.2.60.0040.00417.91
8.2.50.0060.00318.07
8.2.40.0080.00018.02
8.2.30.0050.00218.00
8.2.20.0040.00418.04
8.2.10.0080.00019.08
8.2.00.0000.00819.11
8.1.330.0120.00716.29
8.1.320.0100.00916.64
8.1.310.0100.00318.58
8.1.300.0080.01118.62
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0000.00922.13
8.1.230.0000.01120.95
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0000.00818.60
8.1.160.0040.00418.76
8.1.150.0000.00818.83
8.1.140.0070.00018.75
8.1.130.0040.00419.97
8.1.120.0080.00017.55
8.1.110.0000.00817.41
8.1.100.0070.00017.50
8.1.90.0040.00417.55
8.1.80.0000.00717.47
8.1.70.0040.00417.59
8.1.60.0040.00417.56
8.1.50.0050.00317.63
8.1.40.0080.00017.67
8.1.30.0030.00517.69
8.1.20.0040.00417.67
8.1.10.0050.00317.74
8.1.00.0040.00417.70
8.0.300.0000.00720.08
8.0.290.0000.00716.75
8.0.280.0070.00018.32
8.0.270.0000.00718.09
8.0.260.0060.00018.45
8.0.250.0030.00317.04
8.0.240.0090.00017.02
8.0.230.0040.00417.09
8.0.220.0000.00716.95
8.0.210.0000.00716.98
8.0.200.0040.00417.00
8.0.190.0040.00416.90
8.0.180.0040.00416.89
8.0.170.0060.00317.00
8.0.160.0050.00216.97
8.0.150.0030.00316.92
8.0.140.0070.00416.94
8.0.130.0060.00013.36
8.0.120.0000.00716.82
8.0.110.0000.00716.79
8.0.100.0080.00016.92
8.0.90.0070.00016.85
8.0.80.0070.00916.93
8.0.70.0070.00016.83
8.0.60.0040.00416.96
8.0.50.0040.00416.85
8.0.30.0070.01016.95
8.0.20.0210.00717.34
8.0.10.0060.00316.98
8.0.00.0140.01016.84
7.4.330.0000.00515.55
7.4.320.0000.00616.72
7.4.300.0000.00916.75
7.4.290.0000.00816.78
7.4.280.0000.00816.68
7.4.270.0000.00716.72
7.4.260.0000.00513.31
7.4.250.0040.00416.69
7.4.240.0030.00516.74
7.4.230.0040.00416.62
7.4.220.0000.00716.69
7.4.210.0070.01016.75
7.4.200.0040.00416.73
7.4.130.0090.01316.53
7.4.120.0130.01216.39
7.4.110.0200.00616.72
7.4.100.0220.00316.52
7.4.90.0170.00616.43
7.4.80.0170.00716.61
7.4.70.0090.01516.68
7.4.60.0090.01316.73
7.4.50.0110.01216.48
7.4.40.0190.00716.60
7.4.30.0030.02316.64
7.4.20.0150.01116.51
7.4.10.0130.01316.57
7.4.00.0120.01216.39
7.3.330.0000.00816.41
7.3.320.0050.00013.17
7.3.310.0000.00816.14
7.3.300.0070.00016.16
7.3.290.0100.00616.35
7.3.260.0160.00316.34
7.3.240.0090.00816.45
7.3.230.0190.00716.68
7.3.220.0220.00016.54
7.3.210.0180.00316.38
7.3.200.0120.01316.75
7.3.190.0200.00616.35
7.3.180.0150.00916.34
7.3.170.0130.01016.39
7.3.160.0130.01016.35
7.3.150.0120.01316.79
7.3.140.0140.01016.32
7.3.130.0140.01016.52
7.3.120.0120.01116.53
7.3.110.0120.01216.49
7.3.100.0090.01616.56
7.3.90.0110.01416.28
7.3.80.0130.01116.61
7.3.70.0090.01316.43
7.3.60.0090.01516.51
7.3.50.0160.00716.27
7.3.40.0130.01016.51
7.3.30.0090.01516.47
7.3.20.0090.01516.30
7.3.10.0160.00916.45
7.3.00.0090.01516.32
7.2.340.0150.01016.70
7.2.330.0090.01516.76
7.2.320.0100.01416.73
7.2.310.0190.00616.73
7.2.300.0180.00316.51
7.2.290.0030.02016.46
7.2.280.0070.01916.72
7.2.270.0130.01216.43
7.2.260.0090.01216.57
7.2.250.0120.01216.59
7.2.240.0140.01016.76
7.2.230.0090.01316.60
7.2.220.0100.01416.74
7.2.210.0060.01616.48
7.2.200.0160.00716.65
7.2.190.0150.01116.52
7.2.180.0060.01916.64
7.2.170.0060.01516.51
7.2.160.0130.01216.45
7.2.150.0100.01316.54
7.2.140.0110.01216.73
7.2.130.0150.00816.68
7.2.120.0130.01016.74
7.2.110.0030.02116.70
7.2.100.0140.01216.70
7.2.90.0460.01116.56
7.2.80.0130.01316.80
7.2.70.0100.01316.63
7.2.60.0070.01716.77
7.2.50.0150.00916.55
7.2.40.0090.01616.60
7.2.30.0160.01016.64
7.2.20.0190.00616.75
7.2.10.0120.01216.63
7.2.00.0170.00916.64

preferences:
28.67 ms | 403 KiB | 5 Q