3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ '(STR,0:30) + |"Outdoor"| + |"Chair Mat","Commercial Floor Mat","Door Mat"| + [Post Type] + (STR,0:30)', '(STR,0:30) + |"Outdoor"| + |"Red, Yellow, and Green Jamaican Mat"| + [Post Type] + (STR,0:30)', '(STR,0:30) + |"Outdoor"| + |"USA \"MAGA\" Mat"| + [Post Type] + (STR,0:30)', ]; print_r( preg_replace('~\|("[^"\\\\]*(?:\\\\"[^"\\\\]*)*")\|~', '\1', $strings) );

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.3.60.0190.00318.43
8.3.50.0140.00318.20
8.3.40.0030.01218.80
8.3.30.0130.00318.67
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0000.00826.16
8.2.180.0040.01125.92
8.2.170.0120.00318.91
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0080.00322.38
8.2.100.0000.01217.84
8.2.90.0000.00817.75
8.2.80.0050.00318.81
8.2.70.0050.00317.63
8.2.60.0030.00717.63
8.2.50.0040.00417.75
8.2.40.0050.00218.09
8.2.30.0000.00717.90
8.2.20.0000.00718.08
8.2.10.0070.00019.25
8.2.00.0040.00419.21
8.1.280.0040.01525.92
8.1.270.0040.00423.99
8.1.260.0030.00528.09
8.1.250.0090.00028.09
8.1.240.0030.00620.84
8.1.230.0060.00922.57
8.1.220.0040.00418.67
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0040.00418.67
8.1.160.0000.00718.77
8.1.150.0000.00718.89
8.1.140.0040.00418.77
8.1.130.0000.00719.98
8.1.120.0040.00417.57
8.1.110.0090.00017.59
8.1.100.0040.00417.55
8.1.90.0000.00817.55
8.1.80.0040.00717.47
8.1.70.0070.00017.51
8.1.60.0040.00417.50
8.1.50.0050.00217.64
8.1.40.0040.00417.55
8.1.30.0050.00317.64
8.1.20.0040.00417.57
8.1.10.0000.00817.52
8.1.00.0130.00017.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.41
8.0.270.0080.00018.05
8.0.260.0030.00318.31
8.0.250.0040.00417.07
8.0.240.0030.00317.09
8.0.230.0030.00316.94
8.0.220.0000.00717.02
8.0.210.0070.00016.98
8.0.200.0030.00317.02
8.0.190.0050.00217.07
8.0.180.0040.00416.90
8.0.170.0040.00416.98
8.0.160.0060.00316.99
8.0.150.0000.00716.76
8.0.140.0030.00316.84
8.0.130.0060.00013.46
8.0.120.0030.00516.95
8.0.110.0000.00817.04
8.0.100.0040.00416.78
8.0.90.0050.00316.88
8.0.80.0080.00816.93
8.0.70.0000.00716.97
8.0.60.0050.00217.09
8.0.50.0000.00816.94
8.0.30.0070.01017.10
8.0.20.0220.01917.28
8.0.10.0040.00417.05
8.0.00.0090.00916.77
7.4.330.0000.00515.55
7.4.320.0000.00616.67
7.4.300.0030.00316.68
7.4.290.0000.00716.56
7.4.280.0060.00316.65
7.4.270.0030.00316.67
7.4.260.0000.00513.45
7.4.250.0080.00016.65
7.4.240.0040.00416.73
7.4.230.0000.00716.59
7.4.220.0030.00416.81
7.4.210.0080.00816.76
7.4.200.0030.00516.73
7.4.130.0070.01016.68
7.4.120.0070.01416.37
7.4.110.0110.00616.45
7.4.100.0130.00316.61
7.4.90.0090.00916.84
7.4.80.0030.01319.39
7.4.70.0090.00916.54
7.4.60.0080.01016.40
7.4.50.0180.00916.40
7.4.40.0160.00316.57
7.4.30.0170.00816.71
7.4.20.0140.01216.65
7.4.10.0160.00816.54
7.4.00.0130.00616.38
7.3.330.0030.00316.43
7.3.320.0030.00313.16
7.3.310.0000.00616.17
7.3.300.0040.00416.34
7.3.290.0110.00616.31
7.3.280.0030.01716.21
7.3.260.0060.01316.50
7.3.240.0110.00716.43
7.3.230.0060.01116.35
7.3.210.0110.00616.56
7.3.200.0100.00716.52
7.3.190.0060.01116.47
7.3.180.0100.00716.50
7.3.170.0120.00616.63
7.3.160.0150.00916.44
7.3.150.0110.01516.36
7.3.140.0090.00916.82
7.3.130.0170.00316.27
7.3.120.0150.00516.18
7.3.110.0040.01216.36
7.3.100.0090.00916.38
7.3.90.0110.01116.51
7.3.80.0090.00916.25
7.3.70.0060.01016.45
7.3.60.0060.01416.34
7.3.50.0130.00516.50
7.3.40.0120.00616.30
7.3.30.0120.00416.44
7.3.20.0190.00316.18
7.3.10.0190.00316.43
7.3.00.0110.00716.27
7.2.330.0030.01816.60
7.2.310.0170.00616.38
7.2.300.0120.00816.52
7.2.290.0130.01216.44
7.2.280.0120.00816.42
7.2.270.0100.01016.53
7.2.260.0030.01416.32
7.2.250.0100.01016.57
7.2.240.0090.00916.62
7.2.230.0060.01016.52
7.2.220.0120.00616.67
7.2.210.0050.01416.54
7.2.200.0030.01516.69
7.2.190.0060.00916.52
7.2.180.0060.01116.59
7.2.170.0090.00916.26
7.2.160.0070.01316.49
7.2.150.0030.02116.65
7.2.140.0130.01316.44
7.2.130.0100.01016.58
7.2.120.0100.01416.36
7.2.110.0080.01916.68
7.2.100.0070.01316.48
7.2.90.0130.00716.34
7.2.80.0220.00516.32
7.2.70.0420.00016.58
7.2.60.0070.01016.50
7.2.50.0140.01116.73
7.2.40.0030.01616.71
7.2.30.0210.00316.54
7.2.20.0040.01616.56
7.2.10.0070.01116.54
7.2.00.0040.01616.45

preferences:
32.73 ms | 400 KiB | 5 Q