3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!\@, products#$#\, sample "; $keywords = preg_replace("/\n/", '<br>',($_POST['keywords'])); echo $keywords;

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.0140.00016.75
8.3.50.0070.00722.15
8.3.40.0120.00318.92
8.3.30.0070.00719.12
8.3.20.0080.00020.30
8.3.10.0060.00323.66
8.3.00.0040.00419.11
8.2.180.0080.00818.54
8.2.170.0100.00722.96
8.2.160.0100.00720.35
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.38
8.2.110.0060.00322.16
8.2.100.0040.00817.97
8.2.90.0030.00619.34
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0000.00820.07
8.2.30.0050.00218.33
8.2.20.0030.00617.94
8.2.10.0040.00418.01
8.2.00.0080.00017.85
8.1.280.0150.00025.92
8.1.270.0080.00023.97
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00617.60
8.1.230.0070.00417.64
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0000.00722.02
8.1.150.0050.00518.82
8.1.140.0040.00417.63
8.1.130.0020.00517.88
8.1.120.0070.00017.63
8.1.110.0040.00417.59
8.1.100.0050.00217.48
8.1.90.0070.00017.63
8.1.80.0040.00417.63
8.1.70.0070.00017.58
8.1.60.0040.00417.64
8.1.50.0000.00717.61
8.1.40.0000.00817.64
8.1.30.0030.00517.74
8.1.20.0030.00517.68
8.1.10.0080.00017.68
8.1.00.0040.00417.72
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.36
8.0.270.0070.00017.23
8.0.260.0000.00617.26
8.0.250.0030.00317.01
8.0.240.0050.00516.98
8.0.230.0040.00417.11
8.0.220.0000.00717.07
8.0.210.0040.00216.94
8.0.200.0030.00616.97
8.0.190.0040.00417.00
8.0.180.0080.00016.91
8.0.170.0000.00816.95
8.0.160.0000.00716.91
8.0.150.0050.00216.96
8.0.140.0000.00816.96
8.0.130.0000.00613.46
8.0.120.0080.00016.87
8.0.110.0000.00717.00
8.0.100.0030.00616.84
8.0.90.0070.00017.06
8.0.80.0060.00917.01
8.0.70.0050.00316.82
8.0.60.0080.00017.00
8.0.50.0030.00516.90
8.0.30.0100.00917.23
8.0.20.0100.00917.40
8.0.10.0090.00016.96
8.0.00.0090.00916.74
7.4.330.0020.00215.12
7.4.320.0000.00616.79
7.4.300.0030.00316.79
7.4.290.0030.00316.70
7.4.280.0030.00316.64
7.4.270.0040.00416.72
7.4.260.0050.00316.74
7.4.250.0000.00716.66
7.4.240.0050.00216.57
7.4.230.0070.00016.70
7.4.220.0030.01316.77
7.4.210.0040.01016.85
7.4.200.0040.00416.63
7.4.190.0070.00016.76
7.4.160.0100.00716.58
7.4.150.0100.00717.40
7.4.140.0090.00917.86
7.4.130.0130.01016.73
7.4.120.0050.01316.72
7.4.110.0030.01716.43
7.4.100.0140.00416.66
7.4.90.0090.00916.75
7.4.80.0130.01019.39
7.4.70.0070.01316.77
7.4.60.0000.01616.62
7.4.50.0050.00316.73
7.4.40.0080.00816.73
7.4.30.0090.00616.76
7.4.00.0090.00815.27
7.3.330.0060.00013.20
7.3.320.0000.00613.29
7.3.310.0000.00716.61
7.3.300.0030.00316.30
7.3.290.0120.00916.46
7.3.280.0060.01216.42
7.3.270.0100.00717.40
7.3.260.0110.00716.73
7.3.250.0110.00616.49
7.3.240.0030.01316.81
7.3.230.0080.00816.50
7.3.210.0080.00816.50
7.3.200.0140.00319.39
7.3.190.0130.00616.65
7.3.180.0090.00616.45
7.3.170.0110.00616.57
7.3.160.0100.00516.58
7.3.120.0080.00815.11
7.3.110.0060.01214.93
7.3.100.0060.01014.90
7.3.90.0090.00915.04
7.3.80.0030.00915.17
7.3.70.0040.00414.86
7.3.60.0090.00615.12
7.3.50.0000.01415.14
7.3.40.0060.01015.17
7.3.30.0080.00815.00
7.3.20.0070.00716.71
7.3.10.0040.00816.95
7.3.00.0070.00416.78
7.2.330.0030.01416.55
7.2.320.0070.01016.94
7.2.310.0090.01516.82
7.2.300.0100.00616.79
7.2.290.0090.00616.68
7.2.250.0040.01114.92
7.2.240.0060.01314.93
7.2.230.0060.00915.04
7.2.220.0080.00415.37
7.2.210.0090.00915.34
7.2.200.0060.00915.23
7.2.190.0000.01715.23
7.2.180.0060.00615.33
7.2.170.0060.00615.42
7.2.60.0000.01516.75
7.2.00.0090.00619.45
7.1.330.0070.00716.00
7.1.320.0030.00716.02
7.1.310.0100.00716.11
7.1.300.0070.00715.72
7.1.290.0080.00415.88
7.1.280.0070.00716.00
7.1.270.0030.01415.94
7.1.260.0030.01016.06
7.1.200.0030.01015.96
7.1.100.0040.01118.32
7.1.70.0040.00717.36
7.1.60.0100.01419.46
7.1.50.0130.01617.14
7.1.00.0000.07722.34
7.0.200.0060.00316.70
7.0.140.0170.06022.07
7.0.60.0030.07019.83
7.0.50.0000.07317.80
7.0.40.0030.06019.98
7.0.30.0270.08720.13
7.0.20.0200.05320.10
7.0.10.0070.04720.19
7.0.00.0100.05720.20
5.6.280.0130.06320.77
5.6.210.0300.06020.70
5.6.200.0100.08318.22
5.6.190.0030.06720.39
5.6.180.0030.08320.57
5.6.170.0270.07720.48
5.6.160.0070.05320.38
5.6.150.0030.08718.16
5.6.140.0070.05318.09
5.6.130.0070.08318.21
5.6.120.0100.07720.99
5.6.110.0130.07720.96
5.6.100.0170.06721.12
5.6.90.0130.07320.98
5.6.80.0170.06720.37
5.5.350.3800.04320.43
5.5.340.0100.06317.91
5.5.330.0070.04020.28
5.5.320.0200.04020.24
5.5.310.0330.08020.34
5.5.300.0070.06717.91
5.5.290.0030.04017.88
5.5.280.0100.07320.76
5.5.270.0070.08320.86
5.5.260.0070.07320.64
5.5.250.0070.06320.57
5.5.240.0030.07320.28
5.4.450.0800.05019.54
5.4.440.0270.05719.37
5.4.430.0630.07019.65
5.4.420.0900.06319.54
5.4.410.0700.06319.20
5.4.400.0830.04319.09
5.4.390.0900.07319.00
5.4.380.0170.05018.65
5.4.370.0000.06318.49
5.4.360.0100.05318.50
5.4.350.0200.05018.63
5.4.340.0100.05318.61
5.4.320.0550.10012.45
5.4.310.0180.06212.45
5.4.300.0180.05212.45
5.4.290.0030.05612.45
5.4.280.0070.04612.35
5.4.270.0090.04512.35
5.4.260.0070.03812.35
5.4.250.0100.03412.34
5.4.240.0060.03612.34
5.4.230.0100.04612.34
5.4.220.0060.04512.34
5.4.210.0060.03812.34
5.4.200.0070.04112.34
5.4.190.0070.03712.34
5.4.180.0090.05112.34
5.4.170.0070.06012.35
5.4.160.0130.04512.34
5.4.150.0080.05012.34
5.4.140.0090.04012.02
5.4.130.0110.03312.01
5.4.120.0060.04411.96
5.4.110.0120.03611.96
5.4.100.0070.04611.96
5.4.90.0130.04911.96
5.4.80.0070.05411.96
5.4.70.0070.04111.96
5.4.60.0060.03611.96
5.4.50.0080.05511.96
5.4.40.0050.05411.95
5.4.30.0080.04011.95
5.4.20.0070.04211.95
5.4.10.0080.04611.95
5.4.00.0090.04011.44
5.3.290.0130.05912.80
5.3.280.0060.04112.71
5.3.270.0120.03212.72
5.3.260.0050.04312.72
5.3.250.0080.03712.72
5.3.240.0070.03812.71
5.3.230.0070.03812.71
5.3.220.0070.03712.68
5.3.210.0070.03912.68
5.3.200.0080.03712.68
5.3.190.0060.03912.68
5.3.180.0090.03512.67
5.3.170.0070.03612.67
5.3.160.0040.03912.67
5.3.150.0070.03712.68
5.3.140.0080.04712.66
5.3.130.0120.03512.66
5.3.120.0070.03812.66
5.3.110.0040.04312.66
5.3.100.0100.03712.12
5.3.90.0080.03712.08
5.3.80.0070.03812.07
5.3.70.0090.03512.07
5.3.60.0060.03812.06
5.3.50.0110.04612.00
5.3.40.0140.05312.00
5.3.30.0120.05011.94
5.3.20.0060.04211.72
5.3.10.0070.04011.69
5.3.00.0090.04311.68
5.2.170.0040.0329.18
5.2.160.0090.0269.18
5.2.150.0060.0339.18
5.2.140.0080.0299.17
5.2.130.0060.0299.14
5.2.120.0060.0279.14
5.2.110.0060.0299.14
5.2.100.0070.0409.14
5.2.90.0070.0319.14
5.2.80.0060.0309.13
5.2.70.0060.0319.13
5.2.60.0050.0339.09
5.2.50.0080.0299.05
5.2.40.0060.0289.04
5.2.30.0040.0309.01
5.2.20.0070.0269.00
5.2.10.0020.0308.92
5.2.00.0040.0348.77
5.1.60.0060.0238.06
5.1.50.0100.0358.06
5.1.40.0030.0288.04
5.1.30.0040.0278.39
5.1.20.0050.0478.41
5.1.10.0090.0388.14
5.1.00.0110.0448.14
5.0.50.0290.0266.62
5.0.40.0170.0286.48
5.0.30.0110.0426.29
5.0.20.0050.0266.26
5.0.10.0070.0226.24
5.0.00.0050.0316.22
4.4.90.0040.0224.78
4.4.80.0030.0184.75
4.4.70.0090.0144.76
4.4.60.0070.0324.75
4.4.50.0050.0214.77
4.4.40.0130.0364.71
4.4.30.0020.0224.76
4.4.20.0000.0264.84
4.4.10.0050.0214.84
4.4.00.0050.0254.76
4.3.110.0060.0224.67
4.3.100.0080.0144.66
4.3.90.0030.0174.63
4.3.80.0040.0254.59
4.3.70.0060.0134.63
4.3.60.0020.0184.63
4.3.50.0060.0134.63
4.3.40.0040.0254.54
4.3.30.0040.0193.28
4.3.20.0020.0233.26
4.3.10.0020.0163.22
4.3.00.0170.0207.37

preferences:
41.34 ms | 401 KiB | 5 Q