3v4l.org

run code in 300+ PHP versions simultaneously
<?php function nothingspecial($dings) { $dinging = function ($ding) { $ding = preg_replace("/[^- ()\.\&,_'´`áàäçéèêñóòôöüæøåìíùúâêîôûÁÀÄÇÉÈÊÑÓÒÔÖÜÆØÅÌÍÙÚÂÊÎÔÛß@€:0-9a-zA-Z&+]/", " ", $ding ); $ding = stripslashes(trim(str_replace("'","´",$ding))); $funduz = array('&auml ','&ouml ','&uuml ','&Auml ','&Ouml ','&Uuml ','&szlig '); $ersetzuz = array('ä','ö','ü','Ä','Ö','Ü','ß'); $ding = str_replace($funduz, $ersetzuz, $ding); return $ding; }; return is_array($dings) ? array_map($dinging, $dings) : $dinging($dings); } var_dump(nothingspecial(['DópÂ\n'])); var_dump(nothingspecial('DópÂ\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.0140.00316.63
8.3.50.0070.01322.13
8.3.40.0070.00718.99
8.3.30.0140.00018.82
8.3.20.0070.00021.86
8.3.10.0040.00420.34
8.3.00.0040.00420.64
8.2.180.0100.00718.51
8.2.170.0090.00622.96
8.2.160.0110.00420.25
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00418.03
8.2.120.0050.00326.35
8.2.110.0030.00720.53
8.2.100.0060.00617.84
8.2.90.0080.00017.88
8.2.80.0040.00417.97
8.2.70.0080.00017.88
8.2.60.0050.00317.93
8.2.50.0080.00018.10
8.2.40.0040.00420.52
8.2.30.0070.00019.32
8.2.20.0040.00418.00
8.2.10.0000.00818.06
8.2.00.0000.00718.29
8.1.280.0150.00625.92
8.1.270.0000.00823.96
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00622.46
8.1.230.0120.00020.86
8.1.220.0040.00417.77
8.1.210.0050.00318.91
8.1.200.0030.00617.48
8.1.190.0050.00317.48
8.1.180.0030.00518.10
8.1.170.0040.00418.78
8.1.160.0050.00318.84
8.1.150.0000.00720.39
8.1.140.0040.00419.61
8.1.130.0070.00018.96
8.1.120.0000.00717.58
8.1.110.0060.00317.55
8.1.100.0000.00717.59
8.1.90.0070.00017.52
8.1.80.0070.00017.63
8.1.70.0040.00417.50
8.1.60.0000.00917.73
8.1.50.0000.00817.67
8.1.40.0040.00417.73
8.1.30.0000.00917.81
8.1.20.0020.00517.67
8.1.10.0040.00417.68
8.1.00.0040.00417.64
8.0.300.0040.00419.98
8.0.290.0070.00016.88
8.0.280.0040.00418.46
8.0.270.0030.00317.22
8.0.260.0030.00517.10
8.0.250.0030.00317.02
8.0.240.0050.00317.01
8.0.230.0000.00817.02
8.0.220.0080.00016.94
8.0.210.0040.00416.96
8.0.200.0000.01016.98
8.0.190.0030.00616.96
8.0.180.0040.00417.06
8.0.170.0030.00716.98
8.0.160.0070.00017.07
8.0.150.0040.00417.03
8.0.140.0070.00016.97
8.0.130.0030.00313.42
8.0.120.0000.00716.98
8.0.110.0070.00017.08
8.0.100.0030.00516.92
8.0.90.0040.00416.96
8.0.80.0130.00317.05
8.0.70.0070.00017.06
8.0.60.0000.00816.91
8.0.50.0040.00417.06
8.0.30.0080.01017.30
8.0.20.0110.00917.40
8.0.10.0050.00317.10
8.0.00.0120.01217.00
7.4.330.0050.00015.55
7.4.320.0000.00616.80
7.4.300.0060.00016.70
7.4.290.0000.00816.64
7.4.280.0040.00416.80
7.4.270.0030.00316.70
7.4.260.0030.00316.68
7.4.250.0000.00716.63
7.4.240.0070.00016.72
7.4.230.0030.00316.52
7.4.220.0060.01316.84
7.4.210.0100.00916.73
7.4.200.0030.00316.84
7.4.160.0020.01416.69
7.4.150.0150.00317.40
7.4.140.0100.01017.86
7.4.130.0060.01216.64
7.4.120.0090.01216.77
7.4.110.0130.00316.54
7.4.100.0030.01616.61
7.4.90.0120.01216.48
7.4.80.0120.00619.39
7.4.70.0100.00716.65
7.4.60.0080.00816.84
7.4.50.0070.00716.63
7.4.40.0090.01216.70
7.4.30.0030.01316.62
7.4.00.0030.01315.21
7.3.330.0060.00013.30
7.3.320.0020.00213.34
7.3.310.0000.00716.24
7.3.300.0030.00316.38
7.3.290.0070.00016.39
7.3.280.0110.00716.36
7.3.270.0090.00917.40
7.3.260.0100.01116.52
7.3.250.0160.00616.52
7.3.240.0140.00916.61
7.3.230.0090.01316.66
7.3.210.0030.01616.40
7.3.200.0140.00916.44
7.3.190.0120.00616.46
7.3.180.0160.00316.42
7.3.170.0100.00716.60
7.3.160.0000.01616.55
7.3.10.0030.01016.98
7.3.00.0040.00716.80
7.2.330.0120.00916.86
7.2.320.0080.00916.82
7.2.310.0080.01516.91
7.2.300.0140.00416.77
7.2.290.0100.00716.86
7.2.130.0030.01017.17
7.2.120.0100.00317.02
7.2.110.0090.00617.06
7.2.100.0100.00317.03
7.2.90.0080.00417.18
7.2.80.0090.00617.14
7.2.70.0000.01216.95
7.2.60.0110.00417.07
7.2.50.0070.00517.20
7.2.40.0070.00717.11
7.2.30.0030.01217.10
7.2.20.0000.01516.81
7.2.10.0110.00416.45
7.2.00.0000.01416.95
7.1.250.0040.00416.13
7.1.200.0040.01116.08
7.1.70.0050.00317.07
7.1.60.0100.00017.47
7.1.20.0170.07040.46
7.1.10.0030.06722.29
7.1.00.0070.06022.35
7.0.200.0030.01316.89
7.0.160.0100.05321.83
7.0.150.0000.06321.94
7.0.140.0100.05721.91
7.0.130.0000.06321.91
7.0.120.0070.06321.87
7.0.110.0100.06721.97
7.0.100.0070.05721.82
7.0.90.0100.05721.84
7.0.80.0070.05721.75
7.0.70.0070.06021.88
7.0.60.0100.05721.95
7.0.50.0100.05722.00
7.0.40.0130.05321.77
7.0.30.0130.07021.83
7.0.20.0130.05021.92
7.0.10.0130.05021.92
7.0.00.0130.05021.86

preferences:
34.29 ms | 401 KiB | 5 Q