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.0150.00616.63
8.3.50.0090.00922.05
8.3.40.0130.00719.22
8.3.30.0000.01419.21
8.3.20.0000.00720.16
8.3.10.0090.00023.66
8.3.00.0020.00520.96
8.2.180.0070.00718.30
8.2.170.0060.00922.96
8.2.160.0030.01020.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00220.49
8.2.110.0040.00422.03
8.2.100.0090.00317.84
8.2.90.0060.00319.41
8.2.80.0030.00517.97
8.2.70.0030.00617.75
8.2.60.0000.00718.03
8.2.50.0030.00618.07
8.2.40.0030.00720.00
8.2.30.0040.00418.23
8.2.20.0000.00817.79
8.2.10.0030.00618.11
8.2.00.0040.00417.78
8.1.280.0120.00325.92
8.1.270.0050.00323.84
8.1.260.0030.00526.35
8.1.250.0040.01128.09
8.1.240.0070.00323.96
8.1.230.0030.00719.02
8.1.220.0000.00817.74
8.1.210.0030.00718.77
8.1.200.0060.00317.38
8.1.190.0030.00617.48
8.1.180.0040.00418.10
8.1.170.0040.00418.79
8.1.160.0040.00421.99
8.1.150.0000.00718.79
8.1.140.0070.00017.63
8.1.130.0030.00317.77
8.1.120.0080.00017.51
8.1.110.0030.00517.54
8.1.100.0000.00717.63
8.1.90.0050.00317.52
8.1.80.0050.00217.50
8.1.70.0000.00717.55
8.1.60.0030.00617.73
8.1.50.0080.00017.44
8.1.40.0030.00617.56
8.1.30.0030.00617.79
8.1.20.0040.00417.68
8.1.10.0080.00017.73
8.1.00.0050.00217.64
8.0.300.0040.00418.77
8.0.290.0000.00817.18
8.0.280.0030.00318.45
8.0.270.0070.00017.25
8.0.260.0030.00317.19
8.0.250.0080.00017.08
8.0.240.0040.00717.05
8.0.230.0050.00317.02
8.0.220.0030.00317.05
8.0.210.0030.00316.92
8.0.200.0100.00017.10
8.0.190.0040.00417.11
8.0.180.0040.00416.93
8.0.170.0040.00416.94
8.0.160.0030.00316.86
8.0.150.0040.00416.98
8.0.140.0030.00616.94
8.0.130.0030.00313.49
8.0.120.0060.00316.99
8.0.110.0040.00417.02
8.0.100.0030.00516.89
8.0.90.0030.00516.85
8.0.80.0090.00916.98
8.0.70.0000.00717.14
8.0.60.0040.00416.89
8.0.50.0040.00416.91
8.0.30.0110.00717.01
8.0.20.0110.00717.40
8.0.10.0040.00416.91
8.0.00.0090.01016.91
7.4.330.0030.00315.00
7.4.320.0000.00616.77
7.4.300.0030.00316.75
7.4.290.0000.00716.79
7.4.280.0000.00716.83
7.4.270.0000.00816.67
7.4.260.0000.00716.68
7.4.250.0070.00016.67
7.4.240.0020.00516.76
7.4.230.0070.00016.89
7.4.220.0070.01016.67
7.4.210.0090.00916.78
7.4.200.0000.00816.71
7.4.190.0030.00316.82
7.4.160.0100.01316.65
7.4.150.0080.00817.40
7.4.140.0220.02217.86
7.4.130.0090.01116.81
7.4.120.0100.00616.64
7.4.110.0110.00616.69
7.4.100.0160.00916.73
7.4.90.0140.00316.59
7.4.80.0160.00619.39
7.4.70.0090.01216.62
7.4.60.0120.00616.45
7.4.50.0060.00316.61
7.4.40.0090.00916.65
7.4.30.0100.00716.48
7.4.00.0070.00715.07
7.3.330.0000.00613.11
7.3.320.0000.00513.13
7.3.310.0040.00416.51
7.3.300.0030.00316.42
7.3.290.0140.00016.46
7.3.280.0120.00616.41
7.3.270.0100.00717.40
7.3.260.0030.01516.67
7.3.250.0100.01016.50
7.3.240.0030.01416.73
7.3.230.0140.00316.47
7.3.210.0130.00316.67
7.3.200.0040.01319.39
7.3.190.0100.00716.43
7.3.180.0060.01016.67
7.3.170.0060.01116.74
7.3.160.0070.00916.55
7.3.120.0070.00715.35
7.2.330.0090.00916.73
7.2.320.0140.01016.81
7.2.310.0100.00716.84
7.2.300.0130.00316.78
7.2.290.0000.01616.79
7.2.60.0030.00917.36
7.2.50.0070.00716.76
7.2.00.0040.01519.42
7.1.200.0000.01315.59
7.1.100.0030.00618.48
7.1.70.0040.00417.23
7.1.60.0090.00919.46
7.1.50.0090.01917.15
7.1.00.0030.07722.55
7.0.200.0080.00316.71
7.0.140.0100.06722.08
7.0.60.0100.08721.73
7.0.50.0000.05717.87
7.0.40.0200.07719.92
7.0.30.0330.07720.15
7.0.20.0300.04720.19
7.0.10.0030.09320.12
7.0.00.0030.08720.05
5.6.280.0000.07720.77
5.6.210.0130.05020.75
5.6.200.0070.05318.19
5.6.190.0070.05720.68
5.6.180.0070.05320.41
5.6.170.0300.04020.40
5.6.160.0000.09320.48
5.6.150.0100.04718.06
5.6.140.0030.04718.23
5.6.130.0070.04318.12
5.6.120.0000.05321.09
5.6.110.0000.04320.98
5.6.100.0100.08020.99
5.6.90.0200.08020.87
5.6.80.0000.04720.50
5.5.350.0200.05720.45
5.5.340.0070.08717.98
5.5.330.0070.04020.06
5.5.320.0300.03020.21
5.5.310.0270.05020.50
5.5.300.0030.05317.91
5.5.290.0030.08318.01
5.5.280.0070.05020.93
5.5.270.0100.07320.67
5.5.260.0070.07720.75
5.5.250.0170.06720.68
5.5.240.0370.06320.07
5.4.450.0730.06719.43
5.4.440.0870.07719.40
5.4.430.1200.05719.48
5.4.420.1070.05019.23
5.4.410.0270.07019.49
5.4.400.0300.04019.16
5.4.390.0100.06319.16
5.4.380.0130.05318.59
5.4.370.0200.04718.73
5.4.360.0100.05318.68
5.4.350.0130.05718.72
5.4.340.0100.05318.57
5.4.320.0070.03612.45
5.4.310.0150.04612.45
5.4.300.0060.03612.45
5.4.290.0080.05312.45
5.4.280.0100.04912.35
5.4.270.0090.04712.34
5.4.260.0100.04712.35
5.4.250.0070.04112.35
5.4.240.0080.03712.35
5.4.230.0040.04212.34
5.4.220.0080.05112.34
5.4.210.0110.04712.34
5.4.200.0110.05212.34
5.4.190.0110.04912.33
5.4.180.0190.05312.33
5.4.170.0100.04812.34
5.4.160.0040.04012.34
5.4.150.0090.03512.34
5.4.140.0060.03912.02
5.4.130.0060.04012.01
5.4.120.0050.04111.97
5.4.110.0080.03711.96
5.4.100.0060.03711.96
5.4.90.0060.04511.96
5.4.80.0090.05111.96
5.4.70.0090.03611.96
5.4.60.0070.03711.96
5.4.50.0050.03911.96
5.4.40.0060.03911.95
5.4.30.0070.03811.95
5.4.20.0090.03611.95
5.4.10.0090.03711.95
5.4.00.0070.03911.43
5.3.290.0080.05112.80
5.3.280.0080.04012.71
5.3.270.0130.05812.72
5.3.260.0110.05612.72
5.3.250.0060.04212.72
5.3.240.0060.04212.72
5.3.230.0060.04312.71
5.3.220.0060.04212.68
5.3.210.0100.04012.68
5.3.200.0080.03912.68
5.3.190.0150.04612.68
5.3.180.0130.04812.67
5.3.170.0110.05612.67
5.3.160.0140.06012.67
5.3.150.0100.04012.67
5.3.140.0090.04212.66
5.3.130.0040.04712.66
5.3.120.0090.04412.66
5.3.110.0130.04512.66
5.3.100.0130.05412.12
5.3.90.0080.05412.08
5.3.80.0120.04812.07
5.3.70.0070.04612.07
5.3.60.0080.04012.06
5.3.50.0110.03312.00
5.3.40.0040.04412.00
5.3.30.0030.05011.94
5.3.20.0090.04911.72
5.3.10.0080.03711.69
5.3.00.0080.03711.68
5.2.170.0060.0319.18
5.2.160.0070.0399.18
5.2.150.0110.0339.18
5.2.140.0080.0409.17
5.2.130.0080.0319.14
5.2.120.0070.0299.13
5.2.110.0050.0329.14
5.2.100.0060.0319.14
5.2.90.0040.0359.14
5.2.80.0100.0359.13
5.2.70.0060.0439.13
5.2.60.0100.0279.09
5.2.50.0080.0429.05
5.2.40.0080.0279.04
5.2.30.0090.0319.02
5.2.20.0070.0319.00
5.2.10.0060.0318.92
5.2.00.0040.0438.77
5.1.60.0080.0338.07
5.1.50.0040.0378.06
5.1.40.0070.0358.04
5.1.30.0050.0398.39
5.1.20.0060.0388.41
5.1.10.0090.0278.14
5.1.00.0060.0358.14
5.0.50.0100.0216.61
5.0.40.0050.0206.47
5.0.30.0080.0336.29
5.0.20.0030.0226.26
5.0.10.0050.0226.23
5.0.00.0070.0316.23
4.4.90.0070.0174.78
4.4.80.0060.0164.76
4.4.70.0050.0154.75
4.4.60.0030.0194.75
4.4.50.0030.0294.77
4.4.40.0060.0484.71
4.4.30.0040.0184.76
4.4.20.0040.0154.84
4.4.10.0030.0164.85
4.4.00.0050.0304.76
4.3.110.0050.0214.67
4.3.100.0040.0194.66
4.3.90.0150.0244.63
4.3.80.0050.0284.59
4.3.70.0040.0204.63
4.3.60.0060.0204.63
4.3.50.0070.0174.63
4.3.40.0050.0254.53
4.3.30.0020.0203.28
4.3.20.0050.0183.26
4.3.10.0040.0203.22
4.3.00.0070.0277.37

preferences:
55.33 ms | 401 KiB | 5 Q