3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\bdiscount\h[^\r\n€]*\K€\d{1,2}(?:,\d{1,2})?\b/'; $str = 'discount of €50,20 on these items € This item on sale now for €30,20'; if (preg_match($re, $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.5.10.0110.00716.80
8.5.00.0070.01520.11
8.4.150.0010.00114.05
8.4.140.0130.00817.58
8.4.130.0110.01017.98
8.4.120.0040.00420.93
8.4.110.0100.01020.47
8.4.100.0130.00817.78
8.4.90.0050.00524.39
8.4.80.0120.00718.69
8.4.70.0030.00619.06
8.4.60.0090.01319.13
8.4.50.0130.00717.69
8.4.40.0060.01320.55
8.4.30.0090.00620.75
8.4.20.0100.01018.05
8.4.10.0040.00419.73
8.3.280.0100.01018.56
8.3.270.0110.00616.67
8.3.260.0130.00716.80
8.3.250.0110.00718.80
8.3.240.0140.00816.81
8.3.230.0080.01116.52
8.3.220.0090.00918.68
8.3.210.0090.00618.37
8.3.200.0080.00116.80
8.3.190.0160.00316.87
8.3.180.0110.00518.51
8.3.170.0180.00016.58
8.3.160.0110.00719.05
8.3.150.0060.01217.16
8.3.140.0140.00018.84
8.3.130.0000.00816.50
8.3.120.0030.00618.80
8.3.110.0050.00520.94
8.3.100.0040.00424.06
8.3.90.0090.00626.77
8.3.80.0030.00616.50
8.3.70.0000.01816.58
8.3.60.0100.01018.43
8.3.50.0240.01123.59
8.3.40.0130.00721.90
8.3.30.0100.00718.96
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0100.01018.90
8.2.280.0090.00918.58
8.2.270.0120.00616.94
8.2.260.0090.00916.75
8.2.250.0080.00817.19
8.2.240.0120.00319.16
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0110.00426.77
8.2.200.0060.00318.66
8.2.190.0110.00716.75
8.2.180.0130.00625.92
8.2.170.0080.00819.08
8.2.160.0030.01322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0070.00026.35
8.2.110.0060.00319.30
8.2.100.0100.00319.82
8.2.90.0080.00018.09
8.2.80.0030.00517.97
8.2.70.0030.00617.75
8.2.60.0030.00617.73
8.2.50.0040.00418.05
8.2.40.0040.00420.00
8.2.30.0070.00018.16
8.2.20.0030.00618.06
8.2.10.0000.00719.26
8.2.00.0040.00419.22
8.1.330.0110.00718.35
8.1.320.0070.01217.95
8.1.310.0140.00418.29
8.1.300.0040.00416.38
8.1.290.0060.00330.84
8.1.280.0180.00425.92
8.1.270.0040.00420.73
8.1.260.0130.00628.09
8.1.250.0080.00028.09
8.1.240.0060.00623.96
8.1.230.0080.00421.03
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00917.35
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0050.00218.87
8.1.150.0040.00418.86
8.1.140.0000.00718.71
8.1.130.0000.00720.02
8.1.120.0000.00817.58
8.1.110.0040.00417.57
8.1.100.0000.00717.49
8.1.90.0040.00317.43
8.1.80.0040.00417.58
8.1.70.0000.00717.52
8.1.60.0030.00517.65
8.1.50.0000.00817.64
8.1.40.0060.00317.52
8.1.30.0050.00317.81
8.1.20.0060.00317.77
8.1.10.0060.00317.63
8.1.00.0040.00417.55
8.0.300.0070.00319.77
8.0.290.0050.00316.88
8.0.280.0000.00718.39
8.0.270.0000.00718.18
8.0.260.0000.00618.60
8.0.250.0000.00717.14
8.0.240.0000.00716.98
8.0.230.0000.00817.06
8.0.220.0030.00316.98
8.0.210.0080.00016.98
8.0.200.0000.00816.96
8.0.190.0000.00816.93
8.0.180.0040.00716.98
8.0.170.0040.00417.02
8.0.160.0000.00716.95
8.0.150.0040.00416.96
8.0.140.0000.00716.77
8.0.130.0030.00313.48
8.0.120.0030.00616.95
8.0.110.0040.00417.00
8.0.100.0000.00716.96
8.0.90.0070.00016.97
8.0.80.0070.01017.00
8.0.70.0000.00816.78
8.0.60.0050.00216.89
8.0.50.0040.00417.09
8.0.30.0070.01017.05
8.0.20.0170.01717.18
8.0.10.0000.00717.04
8.0.00.0110.00717.21
7.4.330.0020.00215.55
7.4.320.0030.00316.68
7.4.300.0030.00316.74
7.4.290.0040.00416.61
7.4.280.0040.00416.75
7.4.270.0000.00716.77
7.4.260.0030.00313.44
7.4.250.0050.00216.71
7.4.240.0030.00516.60
7.4.230.0070.00016.71
7.4.220.0050.00216.62
7.4.210.0120.00516.75
7.4.200.0060.00316.65
7.4.130.0100.01016.70
7.4.120.0070.00916.57
7.4.110.0140.00316.61
7.4.100.0090.01316.22
7.4.90.0080.01116.71
7.4.80.0120.00616.50
7.4.70.0040.01316.50
7.4.60.0090.00916.43
7.4.50.0100.00916.79
7.4.40.0060.01216.72
7.4.30.0130.00716.56
7.4.20.0060.01416.33
7.4.10.0100.00816.38
7.4.00.0090.00916.57
7.3.330.0030.00316.19
7.3.320.0000.00513.29
7.3.310.0030.00716.41
7.3.300.0030.00316.40
7.3.290.0080.00816.37
7.3.260.0090.00916.36
7.3.240.0080.00816.30
7.3.230.0060.00916.16
7.3.220.0080.01416.46
7.3.210.0190.00016.51
7.3.200.0100.00716.39
7.3.190.0080.00816.53
7.3.180.0100.01016.44
7.3.170.0090.00916.66
7.3.160.0160.00416.55
7.3.150.0120.01216.36
7.3.140.0070.01316.61
7.3.130.0120.01416.41
7.3.120.0140.00616.61
7.3.110.0130.01016.50
7.3.100.0090.00916.09
7.3.90.0110.00816.58
7.3.80.0070.01016.46
7.3.70.0070.01016.38
7.3.60.0120.00816.22
7.3.50.0110.00716.51
7.3.40.0170.00716.35
7.3.30.0090.01316.34
7.3.20.0150.00616.24
7.3.10.0210.00016.32
7.3.00.0060.01116.35
7.2.340.0100.00616.46
7.2.330.0110.00916.55
7.2.320.0100.01016.72
7.2.310.0150.00616.67
7.2.300.0070.01316.45
7.2.290.0110.00816.59
7.2.280.0140.00916.59
7.2.270.0100.00716.54
7.2.260.0130.01016.82
7.2.250.0190.00616.68
7.2.240.0060.01216.61
7.2.230.0090.00916.68
7.2.220.0100.00916.53
7.2.210.0130.00716.70
7.2.200.0000.01916.68
7.2.190.0070.01016.59
7.2.180.0120.01116.53
7.2.170.0120.01216.56
7.2.160.0140.00716.39
7.2.150.0210.00416.46
7.2.140.0130.01016.53
7.2.130.0130.00916.56
7.2.120.0110.00816.63
7.2.110.0090.01216.41
7.2.100.0100.01016.63
7.2.90.0150.00616.75
7.2.80.0100.01016.77
7.2.70.0110.00716.71
7.2.60.0070.01116.59
7.2.50.0130.00716.75
7.2.40.0070.01316.87
7.2.30.0120.00816.66
7.2.20.0180.01016.85
7.2.10.0060.01516.61
7.2.00.0110.01516.84

preferences:
38.19 ms | 403 KiB | 5 Q