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('ISO-8859-1','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.0090.01316.75
8.3.50.0110.00416.34
8.3.40.0110.00318.87
8.3.30.0070.00718.79
8.3.20.0040.00421.89
8.3.10.0100.00021.90
8.3.00.0040.00420.33
8.2.180.0090.00618.29
8.2.170.0060.00922.96
8.2.160.0130.00320.25
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.01121.00
8.2.120.0060.00326.35
8.2.110.0060.00619.46
8.2.100.0070.00418.22
8.2.90.0040.00419.05
8.2.80.0000.00917.97
8.2.70.0000.00917.63
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0040.00420.66
8.2.30.0000.00719.33
8.2.20.0070.00018.06
8.2.10.0070.00018.14
8.2.00.0040.00418.12
8.1.280.0090.00925.92
8.1.270.0110.00722.06
8.1.260.0100.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00319.09
8.1.230.0120.00217.42
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0050.00517.36
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0000.00719.03
8.1.150.0040.00420.68
8.1.140.0000.00819.64
8.1.130.0050.00219.01
8.1.120.0000.00717.40
8.1.110.0040.00417.47
8.1.100.0000.00717.37
8.1.90.0050.00317.54
8.1.80.0040.00417.52
8.1.70.0040.00417.38
8.1.60.0000.00817.59
8.1.50.0060.00317.54
8.1.40.0090.00017.52
8.1.30.0080.00017.62
8.1.20.0060.00317.58
8.1.10.0030.00517.38
8.1.00.0020.00517.31
8.0.300.0030.00618.77
8.0.290.0000.00816.60
8.0.280.0000.00718.34
8.0.270.0000.00717.34
8.0.260.0030.00316.80
8.0.250.0030.00317.03
8.0.240.0040.00416.96
8.0.230.0050.00217.00
8.0.220.0000.00716.87
8.0.210.0070.00016.95
8.0.200.0000.00816.99
8.0.190.0050.00516.98
8.0.180.0000.00716.88
8.0.170.0090.00316.89
8.0.160.0000.00716.95
8.0.150.0030.00716.91
8.0.140.0000.00816.93
8.0.130.0030.00313.34
8.0.120.0030.00617.04
8.0.110.0090.00017.01
8.0.100.0000.01016.93
8.0.90.0030.00617.13
8.0.80.0060.01317.03
8.0.70.0030.00617.01
8.0.60.0060.00316.80
8.0.50.0000.00917.00
8.0.30.0110.00917.35
8.0.20.0060.01517.40
8.0.10.0050.00517.07
8.0.00.0100.01016.78
7.4.330.0020.00215.55
7.4.320.0030.00316.41
7.4.300.0070.00016.51
7.4.290.0000.00716.46
7.4.280.0060.00316.34
7.4.270.0070.00016.41
7.4.260.0030.00516.44
7.4.250.0040.00416.74
7.4.240.0040.00416.74
7.4.230.0040.00416.55
7.4.220.0140.00716.75
7.4.210.0070.01016.72
7.4.200.0030.00616.71
7.4.160.0130.00616.55
7.4.150.0180.00717.40
7.4.140.0110.01017.86
7.4.130.0110.01016.50
7.4.120.0120.01116.66
7.4.110.0060.01216.57
7.4.100.0070.01716.64
7.4.90.0070.01316.64
7.4.80.0130.01319.39
7.4.70.0090.01316.68
7.4.60.0070.01516.58
7.4.50.0110.01216.45
7.4.40.0080.01516.43
7.4.30.0130.01416.46
7.4.20.0130.01316.17
7.4.10.0130.01216.54
7.4.00.0110.00915.81
7.3.330.0000.00613.13
7.3.320.0050.00013.03
7.3.310.0040.00416.58
7.3.300.0040.00416.48
7.3.290.0040.01216.42
7.3.280.0080.01216.46
7.3.270.0100.01317.40
7.3.260.0150.00516.50
7.3.250.0130.01016.59
7.3.240.0090.01616.49
7.3.230.0180.00916.60
7.3.210.0040.01416.41
7.3.200.0140.00516.52
7.3.190.0130.01016.40
7.3.180.0130.01316.56
7.3.170.0060.01616.52
7.3.160.0110.01116.66
7.3.150.0120.01516.53
7.3.140.0130.01416.56
7.3.130.0140.01316.51
7.3.120.0110.01115.75
7.3.110.0030.02015.79
7.3.100.0110.01015.87
7.3.90.0110.01315.87
7.3.80.0150.00815.82
7.3.70.0060.01015.74
7.3.60.0080.01515.68
7.3.50.0110.00715.79
7.3.40.0060.01515.70
7.3.30.0050.01615.61
7.3.20.0100.01016.61
7.3.10.0170.00516.65
7.3.00.0100.01016.53
7.2.330.0090.01216.82
7.2.320.0120.00616.52
7.2.310.0130.00916.73
7.2.300.0120.01116.79
7.2.290.0110.01416.92
7.2.280.0060.02216.52
7.2.270.0130.01516.45
7.2.260.0120.01516.52
7.2.250.0030.02616.43
7.2.240.0150.00815.81
7.2.230.0080.01315.99
7.2.220.0110.01215.93
7.2.210.0080.01515.89
7.2.200.0090.01115.96
7.2.190.0060.01916.08
7.2.180.0130.00616.00
7.2.170.0140.00616.02
7.2.160.0080.01316.05
7.2.150.0060.01016.88
7.2.140.0140.00917.01
7.2.130.0090.00916.88
7.2.120.0100.01216.90
7.2.110.0080.00516.86
7.2.100.0070.01416.95
7.2.90.0080.01216.25
7.2.80.0420.01216.30
7.2.70.0120.00916.41
7.2.60.0150.00816.34
7.2.50.0090.01216.40
7.2.40.0130.00916.24
7.2.30.0080.01116.29
7.2.20.0140.01216.22
7.2.10.0100.01316.34
7.2.00.0070.01316.20
7.1.330.0070.01415.83
7.1.320.0080.01515.76
7.1.310.0080.01015.76
7.1.300.0070.01715.66
7.1.290.0060.01415.73
7.1.280.0110.00815.70
7.1.270.0110.01115.78
7.1.260.0140.00615.57
7.1.250.0040.01415.76
7.1.240.0070.02015.50
7.1.230.0150.01215.63
7.1.220.0130.01315.59
7.1.210.0110.01114.96
7.1.200.0130.01314.82
7.1.190.0080.01514.75
7.1.180.0260.01314.85
7.1.170.0200.00714.73
7.1.160.1580.01014.79
7.1.150.0060.01514.69
7.1.140.0130.01514.85
7.1.130.0300.00614.70
7.1.120.0100.01214.67
7.1.110.0100.01114.84
7.1.100.1230.00814.88
7.1.90.0400.00814.96
7.1.80.0110.01114.85
7.1.70.0490.01014.83
7.1.60.0950.01623.83
7.1.50.0660.01323.75
7.1.40.0810.01523.96
7.1.30.0560.00823.76
7.1.20.0160.01623.92
7.1.10.0150.00814.71
7.1.00.0490.00814.81
7.0.330.0200.00615.39
7.0.320.0170.00715.10
7.0.310.0210.01414.39
7.0.300.0170.00914.54
7.0.290.0330.00814.50
7.0.280.0360.01314.58
7.0.270.0160.00814.45
7.0.260.0150.01114.72
7.0.250.1640.00814.56
7.0.240.1890.01214.43
7.0.230.1330.01014.51
7.0.220.0130.01114.44
7.0.210.0480.01314.58
7.0.200.0640.01214.57
7.0.190.0580.01314.45
7.0.180.0200.00814.55
7.0.170.0580.00414.59
7.0.160.0130.01214.67
7.0.150.0300.01514.75
7.0.140.0190.00614.50
7.0.130.0140.00914.55
7.0.120.0330.01014.60
7.0.110.0090.01514.54
7.0.100.0630.01014.48
7.0.90.0680.01114.48
7.0.80.0370.01514.46
7.0.70.0670.01314.67
7.0.60.0500.01114.36
7.0.50.0550.00714.55
7.0.40.0420.01114.52
7.0.30.0440.00514.48
7.0.20.0430.00814.54
7.0.10.0160.01014.54
7.0.00.0480.00814.54
5.6.400.0130.01316.02
5.6.390.0050.02216.22
5.6.380.0060.02115.87
5.6.370.0190.01116.03
5.6.360.0130.01316.19
5.6.350.0150.01515.82
5.6.340.0150.01516.23
5.6.330.0090.02015.93
5.6.320.0060.02215.89
5.6.310.0110.01415.76
5.6.300.0210.00616.16
5.6.290.0140.01216.08
5.6.280.0160.01216.14
5.6.270.0120.01516.23
5.6.260.0080.01916.20
5.6.250.0110.02015.89
5.6.240.0140.01415.98
5.6.230.0000.02816.16
5.6.220.0130.01615.95
5.6.210.0090.01516.09
5.6.200.0120.01516.32
5.6.190.0070.02016.11
5.6.180.0030.02515.91
5.6.170.0060.02115.90
5.6.160.0100.01415.89
5.6.150.0120.01516.20
5.6.140.0110.01415.89
5.6.130.0090.01816.07
5.6.120.0110.01416.02
5.6.110.0160.00916.10
5.6.100.0180.00915.82
5.6.90.0120.01716.05
5.6.80.0200.00615.86
5.6.70.0130.01215.78
5.6.60.0130.01615.82
5.6.50.0070.01615.92
5.6.40.0030.02016.05
5.6.30.0120.01815.77
5.6.20.0160.01216.04
5.6.10.0140.01415.98
5.6.00.0030.02615.77

preferences:
69.71 ms | 400 KiB | 5 Q