3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello {replace this curley} {{but not this one}} {{{and not this one}}}"; $formatted = preg_replace('/(?!\{{2,})(\{{1})(\}{1})/'," ",$string); var_dump($formatted);

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.01016.63
8.3.50.0110.01118.05
8.3.40.0080.00618.92
8.3.30.0140.00018.69
8.3.20.0040.00420.21
8.3.10.0040.00421.85
8.3.00.0000.00819.38
8.2.180.0140.00716.63
8.2.170.0100.01022.96
8.2.160.0100.00319.08
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0060.00322.20
8.2.120.0040.00426.35
8.2.110.0100.00019.24
8.2.100.0040.00819.77
8.2.90.0000.00919.00
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0000.00820.44
8.2.30.0000.00819.27
8.2.20.0040.00417.84
8.2.10.0040.00418.11
8.2.00.0000.00718.13
8.1.280.0130.00625.92
8.1.270.0000.00723.91
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0100.00021.27
8.1.230.0090.00317.77
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00617.25
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.64
8.1.160.0000.00722.13
8.1.150.0030.00620.55
8.1.140.0070.00019.57
8.1.130.0000.00817.57
8.1.120.0000.00717.46
8.1.110.0000.00717.41
8.1.100.0000.00717.47
8.1.90.0080.00017.41
8.1.80.0000.00717.56
8.1.70.0060.00317.41
8.1.60.0030.00417.58
8.1.50.0000.00817.59
8.1.40.0000.00817.57
8.1.30.0030.00617.63
8.1.20.0030.00617.68
8.1.10.0040.00417.47
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.39
8.0.270.0000.00717.27
8.0.260.0000.00717.08
8.0.250.0030.00317.04
8.0.240.0030.00317.02
8.0.230.0000.00716.91
8.0.220.0030.00516.96
8.0.210.0000.00816.96
8.0.200.0030.00317.02
8.0.190.0040.00416.98
8.0.180.0000.00716.98
8.0.170.0000.00817.00
8.0.160.0020.00516.90
8.0.150.0040.00416.98
8.0.140.0050.00516.99
8.0.130.0000.00613.41
8.0.120.0060.00316.90
8.0.110.0040.00416.91
8.0.100.0000.00716.82
8.0.90.0070.00017.08
8.0.80.0070.01416.95
8.0.70.0070.00016.96
8.0.60.0000.00716.99
8.0.50.0040.00417.03
8.0.30.0030.01416.98
8.0.20.0110.00817.43
8.0.10.0040.00417.13
8.0.00.0100.00716.95
7.4.330.0000.00515.08
7.4.320.0030.00316.65
7.4.300.0060.00016.63
7.4.290.0030.00516.68
7.4.280.0060.00316.76
7.4.270.0060.00016.66
7.4.260.0080.00016.70
7.4.250.0000.00816.71
7.4.240.0030.00516.79
7.4.230.0030.00316.49
7.4.220.0040.01516.76
7.4.210.0090.00716.71
7.4.200.0000.00716.39
7.4.160.0110.00416.65
7.4.150.0160.00617.40
7.4.140.0090.00817.86
7.4.130.0080.01116.55
7.4.120.0020.01516.64
7.4.110.0140.00316.54
7.4.100.0060.01516.53
7.4.90.0030.01516.53
7.4.80.0080.01119.39
7.4.70.0130.00616.47
7.4.60.0030.01416.56
7.4.50.0070.01116.52
7.4.40.0060.00916.60
7.4.30.0070.01316.42
7.4.00.0070.01014.94
7.3.330.0050.00013.20
7.3.320.0000.00613.13
7.3.310.0070.00016.36
7.3.300.0060.00016.12
7.3.290.0030.00316.30
7.3.280.0090.00916.27
7.3.270.0130.00417.40
7.3.260.0060.01116.44
7.3.250.0110.00816.34
7.3.240.0110.00616.28
7.3.230.0150.00416.51
7.3.210.0000.01616.52
7.3.200.0110.00516.66
7.3.190.0120.00916.43
7.3.180.0060.01116.39
7.3.170.0040.01416.16
7.3.160.0120.00916.22
7.3.10.0100.00616.65
7.3.00.0070.00416.61
7.2.330.0120.00616.59
7.2.320.0090.00916.54
7.2.310.0090.01316.81
7.2.300.0070.01016.46
7.2.290.0030.01516.61
7.2.130.0090.00616.95
7.2.120.0030.00716.99
7.2.110.0040.01116.90
7.2.100.0060.00616.76
7.2.90.0030.01016.74
7.2.80.0080.00317.13
7.2.70.0060.00916.94
7.2.60.0090.00616.76
7.2.50.0070.00716.89
7.2.40.0090.00317.05
7.2.30.0070.01016.75
7.2.20.0120.00317.00
7.2.10.0040.00716.75
7.2.00.0070.00717.14
7.1.250.0030.00615.94
7.1.200.0030.01015.85
7.1.70.0000.00717.17
7.1.60.0060.00619.63
7.1.00.0000.07722.34
7.0.200.0390.00414.77
7.0.80.0500.07720.00
7.0.70.0470.07319.96
7.0.60.0430.05020.06
7.0.50.0300.05720.32
7.0.40.0430.05020.33
7.0.30.0500.06020.45
7.0.20.0300.06020.38
7.0.10.0530.07320.39
7.0.00.0730.06020.34
5.6.280.0030.07321.14
5.6.230.0300.04720.70
5.6.220.0130.07320.75
5.6.210.0130.06020.70
5.6.200.0030.07021.02
5.6.190.0200.05021.08
5.6.180.0130.05721.01
5.6.170.0070.06721.07
5.6.160.0200.05021.14
5.6.150.0130.05321.06
5.6.140.0070.06020.98
5.6.130.0230.05021.17
5.6.120.0200.05321.10
5.6.110.0130.06321.01
5.6.100.0170.05721.08
5.6.90.0130.06021.06
5.6.80.0270.04320.55
5.6.70.0170.05320.47
5.6.60.0100.06020.44
5.6.50.0070.06320.49
5.6.40.0070.06020.48
5.6.30.0070.06020.55
5.6.20.0100.05720.54
5.6.10.0170.06020.54
5.6.00.0030.07020.45
5.5.370.0270.04720.55
5.5.360.0130.09020.43
5.5.350.0170.05720.43
5.5.340.0200.05020.93
5.5.330.0170.05720.95
5.5.320.0100.06020.86
5.5.310.0130.08320.83
5.5.300.0030.06720.88
5.5.290.0170.05720.94
5.5.280.0100.06020.87
5.5.270.0230.05320.91
5.5.260.0130.05720.89
5.5.250.0070.07020.77
5.5.240.0030.06320.30
5.5.230.0100.06320.29
5.5.220.0100.05320.29
5.5.210.0130.05320.17
5.5.200.0070.06020.04
5.5.190.0170.05720.29
5.5.180.0170.05720.31
5.5.160.0170.05320.18
5.5.150.0200.05320.25
5.5.140.0130.05320.20
5.5.130.0100.05720.31
5.5.120.0030.06020.12
5.5.110.0170.05320.23
5.5.100.0130.06020.07
5.5.90.0170.04720.22
5.5.80.0130.05320.13
5.5.70.0230.05020.21
5.5.60.0100.05320.12
5.5.50.0230.05019.99
5.5.40.0070.05720.20
5.5.30.0100.05320.16
5.5.20.0100.05720.20
5.5.10.0130.05320.01
5.5.00.0130.05719.96

preferences:
71.81 ms | 401 KiB | 5 Q