3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "Available Color(s): Black, Coral, White. White halter floor length dress features sheer panels along the bodice and a sexy slit."; echo trim(preg_replace('/\s\s+/', ' ', $test)); echo trim(preg_replace('/\s+/', ' ', $test));

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.0090.00918.56
8.3.50.0080.00722.20
8.3.40.0120.00318.76
8.3.30.0100.00318.96
8.3.20.0000.00820.29
8.3.10.0080.00021.96
8.3.00.0000.00822.45
8.2.180.0120.00916.75
8.2.170.0070.01422.96
8.2.160.0080.00619.04
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00517.75
8.2.110.0030.00622.14
8.2.100.0110.00019.64
8.2.90.0000.00719.21
8.2.80.0050.00317.97
8.2.70.0030.00517.72
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0030.00618.09
8.2.30.0100.00018.03
8.2.20.0040.00417.84
8.2.10.0030.00619.62
8.2.00.0080.00017.87
8.1.280.0140.00725.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00823.88
8.1.230.0080.00419.09
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.30
8.1.180.0000.00818.10
8.1.170.0030.00618.50
8.1.160.0050.00221.88
8.1.150.0080.00018.63
8.1.140.0040.00417.55
8.1.130.0040.00417.80
8.1.120.0040.00317.41
8.1.110.0040.00417.54
8.1.100.0030.00317.50
8.1.90.0040.00417.39
8.1.80.0070.00017.43
8.1.70.0000.00817.48
8.1.60.0030.00517.66
8.1.50.0000.00717.50
8.1.40.0060.00317.59
8.1.30.0030.00617.72
8.1.20.0040.00417.61
8.1.10.0040.00417.59
8.1.00.0000.00817.55
8.0.300.0020.00518.77
8.0.290.0000.00717.18
8.0.280.0050.00318.45
8.0.270.0000.00817.27
8.0.260.0000.00716.91
8.0.250.0050.00217.09
8.0.240.0080.00017.06
8.0.230.0000.00717.05
8.0.220.0030.00316.85
8.0.210.0030.00616.94
8.0.200.0030.00316.93
8.0.190.0040.00317.00
8.0.180.0000.00717.07
8.0.170.0040.00417.01
8.0.160.0000.00716.97
8.0.150.0040.00416.97
8.0.140.0040.00416.94
8.0.130.0000.00713.33
8.0.120.0040.00416.88
8.0.110.0040.00416.93
8.0.100.0040.00416.87
8.0.90.0050.00216.95
8.0.80.0060.00917.02
8.0.70.0070.00016.93
8.0.60.0070.00017.02
8.0.50.0000.00816.74
8.0.30.0080.01117.27
8.0.20.0100.01017.45
8.0.10.0000.00817.00
8.0.00.0090.00816.75
7.4.330.0030.00315.00
7.4.320.0030.00316.54
7.4.300.0060.00016.58
7.4.290.0030.00316.50
7.4.280.0040.00416.63
7.4.270.0030.00316.76
7.4.260.0000.01016.72
7.4.250.0000.00716.60
7.4.240.0060.00216.76
7.4.230.0070.00016.54
7.4.220.0110.00816.64
7.4.210.0080.01016.69
7.4.200.0070.00016.68
7.4.190.0040.00416.91
7.4.160.0090.00616.66
7.4.150.0080.00917.40
7.4.140.0150.00717.86
7.4.130.0090.01116.64
7.4.120.0080.00916.76
7.4.110.0130.00316.68
7.4.100.0110.01116.90
7.4.90.0070.01016.67
7.4.80.0130.00619.39
7.4.70.0110.00716.57
7.4.60.0080.00716.60
7.4.50.0070.00016.72
7.4.40.0090.00622.77
7.4.30.0150.00416.73
7.4.00.0070.00715.12
7.3.330.0000.00513.12
7.3.320.0000.00613.13
7.3.310.0030.00316.29
7.3.300.0000.00716.31
7.3.290.0070.00716.23
7.3.280.0110.00716.32
7.3.270.0110.00917.40
7.3.260.0100.00716.66
7.3.250.0080.00916.36
7.3.240.0110.00616.31
7.3.230.0120.00616.63
7.3.210.0030.01316.45
7.3.200.0090.01219.39
7.3.190.0090.00916.31
7.3.180.0060.00916.63
7.3.170.0100.01016.51
7.3.160.0090.01016.29
7.3.120.0140.00314.77
7.2.330.0100.00716.67
7.2.320.0120.00416.67
7.2.310.0130.00316.70
7.2.300.0030.01316.59
7.2.290.0120.00616.60
7.1.100.0100.00318.29
7.1.70.0000.00917.26
7.1.60.0110.00719.82
7.1.50.0090.01217.08
7.1.00.0030.07022.41
7.0.200.0030.00816.96
7.0.140.0070.06722.00
7.0.60.0170.07320.05
7.0.50.0130.03017.82
7.0.40.0030.08720.08
7.0.30.0230.04720.06
7.0.20.0330.04720.22
7.0.10.0270.07020.32
7.0.00.0100.03720.19
5.6.280.0030.04320.91
5.6.210.0130.06720.74
5.6.200.0070.08318.22
5.6.190.0070.05020.48
5.6.180.4030.04720.41
5.6.170.0130.04720.40
5.6.160.0000.04320.49
5.6.150.0030.05718.18
5.6.140.0000.06318.21
5.6.130.0070.07318.23
5.6.120.0170.05021.12
5.6.110.0070.08020.95
5.6.100.0070.06320.97
5.6.90.0100.08320.94
5.6.80.0030.04020.52
5.6.70.0300.07720.42
5.5.350.0030.04020.44
5.5.340.0030.07017.98
5.5.330.0130.07020.19
5.5.320.0300.07020.32
5.5.310.0130.08720.29
5.5.300.0100.04717.91
5.5.290.0030.04017.87
5.5.280.0070.04020.88
5.5.270.0070.05720.92
5.5.260.0100.08020.79
5.5.250.0130.05320.68
5.5.240.0030.08320.28
5.4.450.0600.06319.13
5.4.440.0670.06019.13
5.4.430.0070.06019.50
5.4.420.0070.05719.48
5.4.410.0070.06019.34
5.4.400.0100.06018.54
5.4.390.0130.06018.68
5.4.380.0200.06718.46
5.4.370.0200.05018.77
5.4.360.0100.06018.72
5.4.350.0200.05318.72
5.4.340.0300.04318.59
5.4.320.0070.03612.45
5.4.310.0070.03912.45
5.4.300.0080.04912.45
5.4.290.0060.04112.45
5.4.280.0070.03912.35
5.4.270.0130.06019.08
5.4.260.0230.04718.99
5.4.250.0100.05718.98
5.4.240.0030.06318.79
5.4.230.0170.07318.98
5.4.220.0070.08718.96
5.4.210.0170.06718.79
5.4.200.0130.07718.96
5.4.190.0170.07318.95
5.4.180.0170.04718.98
5.4.170.0070.05719.00
5.4.160.0130.05318.97
5.4.150.0130.06018.98
5.4.140.0070.06716.36
5.4.130.0170.04016.33
5.4.120.0070.08316.38
5.4.110.0170.06316.39
5.4.100.0070.07316.52
5.4.90.0100.04716.40
5.4.80.0130.06716.35
5.4.70.0030.05716.35
5.4.60.0100.07016.54
5.4.50.0070.06316.42
5.4.40.0130.06016.48
5.4.30.0070.07716.50
5.4.20.0100.05316.52
5.4.10.0130.05316.27
5.4.00.0070.07315.90
5.3.290.0050.03912.80
5.3.280.0170.04714.52
5.3.270.0100.05314.59
5.3.260.0000.06314.59
5.3.250.0030.05314.53
5.3.240.0030.06014.77
5.3.230.0100.06714.58
5.3.220.0100.07714.52
5.3.210.0100.05714.70
5.3.200.0170.06014.63
5.3.190.0070.07014.50
5.3.180.0130.06714.70
5.3.170.0070.07314.60
5.3.160.0100.07014.67
5.3.150.0100.04714.62
5.3.140.0070.05714.71
5.3.130.0030.05714.53
5.3.120.0270.05314.53
5.3.110.0100.07314.66
5.3.100.0030.06314.18
5.3.90.0070.05014.00
5.3.80.0130.06014.00
5.3.70.0030.07314.08
5.3.60.0130.06014.16
5.3.50.0430.06014.10
5.3.40.0070.06013.87
5.3.30.0100.06313.89
5.3.20.0070.04713.80
5.3.10.0100.06713.72
5.3.00.0070.06013.68
5.2.170.0070.04311.28
5.2.160.0100.05011.19
5.2.150.0100.04311.25
5.2.140.0100.05711.06
5.2.130.0030.05711.08
5.2.120.0100.04011.24
5.2.110.0100.03711.04
5.2.100.0030.04311.08
5.2.90.0100.04311.25
5.2.80.0070.04011.02
5.2.70.0230.03311.32
5.2.60.0100.04711.16
5.2.50.0130.05310.95
5.2.40.0100.04311.13
5.2.30.0070.04711.09
5.2.20.0130.04711.06
5.2.10.0070.05711.05
5.2.00.0030.05010.97
5.1.60.0100.03010.21
5.1.50.0070.03310.19
5.1.40.0070.03710.05
5.1.30.0230.02710.37
5.1.20.0000.04310.57
5.1.10.0070.04310.37
5.1.00.0070.04010.05
5.0.50.0030.0379.61
5.0.40.0070.0379.61
5.0.30.0100.0439.61
5.0.20.0130.0239.61
5.0.10.0000.0339.61
5.0.00.0000.0439.61
4.4.90.0000.0279.61
4.4.80.0070.0179.61
4.4.70.0130.0179.61
4.4.60.0100.0209.61
4.4.50.0030.0209.61
4.4.40.0070.0479.61
4.4.30.0030.0309.61
4.4.20.0030.0239.61
4.4.10.0070.0279.61
4.4.00.0030.0479.61
4.3.110.0170.0179.61
4.3.100.0030.0239.61
4.3.90.0030.0209.61
4.3.80.0030.0409.61
4.3.70.0030.0239.61
4.3.60.0000.0239.61
4.3.50.0070.0209.61
4.3.40.0070.0309.61
4.3.30.0030.0209.61
4.3.20.0030.0239.61
4.3.10.0030.0239.61
4.3.00.0170.0177.38

preferences:
45.68 ms | 401 KiB | 5 Q