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$3', $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.0130.00718.30
8.3.50.0100.00821.99
8.3.40.0110.00718.96
8.3.30.0110.00419.09
8.3.20.0040.00420.39
8.3.10.0050.00322.04
8.3.00.0070.00022.34
8.2.180.0140.00725.92
8.2.170.0040.01119.00
8.2.160.0080.00522.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0140.00026.16
8.2.120.0050.00319.48
8.2.110.0030.00622.43
8.2.100.0040.00719.76
8.2.90.0000.00819.21
8.2.80.0030.00618.04
8.2.70.0000.00917.75
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0080.00018.22
8.2.30.0040.00417.97
8.2.20.0000.00817.91
8.2.10.0050.00317.84
8.2.00.0050.00217.69
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.82
8.1.230.0080.00318.88
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.34
8.1.190.0000.00817.38
8.1.180.0080.00018.59
8.1.170.0030.00518.59
8.1.160.0000.00722.00
8.1.150.0030.00618.67
8.1.140.0030.00717.52
8.1.130.0030.00317.74
8.1.120.0030.00317.49
8.1.110.0050.00317.52
8.1.100.0000.00717.56
8.1.90.0000.00717.52
8.1.80.0030.00317.56
8.1.70.0070.00017.53
8.1.60.0040.00417.65
8.1.50.0000.00817.59
8.1.40.0000.00917.59
8.1.30.0030.00617.63
8.1.20.0040.00417.77
8.1.10.0030.00617.71
8.1.00.0060.00317.52
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0030.00318.35
8.0.270.0030.00517.16
8.0.260.0000.00617.04
8.0.250.0050.00317.09
8.0.240.0030.00316.95
8.0.230.0080.00017.03
8.0.220.0000.00716.93
8.0.210.0040.00416.95
8.0.200.0030.00317.00
8.0.190.0040.00416.95
8.0.180.0040.00417.00
8.0.170.0040.00416.99
8.0.160.0070.00017.05
8.0.150.0090.00016.82
8.0.140.0040.00416.93
8.0.130.0060.00013.34
8.0.120.0080.00016.96
8.0.110.0050.00216.95
8.0.100.0000.00816.95
8.0.90.0000.00816.82
8.0.80.0040.01517.01
8.0.70.0000.00816.98
8.0.60.0000.00717.02
8.0.50.0000.00817.01
8.0.30.0080.01417.20
8.0.20.0090.01117.40
8.0.10.0040.00417.13
8.0.00.0060.01416.79
7.4.330.0050.00015.01
7.4.320.0060.00016.65
7.4.300.0000.00616.58
7.4.290.0000.00716.74
7.4.280.0070.00016.59
7.4.270.0070.00016.69
7.4.260.0060.00616.73
7.4.250.0080.00016.70
7.4.240.0030.00516.67
7.4.230.0030.00316.80
7.4.220.0040.01416.78
7.4.210.0060.00916.75
7.4.200.0000.00816.77
7.4.190.0050.00316.89
7.4.160.0070.00716.69
7.4.150.0130.00317.40
7.4.140.0080.01317.86
7.4.130.0070.01216.48
7.4.120.0130.00516.77
7.4.110.0090.00916.48
7.4.100.0030.01416.61
7.4.90.0180.00016.55
7.4.80.0060.01319.39
7.4.70.0090.01516.61
7.4.60.0130.00616.58
7.4.50.0060.00316.59
7.4.40.0030.01022.77
7.4.30.0090.00916.52
7.4.00.0070.01015.02
7.3.330.0030.00313.01
7.3.320.0000.00513.18
7.3.310.0030.00316.35
7.3.300.0050.00216.29
7.3.290.0120.00316.25
7.3.280.0090.00816.30
7.3.270.0070.01017.40
7.3.260.0090.01516.34
7.3.250.0140.00316.43
7.3.240.0080.00816.41
7.3.230.0000.01716.49
7.3.210.0140.00616.31
7.3.200.0030.01219.39
7.3.190.0060.01116.44
7.3.180.0090.00616.58
7.3.170.0120.00316.27
7.3.160.0060.01116.58
7.3.120.0130.00315.23
7.3.10.0080.00316.59
7.3.00.0060.00916.72
7.2.330.0090.00916.79
7.2.320.0070.01016.73
7.2.310.0110.00716.76
7.2.300.0180.00316.66
7.2.290.0090.00616.61
7.2.130.0090.00316.87
7.2.120.0000.01116.88
7.2.110.0060.00616.85
7.2.100.0050.00616.82
7.2.90.0060.00316.87
7.2.80.0040.00816.79
7.2.70.0030.00917.02
7.2.60.0090.00616.84
7.2.50.0030.00717.00
7.2.40.0070.00316.98
7.2.30.0120.00316.95
7.2.20.0030.00917.11
7.2.10.0040.00416.91
7.2.00.0070.00718.13
7.1.250.0100.00016.02
7.1.100.0030.01017.98
7.1.70.0030.00717.43
7.1.60.0110.01519.82
7.1.50.0060.01916.78
7.1.00.0030.07322.34
7.0.200.0000.00716.77
7.0.140.0030.07322.09
7.0.60.0070.05319.92
7.0.50.0030.09317.87
7.0.40.0100.08720.06
7.0.30.0370.07720.18
7.0.20.0230.06020.18
7.0.10.0230.07720.01
7.0.00.0030.04020.02
5.6.280.0030.07321.13
5.6.210.0100.06320.47
5.6.200.0130.07318.22
5.6.190.0070.07020.64
5.6.180.3170.04720.57
5.6.170.0530.06020.53
5.6.160.0070.04020.54
5.6.150.0170.07018.21
5.6.140.0000.04018.15
5.6.130.0030.05718.22
5.6.120.0030.05320.89
5.6.110.0070.08321.00
5.6.100.0070.05721.07
5.6.90.0070.08320.93
5.6.80.0130.07720.36
5.6.70.0230.03020.46
5.5.350.0030.03320.36
5.5.340.0070.06717.92
5.5.330.0100.08020.43
5.5.320.0200.03720.28
5.5.310.0230.07320.24
5.5.300.0070.07317.98
5.5.290.0030.09017.91
5.5.280.0030.04720.89
5.5.270.0100.08020.77
5.5.260.0100.06720.86
5.5.250.0100.04020.60
5.5.240.0030.05020.03
5.4.450.0530.05719.47
5.4.440.0600.05319.32
5.4.430.0030.06019.51
5.4.420.0070.06019.35
5.4.410.0200.05319.31
5.4.400.0970.00018.67
5.4.390.0870.00018.69
5.4.380.0230.06018.68
5.4.370.0300.04318.72
5.4.360.0370.04718.58
5.4.350.0270.04718.78
5.4.340.0200.05718.59
5.4.320.0090.03912.45
5.4.310.0070.03712.45
5.4.300.0040.03912.45
5.4.290.0060.03812.45
5.4.280.0070.04112.35
5.4.270.0060.03512.34
5.4.260.0070.08018.86
5.4.250.0070.05719.00
5.4.240.0070.07319.00
5.4.230.0130.06718.68
5.4.220.0170.05718.72
5.4.210.0100.05718.63
5.4.200.0130.05718.90
5.4.190.0100.05318.85
5.4.180.0200.04718.68
5.4.170.0030.08018.86
5.4.160.0130.06718.94
5.4.150.0070.06018.75
5.4.140.0130.04316.29
5.4.130.0100.06316.48
5.4.120.0070.05716.47
5.4.110.0100.04716.50
5.4.100.0030.05316.28
5.4.90.0130.06716.33
5.4.80.0200.04316.31
5.4.70.0100.06316.23
5.4.60.0100.05316.30
5.4.50.0070.06316.32
5.4.40.0170.05716.36
5.4.30.0070.07716.47
5.4.20.0200.05016.34
5.4.10.0130.06716.45
5.4.00.0000.08015.93
5.3.290.0090.03712.80
5.3.280.0130.05014.69
5.3.270.0130.05014.52
5.3.260.0130.05314.30
5.3.250.0170.04314.30
5.3.240.0030.07014.29
5.3.230.0100.05014.58
5.3.220.0030.06014.57
5.3.210.0030.05714.58
5.3.200.0070.05014.25
5.3.190.0100.06714.48
5.3.180.0030.08014.71
5.3.170.0070.07014.60
5.3.160.0130.05014.41
5.3.150.0170.07014.60
5.3.140.0130.05014.55
5.3.130.0070.07314.55
5.3.120.0100.08014.63
5.3.110.0070.06314.70
5.3.100.0130.06013.90
5.3.90.0130.05714.01
5.3.80.0030.05313.93
5.3.70.0100.04714.03
5.3.60.0070.06714.14
5.3.50.0030.05313.96
5.3.40.0230.05014.10
5.3.30.0070.05014.05
5.3.20.0000.07713.70
5.3.10.0070.04713.69
5.3.00.0070.05313.73
5.2.170.0070.04011.16
5.2.160.0000.04711.15
5.2.150.0100.04011.17
5.2.140.0170.03010.96
5.2.130.0170.03011.25
5.2.120.0070.03711.11
5.2.110.0100.03311.25
5.2.100.0130.05011.11
5.2.90.0030.04011.10
5.2.80.0000.05011.10
5.2.70.0000.05011.00
5.2.60.0070.04711.07
5.2.50.0000.04311.11
5.2.40.0070.04011.01
5.2.30.0100.04011.13
5.2.20.0100.04010.72
5.2.10.0070.03710.85
5.2.00.0100.03310.65
5.1.60.0030.03710.01
5.1.50.0030.05010.14
5.1.40.0030.0379.91
5.1.30.0070.03710.48
5.1.20.0070.03710.27
5.1.10.0070.03310.12
5.1.00.0070.03310.02
5.0.50.0100.0238.46
5.0.40.0030.0278.32
5.0.30.0100.0478.25
5.0.20.0030.0378.19
5.0.10.0030.0278.12
5.0.00.0000.0578.39
4.4.90.0000.0237.46
4.4.80.0000.0237.46
4.4.70.0070.0207.46
4.4.60.0070.0237.46
4.4.50.0100.0237.46
4.4.40.0030.0307.46
4.4.30.0030.0207.46
4.4.20.0000.0237.46
4.4.10.0000.0237.46
4.4.00.0000.0477.46
4.3.110.0030.0237.46
4.3.100.0100.0137.46
4.3.90.0070.0237.46
4.3.80.0070.0377.46
4.3.70.0030.0277.46
4.3.60.0000.0237.46
4.3.50.0030.0207.46
4.3.40.0000.0437.46
4.3.30.0030.0207.46
4.3.20.0070.0177.46
4.3.10.0030.0277.46
4.3.00.0070.0239.26

preferences:
43.42 ms | 401 KiB | 5 Q