3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Nečum spaces to dash and LowerCase with PHP'; $separator = '-'; $str_replace = str_replace(' ', $separator, strtolower($str)); $wordwrap = wordwrap(strtolower($str), 1, $separator, 0); $test = iconv('UTF-8','ASCII//TRANSLIT',$wordwrap); echo 'Original: ' . "\t" . $str . "\n"; echo 'str_replace: ' . "\t" . $str_replace . "\n"; echo 'wordwrap: ' . "\t" . $wordwrap . "\n"; echo 'test: ' . "\t" . $test . "\n";

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.0120.00916.38
8.3.50.0140.00716.31
8.3.40.0070.00718.86
8.3.30.0120.00318.38
8.3.20.0050.00322.05
8.3.10.0070.00421.81
8.3.00.0050.00220.34
8.2.180.0040.01118.29
8.2.170.0140.00322.96
8.2.160.0140.00720.47
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00321.13
8.2.120.0040.00426.35
8.2.110.0000.01119.27
8.2.100.0070.00417.99
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0080.00417.38
8.2.60.0090.00018.05
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0070.00019.28
8.2.20.0040.00418.05
8.2.10.0060.00318.06
8.2.00.0040.00418.06
8.1.280.0090.00925.92
8.1.270.0040.00422.25
8.1.260.0110.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00922.41
8.1.230.0100.00517.42
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0100.00017.23
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0040.00418.50
8.1.160.0030.00318.91
8.1.150.0000.00820.67
8.1.140.0000.00719.55
8.1.130.0040.00418.95
8.1.120.0000.00817.46
8.1.110.0000.00817.45
8.1.100.0000.00717.48
8.1.90.0020.00517.48
8.1.80.0030.00317.44
8.1.70.0030.00317.50
8.1.60.0030.00517.54
8.1.50.0060.00317.39
8.1.40.0060.00317.57
8.1.30.0030.00617.53
8.1.20.0000.00717.59
8.1.10.0000.00717.50
8.1.00.0040.00417.51
8.0.300.0070.00418.77
8.0.290.0030.00516.75
8.0.280.0050.00218.55
8.0.270.0070.00017.15
8.0.260.0060.00016.89
8.0.250.0000.00716.85
8.0.240.0000.00816.88
8.0.230.0050.00216.98
8.0.220.0030.00316.91
8.0.210.0070.00016.88
8.0.200.0030.00316.88
8.0.190.0040.00816.96
8.0.180.0040.00416.80
8.0.170.0070.00416.94
8.0.160.0030.00316.97
8.0.150.0060.00316.87
8.0.140.0000.00816.88
8.0.130.0000.00513.38
8.0.120.0100.00017.02
8.0.110.0000.00916.93
8.0.100.0030.00617.11
8.0.90.0030.00717.09
8.0.80.0120.01217.00
8.0.70.0030.00617.00
8.0.60.0030.00617.00
8.0.50.0030.00617.05
8.0.30.0120.00817.15
8.0.20.0100.01117.40
8.0.10.0030.00616.98
8.0.00.0130.01016.94
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0040.00416.52
7.4.290.0000.00716.54
7.4.280.0040.00416.47
7.4.270.0000.00716.57
7.4.260.0030.00316.34
7.4.250.0050.00316.70
7.4.240.0060.00316.46
7.4.230.0040.00416.50
7.4.220.0160.00616.74
7.4.210.0060.00916.81
7.4.200.0000.00816.63
7.4.160.0100.00716.55
7.4.150.0120.01517.40
7.4.140.0050.01617.86
7.4.130.0140.00616.45
7.4.120.0070.01316.64
7.4.110.0130.00616.57
7.4.100.0080.01216.63
7.4.90.0080.01216.55
7.4.80.0000.01919.39
7.4.70.0080.01116.57
7.4.60.0080.01116.67
7.4.50.0070.01016.60
7.4.40.0060.01516.40
7.4.30.0100.00916.26
7.4.20.0100.01016.56
7.4.10.0030.01616.65
7.4.00.0130.00515.58
7.3.330.0000.00612.98
7.3.320.0020.00213.27
7.3.310.0000.00816.29
7.3.300.0050.00316.48
7.3.290.0060.01016.42
7.3.280.0080.01116.43
7.3.270.0090.00917.40
7.3.260.0110.01116.63
7.3.250.0130.00816.53
7.3.240.0060.01316.56
7.3.230.0120.00616.75
7.3.210.0110.00816.66
7.3.200.0070.01116.44
7.3.190.0110.00716.35
7.3.180.0050.01616.51
7.3.170.0130.00916.54
7.3.160.0090.01016.56
7.3.150.0070.01116.33
7.3.140.0120.00616.23
7.3.130.0150.00316.27
7.3.120.0100.00815.62
7.3.110.0100.00915.72
7.3.100.0080.01115.80
7.3.90.0130.00815.68
7.3.80.0080.00915.67
7.3.70.0020.01715.66
7.3.60.0100.00815.54
7.3.50.0030.01415.71
7.3.40.0060.01415.61
7.3.30.0070.01015.60
7.3.20.0030.01316.49
7.3.10.0030.01616.58
7.3.00.0110.00916.55
7.2.330.0130.00716.54
7.2.320.0110.00816.80
7.2.310.0060.01416.36
7.2.300.0130.01016.64
7.2.290.0060.01316.55
7.2.280.0110.01116.23
7.2.270.0060.01916.54
7.2.260.0090.01316.55
7.2.250.0080.01016.10
7.2.240.0080.01215.75
7.2.230.0080.01315.73
7.2.220.0110.01015.92
7.2.210.0050.01316.01
7.2.200.0060.00816.09
7.2.190.0080.00815.97
7.2.180.0040.01515.81
7.2.170.0070.01415.87
7.2.160.0100.01016.63
7.2.150.0100.01316.65
7.2.140.0070.01416.80
7.2.130.0150.00616.74
7.2.120.0030.02416.57
7.2.110.0110.01116.64
7.2.100.0130.00816.45
7.2.90.0410.00815.70
7.2.80.0250.01015.73
7.2.70.0300.00815.96
7.2.60.0290.01015.86
7.2.50.0130.01115.89
7.2.40.0230.01215.85
7.2.30.0230.00915.96
7.2.20.0250.01015.83
7.2.10.0140.01515.78
7.2.00.0200.01015.94
7.1.330.0090.00915.64
7.1.320.0110.00915.70
7.1.310.0090.01015.80
7.1.300.0120.00615.78
7.1.290.0040.01115.87
7.1.280.0090.01015.78
7.1.270.0090.00615.69
7.1.260.0070.01015.77
7.1.250.0080.01215.46
7.1.240.0070.01815.60
7.1.230.0130.00615.51
7.1.220.0160.00615.39
7.1.210.0190.01414.69
7.1.200.0240.00714.76
7.1.190.0280.00814.50
7.1.180.0220.00714.73
7.1.170.0520.00514.69
7.1.160.0340.00814.76
7.1.150.0270.01014.63
7.1.140.0250.01014.66
7.1.130.0180.00914.54
7.1.120.0140.01414.88
7.1.110.0060.01014.77
7.1.100.0230.00914.80
7.1.90.0130.01014.70
7.1.80.0100.01014.74
7.1.70.0110.00814.62
7.1.60.0210.01623.60
7.1.50.0430.01223.58
7.1.40.0180.01423.57
7.1.30.0300.01223.72
7.1.20.0240.00923.53
7.1.10.0170.00914.48
7.1.00.0350.00314.89
7.0.330.0150.00615.17
7.0.320.0060.01215.11
7.0.310.0270.00414.39
7.0.300.0060.01114.39
7.0.290.0340.00514.49
7.0.280.0170.01514.39
7.0.270.0300.01114.50
7.0.260.0160.00814.43
7.0.250.0160.00814.78
7.0.240.0120.00814.32
7.0.230.0160.00814.57
7.0.220.0140.00814.38
7.0.210.0130.00814.23
7.0.200.0160.00814.54
7.0.190.0220.01014.58
7.0.180.0200.00714.61
7.0.170.0120.01014.56
7.0.160.0220.00914.45
7.0.150.0100.01414.36
7.0.140.0130.00814.37
7.0.130.0080.01114.23
7.0.120.0260.01014.52
7.0.110.0250.00414.58
7.0.100.0210.00914.46
7.0.90.0200.00314.36
7.0.80.0130.00614.41
7.0.70.0120.00714.35
7.0.60.0150.00814.46
7.0.50.0240.00714.52
7.0.40.0140.00814.62
7.0.30.0250.00814.44
7.0.20.0170.00914.45
7.0.10.0130.00914.40
7.0.00.0240.01114.33
5.6.400.0140.00615.80
5.6.390.0120.01315.92
5.6.380.0040.01816.00
5.6.370.0100.01016.03
5.6.360.0000.01915.96
5.6.350.0140.00615.98
5.6.340.0110.01116.02
5.6.330.0100.01716.23
5.6.320.0070.01316.21
5.6.310.0190.00716.12
5.6.300.0110.00915.82
5.6.290.0080.01316.08
5.6.280.0080.01216.02
5.6.270.0070.01415.96
5.6.260.0110.00915.89
5.6.250.0120.01216.06
5.6.240.0060.01615.86
5.6.230.0130.00716.04
5.6.220.0170.00315.95
5.6.210.0070.01316.12
5.6.200.0060.01316.05
5.6.190.0120.00615.99
5.6.180.0030.01615.83
5.6.170.0080.01215.73
5.6.160.0060.01615.93
5.6.150.0060.01316.10
5.6.140.0110.01116.15
5.6.130.0030.01616.06
5.6.120.0100.01316.05
5.6.110.0060.01515.86
5.6.100.0070.01416.05
5.6.90.0030.01715.86
5.6.80.0160.00615.90
5.6.70.0080.01115.77
5.6.60.0100.01015.83
5.6.50.0090.01615.96
5.6.40.0070.01715.97
5.6.30.0060.01415.80
5.6.20.0090.01515.83
5.6.10.0100.01015.93
5.6.00.0070.01815.80

preferences:
50.35 ms | 401 KiB | 5 Q