3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sku = "<div class=\"product-single__description rte\" itemprop=\"description\">\n {{ product.description }}\n </div>"; $string = preg_replace('/(?<=(.))/', "\n\nhello", $sku); echo $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.3.60.0060.01618.31
8.3.50.0100.00716.51
8.3.40.0000.01618.70
8.3.30.0070.00718.69
8.3.20.0060.00921.75
8.3.10.0000.00723.65
8.3.00.0000.00721.69
8.2.180.0070.01118.51
8.2.170.0100.01022.96
8.2.160.0110.00419.21
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0060.00319.14
8.2.120.0000.00726.35
8.2.110.0060.00321.09
8.2.100.0040.00717.84
8.2.90.0030.00617.88
8.2.80.0050.00318.89
8.2.70.0050.00317.88
8.2.60.0040.00417.75
8.2.50.0080.00018.04
8.2.40.0040.00419.68
8.2.30.0060.00319.29
8.2.20.0040.00418.09
8.2.10.0040.00418.16
8.2.00.0070.00018.33
8.1.280.0150.00025.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0070.00421.04
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.22
8.1.180.0000.00918.10
8.1.170.0000.00917.62
8.1.160.0070.00018.88
8.1.150.0030.00518.78
8.1.140.0050.00219.08
8.1.130.0000.00717.72
8.1.120.0070.00017.45
8.1.110.0070.00017.50
8.1.100.0000.00817.52
8.1.90.0040.00417.59
8.1.80.0070.00017.59
8.1.70.0000.00717.46
8.1.60.0030.00617.51
8.1.50.0080.00017.61
8.1.40.0040.00417.61
8.1.30.0110.00017.71
8.1.20.0000.00717.59
8.1.10.0040.00417.56
8.1.00.0030.00517.64
8.0.300.0050.00518.77
8.0.290.0060.00316.88
8.0.280.0000.00718.47
8.0.270.0070.00017.25
8.0.260.0030.00318.36
8.0.250.0000.00717.07
8.0.240.0070.00017.18
8.0.230.0000.00717.09
8.0.220.0000.00717.02
8.0.210.0000.00816.91
8.0.200.0050.00217.07
8.0.190.0100.00017.07
8.0.180.0070.00016.96
8.0.170.0040.00416.96
8.0.160.0000.00717.05
8.0.150.0060.00317.07
8.0.140.0030.00617.01
8.0.130.0000.00713.44
8.0.120.0040.00417.02
8.0.110.0000.00717.07
8.0.100.0040.00416.89
8.0.90.0000.00717.07
8.0.80.0040.01216.99
8.0.70.0040.00417.02
8.0.60.0000.00717.12
8.0.50.0020.00516.88
8.0.30.0140.00517.07
8.0.20.0110.00917.40
8.0.10.0050.00317.16
8.0.00.0050.01516.98
7.4.330.0060.00015.55
7.4.320.0030.00316.79
7.4.300.0000.00616.74
7.4.290.0070.00016.74
7.4.280.0040.00416.66
7.4.270.0070.00016.77
7.4.260.0000.00816.72
7.4.250.0040.00416.64
7.4.240.0030.00516.79
7.4.230.0020.00516.74
7.4.220.0040.00416.77
7.4.210.0180.00016.73
7.4.200.0070.00016.80
7.4.160.0110.00616.71
7.4.150.0090.00917.40
7.4.140.0130.00617.86
7.4.130.0110.00716.56
7.4.120.0120.00916.59
7.4.110.0120.00616.64
7.4.100.0100.00716.66
7.4.90.0090.00916.76
7.4.80.0120.00619.39
7.4.70.0110.00716.83
7.4.60.0130.00416.92
7.4.50.0100.00716.78
7.4.40.0120.00616.65
7.4.00.0030.01114.91
7.3.330.0000.00613.22
7.3.320.0030.00313.27
7.3.310.0030.00516.50
7.3.300.0070.00016.29
7.3.290.0070.00916.40
7.3.280.0100.00616.40
7.3.270.0150.00617.40
7.3.260.0100.00916.60
7.3.250.0080.00816.46
7.3.240.0090.00916.39
7.3.230.0130.00616.52
7.3.210.0090.00916.66
7.3.200.0120.00616.80
7.3.190.0080.00816.34
7.3.180.0120.00616.55
7.3.170.0090.00616.43
7.3.160.0060.01516.43
7.3.10.0100.00516.82
7.3.00.0120.00516.90
7.2.330.0140.00316.65
7.2.320.0130.00316.79
7.2.310.0130.00716.69
7.2.300.0080.00816.68
7.2.290.0080.00816.79
7.2.130.0080.00917.00
7.2.120.0030.00717.11
7.2.110.0130.00816.87
7.2.100.0050.01217.07
7.2.90.0100.00317.02
7.2.80.0060.01217.08
7.2.70.0070.00717.10
7.2.60.0090.00817.08
7.2.50.0110.00516.98
7.2.40.0040.00716.80
7.2.30.0080.00616.96
7.2.20.0080.00717.01
7.2.10.0060.00917.91
7.2.00.0060.00817.80
7.1.250.0030.01115.81
7.1.240.0090.00315.85
7.1.230.0070.01016.10
7.1.220.0100.00315.67
7.1.210.0140.00415.94
7.1.200.0110.00515.89
7.1.190.0040.00715.64
7.1.180.0090.00015.78
7.1.170.0100.00715.76
7.1.160.0070.01115.81
7.1.150.0100.00315.68
7.1.140.0040.00416.02
7.1.130.0140.00315.97
7.1.120.0040.01117.21
7.1.110.0050.00717.24
7.1.100.0080.01017.25
7.1.90.0050.00917.02
7.1.80.0090.00716.92
7.1.70.0050.00816.67
7.1.60.0150.00625.54
7.1.50.0110.00625.40
7.1.40.0120.01225.32
7.1.30.0110.01125.24
7.1.20.0140.00825.44
7.1.10.0020.01216.17
7.1.00.0090.00516.40
7.0.330.0070.00715.18
5.6.380.0090.00614.52

preferences:
66.17 ms | 400 KiB | 5 Q