3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "I-IVWM_Ask-21_(max_2h)", "D-7849_DG303_(max_4h)", "Aliante_Privato" ]; foreach ($strings as $str) { $pattern = "/^[^\s()]+(?:\([^()]*\))?$/"; echo preg_replace_callback($pattern, function ($x) { return trim(preg_replace("/[()_]+/", " ", $x[0])); }, $str) . PHP_EOL; }

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.0120.00720.80
8.4.110.0110.00920.00
8.4.100.0110.01017.96
8.4.90.0150.00520.45
8.4.80.0060.00220.84
8.4.70.0050.00518.30
8.4.60.0150.00518.74
8.4.50.0140.00617.71
8.4.40.0070.00419.77
8.4.30.0100.01020.43
8.4.20.0160.00320.80
8.4.10.0060.00318.78
8.3.250.0090.01118.69
8.3.240.0110.00816.52
8.3.230.0110.00916.84
8.3.220.0120.00618.88
8.3.210.0090.00618.34
8.3.200.0100.00916.73
8.3.190.0140.00516.52
8.3.180.0050.00318.61
8.3.170.0120.00616.72
8.3.160.0150.00416.49
8.3.150.0040.00417.35
8.3.140.0070.01120.75
8.3.130.0040.00418.57
8.3.120.0080.00020.55
8.3.110.0040.00416.66
8.3.100.0050.00518.43
8.3.90.0110.00026.77
8.3.80.0050.00516.60
8.3.70.0120.00316.88
8.3.60.0040.01116.75
8.3.50.0130.01016.50
8.3.40.0080.00818.89
8.3.30.0040.01118.78
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0080.00816.73
8.2.280.0150.00618.48
8.2.270.0080.00816.79
8.2.260.0040.00419.01
8.2.250.0110.00716.57
8.2.240.0060.00317.18
8.2.230.0160.00320.94
8.2.220.0080.00037.54
8.2.210.0100.01026.77
8.2.200.0090.00016.61
8.2.190.0160.00317.00
8.2.180.0030.01425.92
8.2.170.0150.00019.14
8.2.160.0030.01222.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0090.00021.13
8.2.110.0060.00322.21
8.2.100.0090.00317.91
8.2.90.0050.00318.00
8.2.80.0050.00318.89
8.2.70.0000.00817.88
8.2.60.0030.00518.03
8.2.50.0080.00018.05
8.2.40.0040.00419.92
8.2.30.0000.00718.26
8.2.20.0070.00018.04
8.2.10.0030.00519.32
8.2.00.0000.00819.40
8.1.330.0120.00616.54
8.1.320.0100.00816.06
8.1.310.0040.00416.74
8.1.300.0060.00316.36
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0040.00424.02
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00722.59
8.1.230.0070.00717.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0040.00419.00
8.1.150.0000.00818.93
8.1.140.0000.00718.87
8.1.130.0000.00720.36
8.1.120.0040.00417.62
8.1.110.0050.00317.64
8.1.100.0040.00417.56
8.1.90.0030.00617.52
8.1.80.0000.00717.49
8.1.70.0070.00017.57
8.1.60.0050.00317.64
8.1.50.0050.00317.71
8.1.40.0050.00317.62
8.1.30.0030.00517.79
8.1.20.0030.00517.79
8.1.10.0050.00317.66
8.1.00.0060.00617.52
8.0.300.0000.00918.77
8.0.290.0070.00016.88
8.0.280.0030.00318.48
8.0.270.0080.00018.23
8.0.260.0030.00318.65
8.0.250.0070.00016.99
8.0.240.0000.00716.99
8.0.230.0000.00817.06
8.0.220.0000.00717.04
8.0.210.0080.00017.10
8.0.200.0000.00717.03
8.0.190.0000.00817.11
8.0.180.0040.00417.09
8.0.170.0040.00417.07
8.0.160.0000.00817.01
8.0.150.0040.00416.88
8.0.140.0000.00716.94
8.0.130.0030.00313.56
8.0.120.0040.00417.03
8.0.110.0000.00717.03
8.0.100.0040.00416.95
8.0.90.0030.00617.08
8.0.80.0070.00016.95
8.0.70.0040.00417.16
8.0.60.0040.00416.92
8.0.50.0040.00417.05
8.0.30.0000.00716.95
8.0.20.0000.00817.17
8.0.10.0040.00417.29
8.0.00.0070.00017.04
7.4.330.0050.00015.55
7.4.320.0030.00316.81
7.4.300.0070.00016.63
7.4.290.0050.00316.66
7.4.280.0070.00016.72
7.4.270.0000.00716.63
7.4.260.0030.00313.55
7.4.250.0030.00316.64
7.4.240.0030.00616.74
7.4.230.0000.00716.56
7.4.220.0030.00516.60
7.4.210.0070.00016.69
7.4.200.0000.00816.59
7.4.190.0030.00516.62
7.4.180.0000.00816.78
7.4.160.0020.00516.81
7.4.150.0000.00716.61
7.4.140.0070.00016.80
7.4.130.0030.00316.91
7.4.120.0020.00516.71
7.4.110.0050.00316.79
7.4.100.0070.00016.96
7.4.90.0000.00716.81
7.4.80.0000.00716.63
7.4.70.0070.00016.84
7.4.60.0030.00316.84
7.4.50.0070.00016.40
7.4.40.0070.00016.74
7.4.30.0030.00316.45
7.4.20.0040.00416.75
7.4.10.0040.00416.80
7.4.00.0040.00416.61
7.3.330.0040.00416.36
7.3.320.0000.00613.50
7.3.310.0000.00716.55
7.3.300.0030.00316.43
7.3.290.0060.00016.31
7.3.280.0000.00616.31
7.3.270.0030.00316.44
7.3.260.0070.00016.33
7.3.250.0070.00016.32
7.3.240.0070.00016.32
7.3.230.0040.00416.50
7.3.220.0080.00016.50
7.3.210.0000.00816.29
7.3.200.0000.00816.33
7.3.190.0000.00816.43
7.3.180.0030.00316.32
7.3.170.0000.00716.34
7.3.160.0070.00016.46
7.3.150.0000.00716.45
7.3.140.0050.00216.39
7.3.130.0070.00016.33
7.3.120.0080.00016.50
7.3.110.0050.00216.39
7.3.100.0050.00216.20
7.3.90.0030.00316.76
7.3.80.0000.00716.32
7.3.70.0050.00216.42
7.3.60.0040.00416.59
7.3.50.0060.00016.50
7.3.40.0030.00316.60
7.3.30.0030.00316.59
7.3.20.0000.00816.52
7.3.10.0000.00816.40
7.3.00.0050.00316.61

preferences:
27.1 ms | 403 KiB | 5 Q