3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ãçé"; $string = preg_replace('/[^?\,\;%\/.~!\'"]/', null, iconv( 'UTF-8', 'ASCII/TRANSLIT', $string)); $string = preg_replace('/&/','e', iconv( 'UTF-8', 'ASCII/TRANSLIT', $string)); print str_replace(" ", "-",($string)) . "\n"; $string = "ãçé"; $string = preg_replace('/[^?\,\;%\/.~!\'"]/', '', iconv( 'UTF-8', 'ASCII/TRANSLIT', $string)); $string = preg_replace('/&/','e', iconv( 'UTF-8', 'ASCII/TRANSLIT', $string)); print str_replace(" ", "-",($string)) . "\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.5.10.0100.00916.82
8.5.00.0110.01120.02
8.4.150.0030.00014.05
8.4.140.0100.01218.00
8.4.130.0130.01218.07
8.4.120.0140.00620.51
8.4.110.0060.00422.53
8.4.100.0120.00918.23
8.4.90.0100.01020.65
8.4.80.0130.00818.09
8.4.70.0100.00718.23
8.4.60.0070.00218.95
8.4.50.0130.00717.94
8.4.40.0110.00719.93
8.4.30.0090.01019.95
8.4.20.0070.01320.24
8.4.10.0040.00418.86
8.3.280.0130.00621.00
8.3.270.0110.00916.92
8.3.260.0100.00716.60
8.3.250.0100.00918.78
8.3.240.0050.00516.88
8.3.230.0120.00716.78
8.3.220.0050.00517.05
8.3.210.0090.01018.54
8.3.200.0040.00416.91
8.3.190.0100.00817.20
8.3.180.0030.00516.75
8.3.170.0060.01318.93
8.3.160.0100.00618.59
8.3.150.0090.00920.77
8.3.140.0040.01817.06
8.3.130.0080.00018.60
8.3.120.0040.00419.00
8.3.110.0060.00318.77
8.3.100.0090.00616.63
8.3.90.0080.00026.77
8.3.80.0070.00316.75
8.3.70.0090.00616.60
8.3.60.0150.00718.58
8.3.50.0140.00517.67
8.3.40.0150.00618.90
8.3.30.0120.00318.58
8.3.20.0050.00321.15
8.3.10.0080.00023.48
8.3.00.0000.00823.51
8.2.290.0100.00920.20
8.2.280.0100.00818.54
8.2.270.0130.00617.38
8.2.260.0110.00419.00
8.2.250.0030.00618.91
8.2.240.0060.00316.89
8.2.230.0060.00320.94
8.2.220.0000.00824.06
8.2.210.0000.00826.77
8.2.200.0090.00017.13
8.2.190.0070.00716.75
8.2.180.0090.00925.92
8.2.170.0090.00622.96
8.2.160.0140.00020.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0060.00319.31
8.2.100.0000.01218.03
8.2.90.0050.00318.00
8.2.80.0000.00817.97
8.2.70.0060.00317.93
8.2.60.0040.00418.22
8.2.50.0050.00318.10
8.2.40.0050.00321.19
8.2.30.0070.00019.15
8.2.20.0050.00318.13
8.2.10.0040.00418.02
8.2.00.0030.00619.49
8.1.330.0160.00423.71
8.1.320.0150.00616.12
8.1.310.0080.00016.65
8.1.300.0080.00018.39
8.1.290.0070.00330.84
8.1.280.0030.01525.92
8.1.270.0030.00520.76
8.1.260.0040.01526.35
8.1.250.0000.00828.09
8.1.240.0000.01117.61
8.1.230.0070.00417.64
8.1.220.0050.00317.77
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0060.00318.62
8.1.160.0040.00418.91
8.1.150.0040.00418.92
8.1.140.0050.00222.15
8.1.130.0000.00721.86
8.1.120.0000.00717.60
8.1.110.0000.00717.59
8.1.100.0040.00417.54
8.1.90.0030.00517.48
8.1.80.0020.00517.60
8.1.70.0000.01117.50
8.1.60.0030.00517.64
8.1.50.0050.00517.57
8.1.40.0040.00417.55
8.1.30.0030.00617.80
8.1.20.0050.00317.80
8.1.10.0000.00817.56
8.1.00.0040.00417.61
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0000.00718.51
8.0.270.0000.00717.28
8.0.260.0030.00318.45
8.0.250.0030.00317.03
8.0.240.0030.00317.19
8.0.230.0070.00017.18
8.0.220.0070.00017.04
8.0.210.0070.00016.97
8.0.200.0030.00317.05
8.0.190.0000.00717.06
8.0.180.0000.00817.06
8.0.170.0030.00617.15
8.0.160.0040.00417.18
8.0.150.0030.00617.15
8.0.140.0070.00016.95
8.0.130.0000.00513.27
8.0.120.0030.00817.14
8.0.110.0030.00617.29
8.0.100.0030.00617.27
8.0.90.0030.00617.11
8.0.80.0050.01617.20
8.0.70.0030.00617.10
8.0.60.0000.00917.05
8.0.50.0030.00617.13
8.0.30.0120.00917.33
8.0.20.0160.00717.40
8.0.10.0030.00617.14
8.0.00.0150.01716.99
7.4.330.0050.00016.61
7.4.320.0000.00616.65
7.4.300.0000.00716.73
7.4.290.0000.00716.64
7.4.280.0060.00316.56
7.4.270.0030.00416.64
7.4.260.0030.00516.73
7.4.250.0090.00016.80
7.4.240.0000.00816.77
7.4.230.0060.00316.76
7.4.220.0060.00316.97
7.4.210.0050.01116.78
7.4.200.0040.00416.68
7.4.160.0090.01116.75
7.4.140.0130.01017.86
7.4.130.0090.00916.64
7.4.120.0120.01016.80
7.4.110.0070.01316.93
7.4.100.0150.00916.77
7.4.90.0040.01516.87
7.4.80.0170.01019.39
7.4.70.0120.00916.86
7.4.60.0080.01116.81
7.4.50.0090.00816.77
7.4.40.0140.00516.61
7.4.30.0140.01216.67
7.4.20.0120.00816.68
7.4.10.0090.01016.79
7.4.00.0090.01116.10
7.3.330.0000.00513.13
7.3.320.0000.00613.04
7.3.310.0030.00616.39
7.3.300.0040.00416.54
7.3.290.0050.00316.48
7.3.280.0130.00716.51
7.3.260.0110.00916.69
7.3.240.0090.01016.74
7.3.230.0180.00316.51
7.3.210.0120.00916.80
7.3.200.0070.01316.71
7.3.190.0110.00716.62
7.3.180.0060.01216.81
7.3.170.0110.00816.74
7.3.160.0050.01516.75
7.3.150.0100.01216.69
7.3.140.0030.01616.67
7.3.130.0160.00616.69
7.3.120.0080.01216.12
7.3.110.0130.00816.05
7.3.100.0100.01115.92
7.3.90.0080.01316.05
7.3.80.0090.00816.22
7.3.70.0080.01016.05
7.3.60.0070.01215.98
7.3.50.0070.01116.14
7.3.40.0070.01116.09
7.3.30.0060.01016.05
7.3.20.0070.01116.73
7.3.10.0090.00916.58
7.3.00.0110.00816.73
7.2.330.0000.01816.79
7.2.320.0110.00816.97
7.2.310.0100.00916.83
7.2.300.0120.00816.79
7.2.290.0070.01216.61
7.2.280.0050.01916.85
7.2.270.0090.01216.81
7.2.260.0060.01517.00
7.2.250.0080.01416.16
7.2.240.0100.01416.40
7.2.230.0080.01216.33
7.2.220.0090.01116.31
7.2.210.0120.01216.33
7.2.200.0070.01216.27
7.2.190.0110.00516.25
7.2.180.0110.00916.41
7.2.170.0100.01016.27
7.2.160.0050.01516.90
7.2.150.0120.00716.95
7.2.140.0130.01016.91
7.2.130.0050.01716.89
7.2.120.0440.01116.24
7.2.110.0130.00916.26
7.2.100.0150.01216.19
7.2.90.0780.01016.21
7.2.80.0720.01316.34
7.2.70.0380.01116.40
7.2.60.0400.01316.31
7.2.50.0580.01416.28
7.2.40.0410.00816.32
7.2.30.0420.00816.36
7.2.20.0360.01016.33
7.2.10.0490.01216.36
7.2.00.0350.01116.37
7.1.330.0090.01215.96
7.1.320.0100.01215.91
7.1.310.0150.00515.79
7.1.300.0110.00915.85
7.1.290.0110.00815.96
7.1.280.0110.00815.94
7.1.270.0100.00915.91
7.1.260.0070.01215.78
7.1.250.0120.01215.80
7.1.240.0120.01315.00
7.1.230.0090.01215.22
7.1.220.0150.00915.11
7.1.210.0120.01115.18
7.1.200.0620.00915.21
7.1.190.0330.01415.18
7.1.180.0600.01115.22
7.1.170.0590.01315.26
7.1.160.0530.00915.19
7.1.150.0470.00815.15
7.1.140.0740.00915.17
7.1.130.0470.01015.20
7.1.120.0480.00615.30
7.1.110.0610.01015.25
7.1.100.0810.01015.29
7.1.90.0490.01115.14
7.1.80.0500.00915.22
7.1.70.0700.01015.27
7.1.60.0610.01015.24
7.1.50.0720.01615.26
7.1.40.0450.01115.27
7.1.30.0480.00815.20
7.1.20.0760.01015.21
7.1.10.0740.01315.17
7.1.00.0720.01115.23
7.0.330.0130.01215.41
7.0.320.0090.01215.42
7.0.310.0110.01315.44
7.0.300.0080.01715.46
7.0.290.0140.01015.52
7.0.280.0180.00615.46
7.0.270.0230.00315.28
7.0.260.0150.01215.57
7.0.250.0090.01415.56
7.0.240.0120.00915.49
7.0.230.0090.01315.54
7.0.220.0120.00915.59
7.0.210.0120.01115.37
7.0.200.0170.00715.53
7.0.190.0130.01115.43
7.0.180.0140.01115.47
7.0.170.0270.00615.51
7.0.160.0120.01015.47
7.0.150.0160.01015.47
7.0.140.0120.01115.54
7.0.130.0100.00715.61
7.0.120.0110.01415.37
7.0.110.0070.01515.47
7.0.100.0130.01015.45
7.0.90.0180.01915.45
7.0.80.0120.01815.52
7.0.70.0120.01415.48
7.0.60.0080.01715.45
7.0.50.0300.01815.32
7.0.40.0260.01515.34
7.0.30.0210.01116.42
7.0.20.0160.01016.32
7.0.10.0170.01016.34
7.0.00.0140.01416.46
5.6.400.0120.01515.98
5.6.390.0100.01516.20
5.6.380.0100.01115.55
5.6.370.0150.01116.11
5.6.360.0140.01016.12
5.6.350.0170.01116.21
5.6.340.0140.01216.06
5.6.330.0130.01316.12
5.6.320.0140.00916.02
5.6.310.0160.01216.02
5.6.300.0170.01316.24
5.6.290.0120.01716.04
5.6.280.0150.00615.97
5.6.270.0190.00716.00
5.6.260.0140.01716.05
5.6.250.0130.01415.98
5.6.240.0110.01616.07
5.6.230.0140.01616.13
5.6.220.0160.01215.99
5.6.210.0210.01116.00
5.6.200.0290.01616.17
5.6.190.0180.01915.94
5.6.180.0070.02216.03
5.6.170.0240.02115.99
5.6.160.0130.01616.08
5.6.150.0170.01415.97
5.6.140.0180.01016.14
5.6.130.0230.00815.89
5.6.120.0170.01416.18
5.6.110.0190.01416.09
5.6.100.0160.01315.97
5.6.90.0150.01516.19
5.6.80.0180.01215.88
5.6.70.0140.01516.04
5.6.60.0170.01515.92
5.6.50.0190.01016.03
5.6.40.0150.01015.91
5.6.30.0150.01315.91
5.6.20.0200.00916.13
5.6.10.0150.01515.99
5.6.00.0160.01216.04

preferences:
37.59 ms | 403 KiB | 5 Q