3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs= ["discount of €50,20 on these items","This item on sale now for €30,20"]; foreach ($strs as $s){ if (preg_match('~(?<!\bfor\s)€(\d+(?:,\d+)?)~', $s, $m)) { echo $m[1].PHP_EOL; } else { echo "No match!"; } }

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.0070.00224.23
8.4.110.0140.00619.03
8.4.100.0070.00218.08
8.4.90.0110.00920.65
8.4.80.0080.00618.22
8.4.70.0090.00717.98
8.4.60.0150.00818.99
8.4.50.0120.00820.36
8.4.40.0130.00720.37
8.4.30.0040.01620.46
8.4.20.0170.00317.98
8.4.10.0080.00019.61
8.3.250.0090.00617.06
8.3.240.0080.00516.99
8.3.230.0110.00716.60
8.3.220.0090.00318.95
8.3.210.0080.00618.73
8.3.200.0060.00316.54
8.3.190.0120.00817.10
8.3.180.0090.01018.36
8.3.170.0090.01017.16
8.3.160.0150.00319.16
8.3.150.0200.00017.20
8.3.140.0080.00017.22
8.3.130.0040.00418.63
8.3.120.0090.00018.80
8.3.110.0060.00320.94
8.3.100.0050.01024.06
8.3.90.0150.00326.77
8.3.80.0070.00318.29
8.3.70.0040.01116.58
8.3.60.0120.00918.68
8.3.50.0060.01124.62
8.3.40.0070.00722.00
8.3.30.0120.01218.71
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0030.00526.16
8.2.290.0080.01020.62
8.2.280.0130.00618.73
8.2.270.0070.01117.47
8.2.260.0080.00016.70
8.2.250.0110.00416.71
8.2.240.0060.00319.21
8.2.230.0060.00322.58
8.2.220.0040.01237.54
8.2.210.0080.00026.77
8.2.200.0030.00616.88
8.2.190.0100.00716.88
8.2.180.0100.00725.92
8.2.170.0150.00019.01
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00820.95
8.2.110.0060.00319.14
8.2.100.0110.00317.91
8.2.90.0060.00319.89
8.2.80.0040.00418.05
8.2.70.0040.00417.93
8.2.60.0030.00618.22
8.2.50.0080.00018.10
8.2.40.0030.00619.36
8.2.30.0040.00419.40
8.2.20.0000.00718.03
8.2.10.0040.00419.21
8.2.00.0040.00419.29
8.1.330.0120.00821.59
8.1.320.0140.00616.31
8.1.310.0070.01118.23
8.1.300.0040.00716.12
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0030.00622.09
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.60
8.1.230.0000.01121.04
8.1.220.0000.00817.74
8.1.210.0030.00618.83
8.1.200.0030.00617.35
8.1.190.0060.00317.13
8.1.180.0030.00518.10
8.1.170.0050.00318.69
8.1.160.0000.00719.09
8.1.150.0000.00718.97
8.1.140.0050.00218.98
8.1.130.0070.00019.30
8.1.120.0040.00417.68
8.1.110.0000.00817.59
8.1.100.0040.00417.66
8.1.90.0000.00717.58
8.1.80.0030.00717.50
8.1.70.0030.00317.62
8.1.60.0050.00317.67
8.1.50.0050.00217.62
8.1.40.0100.00017.60
8.1.30.0040.00417.78
8.1.20.0070.00017.80
8.1.10.0050.00317.67
8.1.00.0020.00517.67
8.0.300.0060.00319.98
8.0.290.0040.00416.88
8.0.280.0000.00718.49
8.0.270.0040.00416.98
8.0.260.0040.00416.98
8.0.250.0000.00817.13
8.0.240.0030.00316.98
8.0.230.0030.00317.00
8.0.220.0090.00017.01
8.0.210.0030.00316.98
8.0.200.0080.00017.10
8.0.190.0000.00817.09
8.0.180.0060.00616.98
8.0.170.0080.00016.89
8.0.160.0080.00017.06
8.0.150.0000.00817.04
8.0.140.0050.00316.99
8.0.130.0030.00313.50
8.0.120.0050.00217.09
8.0.110.0030.00516.99
8.0.100.0050.00317.07
8.0.90.0050.00217.09
8.0.80.0060.00916.97
8.0.70.0040.00417.06
8.0.60.0050.00217.01
8.0.50.0040.00416.89
8.0.30.0060.01117.33
8.0.20.0100.01117.27
8.0.10.0030.00517.18
8.0.00.0080.00817.00
7.4.330.0050.00015.55
7.4.320.0000.00716.74
7.4.300.0030.00316.72
7.4.290.0080.00016.82
7.4.280.0050.00316.79
7.4.270.0030.00316.67
7.4.260.0000.00613.54
7.4.250.0030.00416.73
7.4.240.0000.00716.80
7.4.230.0070.00016.63
7.4.220.0020.00616.61
7.4.210.0090.00616.85
7.4.200.0030.00316.71
7.4.130.0060.01316.77
7.4.120.0070.01216.64
7.4.110.0090.01016.60
7.4.100.0090.00916.58
7.4.90.0100.00816.55
7.4.80.0090.01016.71
7.4.70.0130.00916.49
7.4.60.0050.01716.54
7.4.50.0160.01016.48
7.4.40.0070.01416.63
7.4.30.0100.00816.67
7.4.20.0110.01216.67
7.4.10.0100.01416.52
7.4.00.0110.00816.67
7.3.330.0000.00716.54
7.3.320.0060.00013.33
7.3.310.0070.00316.57
7.3.300.0030.00316.33
7.3.290.0080.01016.50
7.3.260.0090.01216.77
7.3.250.0140.00316.56
7.3.240.0080.01416.53
7.3.230.0070.01216.62
7.3.220.0120.00716.44
7.3.210.0120.01016.39
7.3.200.0150.00616.46
7.3.190.0120.01216.52
7.3.180.0120.00916.71
7.3.170.0130.01116.44
7.3.160.0140.00716.36
7.3.150.0120.01116.66
7.3.140.0130.00816.48
7.3.130.0180.00716.57
7.3.120.0150.00816.61
7.3.110.0090.01316.77
7.3.100.0130.01116.62
7.3.90.0070.01216.50
7.3.80.0120.00716.51
7.3.70.0100.01016.51
7.3.60.0140.00716.48
7.3.50.0100.01016.48
7.3.40.0110.00816.54
7.3.30.0130.01016.56
7.3.20.0230.00816.60
7.3.10.0140.00916.58
7.3.00.0110.01016.31
7.2.340.0090.01016.69
7.2.330.0100.01016.81
7.2.320.0110.01216.58
7.2.310.0140.00916.73
7.2.300.0110.01416.83
7.2.290.0090.01316.85
7.2.280.0050.01516.77
7.2.270.0120.01016.66
7.2.260.0120.00916.82
7.2.250.0130.01216.96
7.2.240.0150.00516.76
7.2.230.0140.00816.95
7.2.220.0100.00816.82
7.2.210.0090.01016.82
7.2.200.0110.01116.77
7.2.190.0120.01216.62
7.2.180.0110.01016.78
7.2.170.0110.00816.71
7.2.160.0080.01216.62
7.2.150.0150.01016.77
7.2.140.0170.00516.89
7.2.130.0300.01516.82
7.2.120.0090.01416.71
7.2.110.0250.00216.88
7.2.100.0130.00616.77
7.2.90.0100.01416.79
7.2.80.0140.01116.88
7.2.70.0110.01016.80
7.2.60.0150.00616.75
7.2.50.0130.00616.85
7.2.40.0130.01316.78
7.2.30.0140.01016.92
7.2.20.0100.01116.70
7.2.10.0100.01216.82
7.2.00.0130.00916.77

preferences:
31.68 ms | 403 KiB | 5 Q