3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['keywords']="sample products!\@, products#$#\, sample "; $keywords = preg_replace("/\n/", 'vbNewLine',($_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.0110.00718.16
8.3.50.0120.00322.04
8.3.40.0110.00418.88
8.3.30.0100.00319.06
8.3.20.0060.00320.29
8.3.10.0060.00323.56
8.3.00.0090.00020.80
8.2.180.0070.00718.41
8.2.170.0120.00322.96
8.2.160.0000.01420.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.39
8.2.110.0060.00322.03
8.2.100.0080.00418.03
8.2.90.0080.00019.21
8.2.80.0030.00517.97
8.2.70.0000.00917.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00819.95
8.2.30.0050.00218.38
8.2.20.0080.00017.89
8.2.10.0000.00718.19
8.2.00.0030.00517.99
8.1.280.0110.00325.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00623.82
8.1.230.0050.00519.21
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.48
8.1.190.0030.00717.48
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0040.00421.93
8.1.150.0070.00018.70
8.1.140.0000.00717.46
8.1.130.0030.00517.82
8.1.120.0070.00017.59
8.1.110.0080.00017.56
8.1.100.0000.00717.57
8.1.90.0050.00317.57
8.1.80.0000.00717.66
8.1.70.0030.00517.55
8.1.60.0040.00417.69
8.1.50.0030.00617.61
8.1.40.0080.00017.54
8.1.30.0040.00417.84
8.1.20.0000.00717.72
8.1.10.0040.00417.59
8.1.00.0030.00717.68
8.0.300.0050.00218.77
8.0.290.0090.00017.04
8.0.280.0030.00318.50
8.0.270.0070.00017.11
8.0.260.0000.00717.18
8.0.250.0050.00317.01
8.0.240.0060.00316.96
8.0.230.0030.00516.99
8.0.220.0000.00717.00
8.0.210.0030.00317.04
8.0.200.0100.00017.07
8.0.190.0040.00417.11
8.0.180.0030.00517.13
8.0.170.0040.00417.02
8.0.160.0030.00416.97
8.0.150.0000.00717.00
8.0.140.0060.00316.88
8.0.130.0000.00513.45
8.0.120.0040.00417.04
8.0.110.0040.00416.87
8.0.100.0000.00817.03
8.0.90.0040.00416.93
8.0.80.0140.00716.98
8.0.70.0070.00017.06
8.0.60.0000.00816.85
8.0.50.0070.00016.83
8.0.30.0110.00817.25
8.0.20.0050.01317.40
8.0.10.0000.00817.01
8.0.00.0060.01016.83
7.4.330.0020.00215.11
7.4.320.0000.00716.84
7.4.300.0030.00316.80
7.4.290.0030.00316.69
7.4.280.0080.00016.77
7.4.270.0040.00416.79
7.4.260.0040.00416.76
7.4.250.0000.00716.80
7.4.240.0000.00816.79
7.4.230.0030.00516.90
7.4.220.0100.01416.73
7.4.210.0090.00716.91
7.4.200.0070.00016.80
7.4.190.0070.00016.85
7.4.160.0070.01016.69
7.4.150.0160.00017.40
7.4.140.0030.01417.86
7.4.130.0180.00316.63
7.4.120.0120.00516.64
7.4.110.0070.01016.76
7.4.100.0130.01316.83
7.4.90.0030.01416.80
7.4.80.0110.00719.39
7.4.70.0230.00016.66
7.4.60.0100.00616.55
7.4.50.0000.00616.75
7.4.40.0100.00716.54
7.4.30.0070.01016.68
7.4.00.0140.00215.02
7.3.330.0060.00013.24
7.3.320.0050.00013.38
7.3.310.0040.00416.40
7.3.300.0070.00016.43
7.3.290.0050.01316.44
7.3.280.0100.00816.40
7.3.270.0060.01017.40
7.3.260.0140.00416.62
7.3.250.0120.00916.75
7.3.240.0070.01016.82
7.3.230.0180.00316.52
7.3.210.0030.01516.67
7.3.200.0090.00919.39
7.3.190.0060.01116.61
7.3.180.0070.01016.52
7.3.170.0080.00716.72
7.3.160.0100.00616.40
7.3.120.0070.01014.96
7.3.110.0090.00915.23
7.3.100.0070.00314.86
7.3.90.0000.01615.16
7.3.80.0000.00914.74
7.3.70.0040.01115.11
7.3.60.0110.00015.14
7.3.50.0070.00715.11
7.3.40.0070.00715.02
7.3.30.0040.00415.11
7.3.20.0060.00916.80
7.3.10.0140.00017.07
7.3.00.0050.00517.01
7.2.330.0070.01116.76
7.2.320.0090.01516.77
7.2.310.0090.00916.83
7.2.300.0100.00716.61
7.2.290.0110.00716.92
7.2.250.0040.01415.31
7.2.240.0070.01315.17
7.2.230.0060.00615.18
7.2.220.0110.00715.04
7.2.210.0100.00615.33
7.2.200.0080.00315.41
7.2.190.0000.01015.13
7.2.180.0090.00615.34
7.2.170.0030.00615.04
7.1.330.0070.00715.64
7.1.320.0070.00715.97
7.1.310.0120.00016.19
7.1.300.0000.01315.80
7.1.290.0090.00015.74
7.1.280.0080.00416.09
7.1.270.0030.00915.67
7.1.260.0050.00515.70
7.1.70.0150.00617.21
7.1.60.0040.00719.46
7.1.50.0070.01717.09
7.1.00.0130.06322.34
7.0.200.0000.00716.95
7.0.140.0000.07722.07
7.0.60.0000.05319.98
7.0.50.0070.04017.79
7.0.40.0100.04720.26
7.0.30.0430.08320.11
7.0.20.0170.06320.31
7.0.10.0070.08720.36
7.0.00.0070.09020.31
5.6.280.0030.07021.14
5.6.210.0100.07720.59
5.6.200.0170.06718.19
5.6.190.0100.08020.27
5.6.180.0070.07720.60
5.6.170.0270.06720.52
5.6.160.0070.07720.40
5.6.150.0070.04018.21
5.6.140.0000.05318.12
5.6.130.0070.06018.09
5.6.120.0130.05320.96
5.6.110.0070.08321.00
5.6.100.0100.08321.07
5.6.90.0030.04721.03
5.6.80.0070.08020.48
5.5.350.4270.04320.42
5.5.340.0170.07318.02
5.5.330.0070.07720.40
5.5.320.0230.03720.17
5.5.310.0300.04320.20
5.5.300.0070.07717.92
5.5.290.0000.07318.01
5.5.280.0130.05720.97
5.5.270.0070.05020.86
5.5.260.0130.05720.72
5.5.250.0130.07720.60
5.5.240.0100.07020.14
5.4.450.0600.06019.47
5.4.440.0970.05019.23
5.4.430.1000.05319.57
5.4.420.0900.08019.32
5.4.410.1070.07019.20
5.4.400.0300.06018.89
5.4.390.0230.07018.82
5.4.380.0130.05718.62
5.4.370.0130.05318.56
5.4.360.0170.04718.57
5.4.350.0200.04718.68
5.4.340.0100.05318.77
5.4.320.0070.05112.45
5.4.310.0050.04012.45
5.4.300.0070.05412.45
5.4.290.0050.03812.45
5.4.280.0060.03612.34
5.4.270.0070.03812.35
5.4.260.0070.03912.34
5.4.250.0060.03812.35
5.4.240.0060.03812.34
5.4.230.0070.04112.34
5.4.220.0090.03912.34
5.4.210.0080.03912.34
5.4.200.0030.04212.34
5.4.190.0070.05212.34
5.4.180.0050.05612.33
5.4.170.0140.03612.34
5.4.160.0140.06312.34
5.4.150.0080.04112.34
5.4.140.0070.03912.02
5.4.130.0090.04812.01
5.4.120.0130.05411.97
5.4.110.0090.05311.96
5.4.100.0100.05111.96
5.4.90.0090.03811.96
5.4.80.0060.04411.96
5.4.70.0080.03711.96
5.4.60.0050.03711.96
5.4.50.0060.03611.96
5.4.40.0070.03511.95
5.4.30.0090.04111.95
5.4.20.0110.05011.95
5.4.10.0070.05411.95
5.4.00.0090.05011.43
5.3.290.0160.04812.80
5.3.280.0120.04112.70
5.3.270.0130.03612.73
5.3.260.0090.03812.72
5.3.250.0050.04512.72
5.3.240.0070.04712.72
5.3.230.0090.04612.71
5.3.220.0090.06012.68
5.3.210.0100.06412.68
5.3.200.0130.05412.68
5.3.190.0070.05312.68
5.3.180.0100.05412.68
5.3.170.0080.03512.67
5.3.160.0060.04812.67
5.3.150.0080.03712.67
5.3.140.0120.04212.66
5.3.130.0110.03612.66
5.3.120.0100.03812.66
5.3.110.0080.03912.66
5.3.100.0100.03512.12
5.3.90.0070.05112.08
5.3.80.0030.04112.07
5.3.70.0080.03712.07
5.3.60.0070.03812.06
5.3.50.0110.03612.00
5.3.40.0060.03812.00
5.3.30.0060.03911.94
5.3.20.0080.03611.72
5.3.10.0100.03311.69
5.3.00.0040.03911.68
5.2.170.0070.0309.18
5.2.160.0060.0389.18
5.2.150.0110.0459.18
5.2.140.0060.0419.18
5.2.130.0080.0409.13
5.2.120.0060.0329.14
5.2.110.0050.0309.14
5.2.100.0120.0409.14
5.2.90.0060.0339.14
5.2.80.0070.0319.13
5.2.70.0090.0299.13
5.2.60.0070.0319.09
5.2.50.0060.0359.06
5.2.40.0070.0289.04
5.2.30.0070.0339.01
5.2.20.0070.0409.01
5.2.10.0090.0358.92
5.2.00.0100.0278.77
5.1.60.0040.0288.06
5.1.50.0060.0258.06
5.1.40.0050.0238.04
5.1.30.0080.0238.39
5.1.20.0040.0278.41
5.1.10.0050.0258.14
5.1.00.0030.0278.14
5.0.50.0060.0206.61
5.0.40.0040.0206.48
5.0.30.0030.0336.29
5.0.20.0050.0196.26
5.0.10.0030.0226.23
5.0.00.0030.0336.23
4.4.90.0040.0154.78
4.4.80.0020.0164.76
4.4.70.0060.0134.75
4.4.60.0020.0174.75
4.4.50.0050.0154.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0050.0144.85
4.4.10.0030.0164.85
4.4.00.0050.0234.75
4.3.110.0030.0154.67
4.3.100.0050.0134.66
4.3.90.0040.0134.64
4.3.80.0010.0264.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0030.0153.28
4.3.20.0040.0133.26
4.3.10.0040.0133.22
4.3.00.0000.0237.37

preferences:
45.11 ms | 401 KiB | 5 Q