3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{Feel free to|Twenty-four hours a day|Do|Then|You can} stop on by, or {contact us|e mail us|call us|e-mail us|email us} about {your needs|your requirements|your preferences|the needs you have|your family needs}. {We look forward|Good quality} to {hearing from|talking with|listening to|meeting up with} you!'; echo preg_replace('/([^{}]*){[^|]+\|([^|]+).*}/', '$1$2', $str);

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.0100.01018.31
8.3.50.0060.00918.02
8.3.40.0110.00419.06
8.3.30.0080.00619.04
8.3.20.0070.00020.31
8.3.10.0070.00022.09
8.3.00.0040.00422.40
8.2.180.0150.00316.50
8.2.170.0040.01122.96
8.2.160.0000.01419.17
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0100.00326.16
8.2.120.0040.00419.61
8.2.110.0040.00422.33
8.2.100.0070.00419.70
8.2.90.0030.00519.07
8.2.80.0090.00017.97
8.2.70.0030.00617.63
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0050.00218.16
8.2.30.0030.00618.06
8.2.20.0000.00817.95
8.2.10.0060.00317.84
8.2.00.0050.00317.78
8.1.270.0040.00422.22
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0070.00418.93
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00017.36
8.1.190.0060.00317.41
8.1.180.0040.00418.64
8.1.170.0040.00418.62
8.1.160.0040.00421.94
8.1.150.0000.00718.74
8.1.140.0030.00717.46
8.1.130.0000.00717.71
8.1.120.0000.00717.45
8.1.110.0000.00817.58
8.1.100.0000.00717.54
8.1.90.0070.00017.62
8.1.80.0050.00217.53
8.1.70.0070.00017.46
8.1.60.0000.00717.63
8.1.50.0020.00517.51
8.1.40.0050.00317.48
8.1.30.0060.00317.76
8.1.20.0050.00317.79
8.1.10.0070.00017.53
8.1.00.0000.00817.54
8.0.300.0070.00018.77
8.0.290.0000.00717.17
8.0.280.0000.00718.46
8.0.270.0050.00317.29
8.0.260.0060.00016.84
8.0.250.0000.01017.04
8.0.240.0070.00017.05
8.0.230.0000.00816.95
8.0.220.0070.00016.87
8.0.210.0030.00316.98
8.0.200.0000.00717.06
8.0.190.0040.00417.02
8.0.180.0000.00716.99
8.0.170.0040.00416.94
8.0.160.0040.00417.04
8.0.150.0000.00717.03
8.0.140.0000.00816.83
8.0.130.0070.00013.47
8.0.120.0000.00916.84
8.0.110.0040.00416.91
8.0.100.0000.00716.86
8.0.90.0000.00716.95
8.0.80.0080.00817.01
8.0.70.0050.00216.87
8.0.60.0000.00816.85
8.0.50.0050.00216.84
8.0.30.0080.01117.09
8.0.20.0120.00617.40
8.0.10.0040.00417.00
8.0.00.0100.00816.94
7.4.330.0050.00015.00
7.4.320.0030.00316.74
7.4.300.0060.00016.62
7.4.290.0070.00016.69
7.4.280.0030.00316.54
7.4.270.0000.00716.70
7.4.260.0040.00716.72
7.4.250.0080.00016.64
7.4.240.0050.00216.69
7.4.230.0030.00316.75
7.4.220.0190.00616.76
7.4.210.0050.00916.70
7.4.200.0040.00416.65
7.4.190.0040.00416.51
7.4.160.0060.01216.77
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0080.00916.56
7.4.120.0120.00516.54
7.4.110.0100.00716.59
7.4.100.0100.01316.55
7.4.90.0110.00516.60
7.4.80.0120.00619.39
7.4.70.0120.00916.57
7.4.60.0090.01216.64
7.4.50.0080.00016.64
7.4.40.0040.01222.77
7.4.30.0090.00916.58
7.4.00.0070.01114.83
7.3.330.0020.00213.13
7.3.320.0050.00013.11
7.3.310.0000.00716.35
7.3.300.0000.00616.37
7.3.290.0030.01016.24
7.3.280.0100.00916.29
7.3.270.0070.01017.40
7.3.260.0170.00316.36
7.3.250.0120.00516.54
7.3.240.0060.01116.30
7.3.230.0070.01016.42
7.3.210.0100.01016.57
7.3.200.0110.00619.39
7.3.190.0080.00816.60
7.3.180.0120.00416.37
7.3.170.0060.00916.41
7.3.160.0110.00516.49
7.3.120.0030.01415.02
7.2.330.0120.00616.46
7.2.320.0120.00416.79
7.2.310.0100.01416.75
7.2.300.0060.01816.44
7.2.290.0080.00816.52
7.2.00.0060.00619.57
7.1.200.0070.00315.89
7.1.100.0030.00618.47
7.1.70.0030.00617.30
7.1.60.0070.01819.82
7.1.50.0110.01417.18
7.1.00.0000.08022.53
7.0.200.0050.00216.60
7.0.140.0030.07322.14
7.0.60.0100.05319.91
7.0.50.0070.05317.82
7.0.40.0170.07320.06
7.0.30.0200.04020.11
7.0.20.0270.07720.02
7.0.10.0030.04320.35
7.0.00.0270.03320.07
5.6.280.0100.06320.92
5.6.210.0030.08320.74
5.6.200.0030.04718.15
5.6.190.0030.06320.45
5.6.180.0330.03720.77
5.6.170.0370.07320.48
5.6.160.0000.06020.46
5.6.150.0030.04718.17
5.6.140.0070.06018.22
5.6.130.0070.08018.21
5.6.120.0070.04720.98
5.6.110.0100.06020.97
5.6.100.0130.05021.10
5.6.90.0170.07020.98
5.6.80.0070.05020.37
5.5.350.0230.07720.37
5.5.340.0200.04318.01
5.5.330.0130.06720.29
5.5.320.0000.04720.51
5.5.310.0330.08020.27
5.5.300.0030.08317.93
5.5.290.0030.04017.92
5.5.280.0030.09020.77
5.5.270.0000.04320.70
5.5.260.0030.04020.75
5.5.250.0070.08320.67
5.5.240.0000.05720.28
5.4.450.0300.04719.41
5.4.440.0230.08719.42
5.4.430.0200.04719.62
5.4.420.0070.06019.51
5.4.410.0070.05719.06
5.4.400.0770.00018.75
5.4.390.0770.00018.77
5.4.380.0270.05318.59
5.4.370.0270.05318.67
5.4.360.0230.05018.68
5.4.350.0330.04018.67
5.4.340.0270.04318.63
5.4.320.0050.03912.45
5.4.310.0050.04712.45
5.4.300.0070.03912.45
5.4.290.0040.03812.45
5.4.280.0030.03812.34
5.4.270.0060.03512.35
5.4.260.0100.05018.73
5.4.250.0100.05018.74
5.4.240.0070.05018.97
5.4.230.0100.05018.97
5.4.220.0100.05318.72
5.4.210.0000.08318.75
5.4.200.0130.04318.82
5.4.190.0130.05319.00
5.4.180.0100.05018.85
5.4.170.0170.05018.70
5.4.160.0100.06018.86
5.4.150.0070.05318.96
5.4.140.0030.05316.30
5.4.130.0100.04316.29
5.4.120.0030.05316.25
5.4.110.0100.04716.48
5.4.100.0030.05016.38
5.4.90.0030.05016.37
5.4.80.0070.04716.26
5.4.70.0100.04316.38
5.4.60.0030.05016.22
5.4.50.0100.04316.38
5.4.40.0130.04016.51
5.4.30.0070.05016.40
5.4.20.0070.05016.25
5.4.10.0030.05316.39
5.4.00.0100.06715.92
5.3.290.0070.04112.80
5.3.280.0130.04714.51
5.3.270.0170.04714.61
5.3.260.0100.05014.37
5.3.250.0070.05014.61
5.3.240.0100.06714.61
5.3.230.0130.04314.29
5.3.220.0100.04714.26
5.3.210.0000.06014.40
5.3.200.0130.04014.58
5.3.190.0030.05314.26
5.3.180.0070.05014.39
5.3.170.0000.05314.58
5.3.160.0030.05014.60
5.3.150.0000.05314.55
5.3.140.0030.05314.56
5.3.130.0030.05714.55
5.3.120.0000.05714.61
5.3.110.0030.05314.43
5.3.100.0170.05713.90
5.3.90.0100.05013.93
5.3.80.0070.04713.71
5.3.70.0070.04714.03

preferences:
59.54 ms | 400 KiB | 5 Q