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.0170.00318.50
8.3.50.0070.00922.06
8.3.40.0100.00718.91
8.3.30.0070.00719.40
8.3.20.0070.00020.16
8.3.10.0050.00523.52
8.3.00.0040.00420.95
8.2.180.0040.01118.38
8.2.170.0030.01422.96
8.2.160.0080.00620.48
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00420.47
8.2.110.0030.00622.23
8.2.100.0070.00418.09
8.2.90.0070.00019.40
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00918.16
8.2.50.0060.00318.07
8.2.40.0030.00620.07
8.2.30.0050.00218.38
8.2.20.0000.00817.88
8.2.10.0040.00418.18
8.2.00.0050.00317.95
8.1.280.0100.00325.92
8.1.270.0090.00023.90
8.1.260.0040.00426.35
8.1.250.0080.00828.09
8.1.240.0070.00323.72
8.1.230.0070.00418.88
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0070.00021.95
8.1.150.0050.00218.78
8.1.140.0040.00417.56
8.1.130.0000.00717.79
8.1.120.0000.00717.54
8.1.110.0040.00417.64
8.1.100.0030.00317.59
8.1.90.0040.00417.62
8.1.80.0040.00417.48
8.1.70.0000.00717.49
8.1.60.0000.00917.76
8.1.50.0030.00617.62
8.1.40.0040.00417.62
8.1.30.0030.00617.79
8.1.20.0070.00017.64
8.1.10.0020.00517.63
8.1.00.0060.00317.54
8.0.300.0080.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00718.36
8.0.270.0000.00717.27
8.0.260.0030.00317.19
8.0.250.0000.00717.05
8.0.240.0080.00317.03
8.0.230.0030.00316.98
8.0.220.0000.00716.96
8.0.210.0040.00416.93
8.0.200.0030.00516.99
8.0.190.0000.00817.08
8.0.180.0030.00516.96
8.0.170.0000.00817.10
8.0.160.0040.00417.01
8.0.150.0000.00717.01
8.0.140.0040.00416.92
8.0.130.0030.00313.38
8.0.120.0030.00616.99
8.0.110.0020.00517.09
8.0.100.0040.00417.07
8.0.90.0000.00816.92
8.0.80.0120.00916.96
8.0.70.0030.00517.05
8.0.60.0040.00416.97
8.0.50.0070.00016.91
8.0.30.0120.00717.34
8.0.20.0130.00617.40
8.0.10.0000.00717.17
8.0.00.0100.00816.81
7.4.330.0020.00215.04
7.4.320.0000.00616.81
7.4.300.0030.00316.69
7.4.290.0000.00716.65
7.4.280.0030.00316.80
7.4.270.0030.00316.84
7.4.260.0030.00316.78
7.4.250.0030.00516.81
7.4.240.0020.00516.71
7.4.230.0070.00016.78
7.4.220.0130.01016.84
7.4.210.0070.01016.78
7.4.200.0070.00016.79
7.4.190.0040.00416.87
7.4.160.0060.00916.81
7.4.150.0170.00017.40
7.4.140.0100.00717.86
7.4.130.0140.00516.73
7.4.120.0130.00616.70
7.4.110.0070.01316.72
7.4.100.0160.00816.77
7.4.90.0150.00916.81
7.4.80.0140.00719.39
7.4.70.0130.01016.65
7.4.60.0070.01016.61
7.4.50.0040.00416.50
7.4.40.0130.00916.55
7.4.30.0060.01116.60
7.4.00.0100.00715.20
7.3.330.0000.00513.25
7.3.320.0030.00313.11
7.3.310.0030.00316.34
7.3.300.0070.00016.39
7.3.290.0030.01116.45
7.3.280.0050.00816.41
7.3.270.0100.00717.40
7.3.260.0120.00616.52
7.3.250.0100.00716.52
7.3.240.0170.00316.52
7.3.230.0100.00616.70
7.3.210.0120.00416.85
7.3.200.0090.01619.39
7.3.190.0100.01316.64
7.3.180.0070.01016.43
7.3.170.0120.00316.68
7.3.160.0060.01016.65
7.3.120.0110.00314.68
7.3.110.0030.01215.18
7.3.100.0000.01414.89
7.3.90.0030.00714.87
7.3.80.0030.01015.20
7.3.70.0120.00015.04
7.3.60.0030.01014.89
7.3.50.0070.00715.09
7.3.40.0000.01314.95
7.3.30.0000.01515.07
7.3.20.0040.00716.95
7.3.10.0020.01416.93
7.3.00.0040.00916.79
7.2.330.0120.00616.79
7.2.320.0100.00716.96
7.2.310.0070.01016.85
7.2.300.0100.00816.66
7.2.290.0160.00016.73
7.2.240.0030.01314.91
7.2.230.0070.00715.09
7.2.220.0070.00715.11
7.2.210.0000.01215.19
7.2.200.0030.01315.41
7.2.190.0060.00914.98
7.2.180.0000.01715.08
7.2.170.0110.00415.19
7.2.160.0030.01015.39
7.2.150.0070.00416.92
7.2.140.0070.00717.17
7.2.130.0100.00316.95
7.2.120.0020.01017.18
7.2.110.0080.00717.11
7.2.100.0050.00816.98
7.2.90.0030.01317.10
7.2.80.0070.00516.98
7.2.70.0060.00917.24
7.2.60.0030.00917.22
7.2.50.0100.00516.99
7.2.40.0030.01016.93
7.2.30.0060.01117.20
7.2.20.0070.00517.15
7.2.10.0040.01117.12
7.2.00.0040.00717.87
7.1.330.0000.01315.98
7.1.320.0080.00415.73
7.1.310.0070.00715.84
7.1.300.0060.00915.82
7.1.290.0090.00015.70
7.1.280.0070.00715.82
7.1.270.0040.00715.90
7.1.260.0000.00815.98
7.1.250.0040.00916.12
7.1.100.0100.00317.95
7.1.70.0000.00817.39
7.1.60.0070.01419.46
7.1.50.0170.01017.19
7.1.00.0100.07022.33
7.0.200.0000.00716.95
7.0.140.0070.07021.92
7.0.60.0130.08021.70
7.0.50.0030.06717.64
7.0.40.0100.04320.07
7.0.30.0330.07320.22
7.0.20.0200.05720.02
7.0.10.0170.07020.14
7.0.00.0170.07020.09
5.6.280.0130.06321.10
5.6.210.0070.08020.66
5.6.200.0030.05718.21
5.6.190.0030.09720.39
5.6.180.0100.03720.39
5.6.170.0330.06020.38
5.6.160.0070.07720.71
5.6.150.0100.07318.22
5.6.140.0070.04318.21
5.6.130.0070.08018.23
5.6.120.0070.07721.19
5.6.110.0030.07020.85
5.6.100.0130.08021.12
5.6.90.0070.07320.96
5.6.80.0070.08020.39
5.5.350.4300.04720.29
5.5.340.0100.07318.02
5.5.330.0030.04720.21
5.5.320.0170.04320.28
5.5.310.0270.08020.31
5.5.300.0070.07717.87
5.5.290.0100.07718.00
5.5.280.0000.09020.86
5.5.270.0070.03720.72
5.5.260.0030.07720.96
5.5.250.0170.07020.58
5.5.240.0200.07720.15
5.4.450.0170.06019.37
5.4.440.0800.06019.32
5.4.430.1130.06019.63
5.4.420.1030.05319.40
5.4.410.0030.05719.50
5.4.400.0730.06019.20
5.4.390.1030.06018.89
5.4.380.0100.05718.77
5.4.370.0130.05318.68
5.4.360.0170.04718.72
5.4.350.0200.04718.75
5.4.340.0170.04718.49
5.4.320.0090.04112.45
5.4.310.0110.05812.45
5.4.300.0030.04112.45
5.4.290.0080.05112.45
5.4.280.0110.04912.34
5.4.270.0080.03912.34
5.4.260.0070.04112.34
5.4.250.0060.03812.35
5.4.240.0050.03812.34
5.4.230.0040.04012.34
5.4.220.0140.04512.34
5.4.210.0070.03712.34
5.4.200.0050.04112.34
5.4.190.0060.03812.34
5.4.180.0060.03912.33
5.4.170.0060.03812.35
5.4.160.0020.04012.34
5.4.150.0040.03812.34
5.4.140.0060.03912.02
5.4.130.0060.03712.01
5.4.120.0070.04011.96
5.4.110.0070.03511.96
5.4.100.0070.03511.96
5.4.90.0100.05311.97
5.4.80.0060.04411.96
5.4.70.0070.03811.96
5.4.60.0080.03511.96
5.4.50.0120.03711.96
5.4.40.0100.03611.95
5.4.30.0070.05111.95
5.4.20.0090.05111.95
5.4.10.0090.03511.94
5.4.00.0070.03711.43
5.3.290.0060.04812.80
5.3.280.0050.04412.71
5.3.270.0070.04112.72
5.3.260.0070.04012.72
5.3.250.0060.05712.72
5.3.240.0140.05912.72
5.3.230.0160.06512.71
5.3.220.0090.04712.68
5.3.210.0080.03912.68
5.3.200.0090.03812.68
5.3.190.0140.03912.68
5.3.180.0060.04012.67
5.3.170.0040.04512.67
5.3.160.0070.03612.68
5.3.150.0060.03812.67
5.3.140.0070.03612.66
5.3.130.0050.04012.66
5.3.120.0050.03912.66
5.3.110.0070.03812.66
5.3.100.0050.03812.12
5.3.90.0090.03412.08
5.3.80.0090.03412.07
5.3.70.0050.03912.08
5.3.60.0060.03612.06
5.3.50.0070.03612.00
5.3.40.0070.04612.00
5.3.30.0070.03611.94
5.3.20.0080.03411.72
5.3.10.0070.03511.69
5.3.00.0060.03911.68
5.2.170.0040.0339.18
5.2.160.0060.0319.18
5.2.150.0030.0339.18
5.2.140.0090.0299.18
5.2.130.0060.0319.14
5.2.120.0020.0319.14
5.2.110.0050.0289.14
5.2.100.0060.0409.14
5.2.90.0070.0289.14
5.2.80.0030.0339.13
5.2.70.0020.0369.13
5.2.60.0050.0299.09
5.2.50.0020.0329.05
5.2.40.0040.0309.04
5.2.30.0030.0329.01
5.2.20.0070.0269.00
5.2.10.0050.0278.92
5.2.00.0060.0308.77
5.1.60.0040.0248.06
5.1.50.0070.0228.06
5.1.40.0040.0248.04
5.1.30.0050.0258.39
5.1.20.0050.0268.41
5.1.10.0050.0258.14
5.1.00.0050.0258.14
5.0.50.0030.0216.61
5.0.40.0040.0196.48
5.0.30.0050.0296.29
5.0.20.0030.0196.26
5.0.10.0040.0196.24
5.0.00.0040.0306.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0020.0164.75
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0000.0184.76
4.4.20.0050.0134.85
4.4.10.0040.0144.85
4.4.00.0020.0264.75
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0020.0154.64
4.3.80.0030.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0050.0134.62
4.3.40.0040.0234.53
4.3.30.0020.0163.29
4.3.20.0010.0173.26
4.3.10.0020.0153.22
4.3.00.0030.0277.37

preferences:
39.99 ms | 401 KiB | 5 Q