3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/^.*\bimportant\h+\d.*\R*/mi'; $string = 'important 1 some words ...... IMPORTANT 34 some words ...... important 99 some words ......'; $result = preg_replace($pattern, '', $string); echo $result;

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.00816.89
8.5.00.0100.01120.34
8.4.150.0020.00014.05
8.4.140.0140.00717.67
8.4.130.0130.01017.92
8.4.120.0120.00820.83
8.4.110.0090.01122.77
8.4.100.0100.01018.96
8.4.90.0060.00320.77
8.4.80.0100.01017.92
8.4.70.0140.00718.09
8.4.60.0090.01118.62
8.4.50.0160.00518.38
8.4.40.0160.00317.88
8.4.30.0150.00018.88
8.4.20.0070.01317.98
8.4.10.0090.00021.45
8.3.280.0120.00818.38
8.3.270.0120.00716.64
8.3.260.0130.00616.52
8.3.250.0060.00218.80
8.3.240.0130.00616.73
8.3.230.0050.00316.66
8.3.220.0030.00717.06
8.3.210.0140.00518.42
8.3.200.0050.00316.60
8.3.190.0110.01017.29
8.3.180.0090.00716.72
8.3.170.0090.00917.04
8.3.160.0090.01220.43
8.3.150.0000.01817.10
8.3.140.0150.00416.92
8.3.130.0160.00318.38
8.3.120.0030.00520.68
8.3.110.0110.00316.56
8.3.100.0050.00318.48
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0130.00618.27
8.3.60.0090.00618.30
8.3.50.0150.00324.56
8.3.40.0070.00721.86
8.3.30.0060.00918.97
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0080.01020.50
8.2.280.0110.00718.30
8.2.270.0100.01017.30
8.2.260.0070.01116.96
8.2.250.0040.00417.03
8.2.240.0110.00717.30
8.2.230.0040.00420.94
8.2.220.0000.00824.06
8.2.210.0050.00326.77
8.2.200.0030.00618.88
8.2.190.0070.01416.82
8.2.180.0180.00325.92
8.2.170.0100.01018.94
8.2.160.0150.00422.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00419.02
8.2.110.0000.00922.34
8.2.100.0090.00318.03
8.2.90.0040.00417.88
8.2.80.0050.00318.90
8.2.70.0000.00817.75
8.2.60.0000.00817.75
8.2.50.0050.00317.75
8.2.40.0090.00018.16
8.2.30.0040.00418.05
8.2.20.0080.00018.06
8.2.10.0050.00319.20
8.2.00.0040.00419.32
8.1.330.0070.00621.75
8.1.320.0120.00816.23
8.1.310.0060.00318.52
8.1.300.0130.00617.92
8.1.290.0000.00930.84
8.1.280.0060.00925.92
8.1.270.0030.00623.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.91
8.1.230.0030.00919.16
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0060.00317.36
8.1.190.0060.00317.40
8.1.180.0040.00418.10
8.1.170.0050.00318.78
8.1.160.0040.00418.78
8.1.150.0030.00518.78
8.1.140.0040.00418.72
8.1.130.0040.00419.32
8.1.120.0030.00617.57
8.1.110.0040.00417.58
8.1.100.0000.00717.52
8.1.90.0000.00817.55
8.1.80.0070.00417.50
8.1.70.0000.00817.39
8.1.60.0060.00317.69
8.1.50.0030.00617.57
8.1.40.0000.00717.59
8.1.30.0040.00417.70
8.1.20.0040.00417.64
8.1.10.0040.00417.57
8.1.00.0000.00917.47
8.0.300.0000.00818.77
8.0.290.0090.00016.88
8.0.280.0030.00318.46
8.0.270.0030.00618.03
8.0.260.0030.00316.86
8.0.250.0080.00017.10
8.0.240.0030.00317.05
8.0.230.0040.00417.02
8.0.220.0000.00816.92
8.0.210.0000.00816.99
8.0.200.0030.00317.09
8.0.190.0040.00417.04
8.0.180.0000.00816.97
8.0.170.0000.00916.95
8.0.160.0030.00616.93
8.0.150.0030.00616.85
8.0.140.0080.00016.83
8.0.130.0030.00313.39
8.0.120.0050.00316.98
8.0.110.0040.00416.78
8.0.100.0000.00816.85
8.0.90.0000.00716.95
8.0.80.0060.01116.91
8.0.70.0000.00816.85
8.0.60.0040.00416.96
8.0.50.0020.00516.89
8.0.30.0100.00717.02
8.0.20.0110.00917.11
8.0.10.0070.00017.12
8.0.00.0140.00616.85
7.4.330.0050.00015.55
7.4.320.0030.00316.74
7.4.300.0000.00716.79
7.4.290.0000.00716.63
7.4.280.0070.00016.63
7.4.270.0040.00416.64
7.4.260.0000.00513.41
7.4.250.0000.00716.75
7.4.240.0030.00316.73
7.4.230.0040.00416.74
7.4.220.0050.00316.77
7.4.210.0100.00916.75
7.4.200.0030.00316.76
7.4.130.0100.00716.50
7.4.120.0170.00016.71
7.4.110.0100.01316.73
7.4.100.0170.00016.31
7.4.90.0140.00816.59
7.4.80.0140.00316.43
7.4.70.0120.00616.54
7.4.60.0130.01216.57
7.4.50.0200.00416.47
7.4.40.0030.01416.48
7.4.30.0070.01116.50
7.4.20.0080.01216.55
7.4.10.0140.00816.54
7.4.00.0150.00316.53
7.3.330.0030.00716.27
7.3.320.0060.00013.14
7.3.310.0000.00716.42
7.3.300.0060.00016.34
7.3.290.0090.00816.33
7.3.260.0190.00616.66
7.3.250.0070.01016.46
7.3.240.0060.01216.36
7.3.230.0120.00816.52
7.3.220.0100.01016.29
7.3.210.0070.01116.41
7.3.200.0060.01116.61
7.3.190.0120.00616.63
7.3.180.0160.00316.65
7.3.170.0070.01116.56
7.3.160.0090.00916.54
7.3.150.0190.00316.55
7.3.140.0090.00916.27
7.3.130.0060.01216.35
7.3.120.0030.01416.55
7.3.110.0110.00616.62
7.3.100.0140.00316.57
7.3.90.0070.01116.59
7.3.80.0060.01616.49
7.3.70.0070.01516.54
7.3.60.0110.00616.54
7.3.50.0140.00316.44
7.3.40.0040.01416.32
7.3.30.0000.01916.39
7.3.20.0150.00316.44
7.3.10.0110.00716.48
7.3.00.0100.00716.54

preferences:
173.1 ms | 403 KiB | 5 Q