3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'Herr Max Mustermann Musterstraße 3 12345 City Customer 123456 Date 03.01.2023'; echo preg_replace('/.* Customer (\d+).*/', '$1', $string);

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.30.0010.00719.59
8.5.20.0060.01219.96
8.5.10.0090.00121.95
8.5.00.0110.01020.11
8.4.180.0090.01221.96
8.4.170.0090.01223.83
8.4.160.0190.00823.84
8.4.150.0080.00516.92
8.4.140.0120.00917.79
8.4.130.0100.01117.71
8.4.120.0080.00420.88
8.4.110.0100.00920.82
8.4.100.0100.01017.66
8.4.90.0140.00622.42
8.4.80.0140.00618.00
8.4.70.0110.00918.05
8.4.60.0110.00918.84
8.4.50.0090.00922.10
8.4.40.0130.00623.90
8.4.30.0110.00418.82
8.4.20.0070.00718.95
8.4.10.0000.01023.95
8.3.300.0120.00820.60
8.3.290.0120.00922.48
8.3.280.0110.01018.47
8.3.270.0140.00716.46
8.3.260.0100.01016.51
8.3.250.0120.00718.57
8.3.240.0120.00716.91
8.3.230.0080.00716.57
8.3.220.0110.00919.02
8.3.210.0100.00918.54
8.3.200.0060.00316.81
8.3.190.0050.00417.06
8.3.180.0100.00816.45
8.3.170.0030.01417.15
8.3.160.0200.00018.25
8.3.150.0110.00718.36
8.3.140.0100.00720.61
8.3.130.0060.00316.41
8.3.120.0030.00620.57
8.3.110.0050.00216.61
8.3.100.0030.00616.44
8.3.90.0070.00726.77
8.3.80.0090.00017.97
8.3.70.0120.00618.43
8.3.60.0100.00716.72
8.3.50.0100.01018.50
8.3.40.0030.01021.98
8.3.30.0040.01118.83
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0140.00026.16
8.2.300.0140.00618.76
8.2.290.0060.00420.59
8.2.280.0050.00518.64
8.2.270.0090.00917.16
8.2.260.0110.00718.19
8.2.250.0110.00716.89
8.2.240.0120.00619.21
8.2.230.0000.00920.94
8.2.220.0050.00537.54
8.2.210.0110.00726.77
8.2.200.0090.00016.63
8.2.190.0070.00718.31
8.2.180.0110.01116.88
8.2.170.0150.00619.07
8.2.160.0100.00722.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0000.00826.16
8.2.110.0060.00321.16
8.2.100.0080.00318.03
8.2.90.0040.00418.16
8.2.80.0050.00318.22
8.2.70.0040.00417.75
8.2.60.0030.00519.60
8.2.50.0050.00317.75
8.2.40.0000.00819.86
8.2.30.0090.00417.71
8.2.20.0110.00017.71
8.2.10.0080.00817.66
8.2.00.0000.01517.77
8.1.340.0100.01419.93
8.1.330.0100.00821.90
8.1.320.0070.01116.25
8.1.310.0030.01318.18
8.1.300.0100.01019.76
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0080.00024.66
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.88
8.1.230.0080.00320.92
8.1.220.0060.00317.74
8.1.210.0040.00418.84
8.1.200.0080.00017.22
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0000.00818.75
8.1.160.0140.00017.45
8.1.150.0140.00017.43
8.1.140.0120.00317.29
8.1.130.0060.00917.39
8.1.120.0120.00017.48
8.1.110.0000.01217.54
8.1.100.0090.00417.52
8.1.90.0120.00017.58
8.1.80.0050.01017.51
8.1.70.0120.00317.43
8.1.60.0130.00317.66
8.1.50.0090.00917.65
8.1.40.0120.00417.73
8.1.30.0190.00017.59
8.1.20.0110.00417.64
8.1.10.0070.01017.57
8.1.00.0130.00517.56
8.0.300.0000.00820.03
8.0.290.0050.00316.88
8.0.280.0080.00516.77
8.0.270.0110.00316.81
8.0.260.0080.00816.90
8.0.250.0120.00316.84
8.0.240.0100.00516.99
8.0.230.0050.00916.77
8.0.220.0120.00416.78
8.0.210.0110.00416.71
8.0.200.0100.00316.72
8.0.190.0000.01316.85
8.0.180.0000.01616.73
8.0.170.0080.00816.81
8.0.160.0080.00816.84
8.0.150.0080.00816.77
8.0.140.0150.00016.76
8.0.130.0070.00716.78
8.0.120.0160.00016.77
8.0.110.0150.00016.82
8.0.100.0000.01416.73
8.0.90.0130.00016.82
8.0.80.0120.00416.80
8.0.70.0110.00416.84
8.0.60.0090.00516.73
8.0.50.0110.00416.79
8.0.30.0110.00316.89
8.0.20.0130.00416.95
8.0.10.0120.00417.00

preferences:
57.59 ms | 1094 KiB | 5 Q