3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Deadpool 2 [Region 4](Blu-ray)"; echo trim(preg_replace("/\s*(?:\[[^][]*]|\([^()]*\))/","", $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.4.140.0100.01017.53
8.4.130.0100.00917.82
8.4.120.0130.01020.71
8.4.110.0120.01022.18
8.4.100.0070.00417.82
8.4.90.0120.00818.05
8.4.80.0060.00217.84
8.4.70.0090.00517.97
8.4.60.0100.00618.55
8.4.50.0130.00717.86
8.4.40.0120.00319.43
8.4.30.0100.01018.47
8.4.20.0100.01018.79
8.4.10.0040.00418.01
8.3.270.0120.00716.63
8.3.260.0100.00616.61
8.3.250.0100.01018.90
8.3.240.0100.00916.93
8.3.230.0030.00516.86
8.3.220.0130.00617.18
8.3.210.0080.00816.68
8.3.200.0130.00616.76
8.3.190.0110.00920.65
8.3.180.0050.00516.61
8.3.170.0120.00618.75
8.3.160.0120.00618.19
8.3.150.0110.00718.78
8.3.140.0190.00018.43
8.3.130.0090.00018.42
8.3.120.0090.00620.51
8.3.110.0060.00318.44
8.3.100.0080.00316.71
8.3.90.0000.00818.48
8.3.80.0090.00018.43
8.3.70.0100.00616.38
8.3.60.0110.00318.30
8.3.50.0090.01018.39
8.3.40.0090.00618.85
8.3.30.0120.00318.79
8.3.20.0060.00321.70
8.3.10.0000.00919.15
8.3.00.0050.00321.85
8.2.290.0030.00620.59
8.2.280.0100.00720.33
8.2.270.0030.01620.70
8.2.260.0060.01216.63
8.2.250.0130.00316.83
8.2.240.0070.01118.94
8.2.230.0100.00020.94
8.2.220.0060.00924.06
8.2.210.0050.00326.77
8.2.200.0030.00618.66
8.2.190.0120.00616.88
8.2.180.0030.01616.63
8.2.170.0070.00722.96
8.2.160.0140.00022.31
8.2.150.0000.00725.66
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.01126.16
8.2.110.0090.00019.45
8.2.100.0060.00617.97
8.2.90.0060.00317.97
8.2.80.0030.00617.97
8.2.70.0000.00817.93
8.2.60.0090.00018.03
8.2.50.0050.00318.10
8.2.40.0000.00819.11
8.2.30.0070.00020.36
8.2.20.0000.00718.00
8.2.10.0040.00418.87
8.2.00.0070.00017.93
8.1.330.0120.00622.19
8.1.320.0110.00916.55
8.1.310.0070.01116.78
8.1.300.0080.00016.31
8.1.290.0060.00318.88
8.1.280.0150.00725.92
8.1.270.0030.00623.58
8.1.260.0100.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00622.65
8.1.230.0030.00920.83
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0000.00917.38
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0050.00318.58
8.1.160.0050.00218.72
8.1.150.0000.00718.84
8.1.140.0070.00020.30
8.1.130.0060.00317.59
8.1.120.0040.00417.44
8.1.110.0040.00417.39
8.1.100.0070.00017.46
8.1.90.0040.00417.57
8.1.80.0040.00417.56
8.1.70.0000.00817.43
8.1.60.0060.00317.57
8.1.50.0070.00317.48
8.1.40.0060.00317.48
8.1.30.0030.00717.74
8.1.20.0000.00817.71
8.1.10.0000.00917.73
8.1.00.0080.00017.46
8.0.300.0000.00719.98
8.0.290.0050.00316.88
8.0.280.0050.00318.36
8.0.270.0030.00518.65
8.0.260.0070.00016.95
8.0.250.0070.00017.09
8.0.240.0000.00717.12
8.0.230.0030.00316.92
8.0.220.0070.00016.86
8.0.210.0080.00016.84
8.0.200.0000.00717.05
8.0.190.0040.00417.02
8.0.180.0070.00016.89
8.0.170.0060.00316.91
8.0.160.0080.00016.98
8.0.150.0030.00616.87
8.0.140.0000.00716.83
8.0.130.0030.00313.39
8.0.120.0000.00716.98
8.0.110.0040.00416.86
8.0.100.0000.00716.85
8.0.90.0040.00416.99
8.0.80.0080.01116.89
8.0.70.0030.00416.84
8.0.60.0040.00416.91
8.0.50.0000.00716.92
8.0.30.0170.00217.13
8.0.20.0130.00617.18
8.0.10.0000.00717.20
8.0.00.0140.00816.90
7.4.330.0050.00015.55
7.4.320.0000.00616.73
7.4.300.0030.00316.64
7.4.290.0070.00016.71
7.4.280.0040.00416.73
7.4.270.0000.00716.69
7.4.260.0000.00716.64
7.4.250.0030.00316.69
7.4.240.0070.00016.75
7.4.230.0040.00416.73
7.4.220.0000.00716.83
7.4.210.0060.01016.79
7.4.200.0070.00016.55
7.4.160.0100.00916.76
7.4.140.0090.00917.86
7.4.130.0130.00316.75
7.4.120.0110.01116.63
7.4.110.0070.01016.46
7.4.100.0110.01116.53
7.4.90.0130.00316.70
7.4.80.0040.01419.39
7.4.70.0030.01416.59
7.4.60.0100.00616.77
7.4.50.0090.00616.52
7.4.40.0100.00816.65
7.4.00.0040.01114.91
7.3.330.0050.00013.26
7.3.320.0030.00313.18
7.3.310.0040.00416.21
7.3.300.0060.00016.20
7.3.290.0040.01016.43
7.3.280.0070.00716.32
7.3.260.0120.00716.55
7.3.230.0100.01016.39
7.3.210.0210.00016.36
7.3.200.0070.01016.30
7.3.190.0100.00716.67
7.3.180.0040.01116.68
7.3.170.0100.00716.57
7.3.160.0170.00316.35
7.3.50.0110.00514.79
7.3.40.0090.00914.88
7.3.30.0120.00514.69
7.3.20.0150.00715.84
7.3.10.0110.00715.97
7.3.00.0060.00815.59
7.2.330.0060.01016.63
7.2.320.0070.01316.48
7.2.310.0100.00616.63
7.2.300.0050.01316.68
7.2.290.0070.01016.63
7.2.180.0070.01215.06
7.2.170.0120.00914.78
7.2.160.0060.01215.10
7.2.150.0060.00816.00
7.2.140.0100.00715.93
7.2.130.0060.00915.83
7.2.120.0070.00716.03
7.2.110.0060.01315.99
7.2.100.0120.00815.81
7.2.90.0130.00516.12
7.2.80.0090.00516.16
7.2.70.0130.00615.92
7.2.60.0110.00616.01
7.2.50.0040.00916.08
7.2.40.0130.00516.03
7.2.30.0090.01015.95
7.2.20.0140.00816.02
7.2.10.0140.00215.84
7.2.00.0070.00816.10
7.1.280.0030.01314.90
7.1.270.0120.00415.10
7.1.260.0130.00514.94
7.1.250.0070.01014.91

preferences:
29.95 ms | 403 KiB | 5 Q