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); } function old_nothingspecial($dings) { $dings = preg_replace("/[^- ()\.\&,_'´`áàäçéèêñóòôöüæøåìíùúâêîôûÁÀÄÇÉÈÊÑÓÒÔÖÜÆØÅÌÍÙÚÂÊÎÔÛß@€:0-9a-zA-Z&+]/"," ", $dings); $dings = stripslashes(trim(str_replace("'","´",$dings))); $funduz = array('&auml ','&ouml ','&uuml ','&Auml ','&Ouml ','&Uuml ','&szlig '); $ersetzuz = array('ä','ö','ü','Ä','Ö','Ü','ß'); $dings = str_replace($funduz,$ersetzuz,$dings); return $dings; } var_dump(old_nothingspecial(['DópÂ\n'])); var_dump(old_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.00718.80
8.3.50.0070.01018.21
8.3.40.0070.00718.95
8.3.30.0040.01118.74
8.3.20.0080.00021.77
8.3.10.0080.00020.16
8.3.00.0080.00020.77
8.2.180.0070.00718.68
8.2.170.0070.00722.96
8.2.160.0030.01020.47
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00418.09
8.2.120.0040.00426.35
8.2.110.0070.00319.39
8.2.100.0040.00817.93
8.2.90.0030.00619.22
8.2.80.0030.00617.97
8.2.70.0000.00817.75
8.2.60.0000.00817.77
8.2.50.0000.00818.10
8.2.40.0000.00720.42
8.2.30.0070.00019.11
8.2.20.0020.00517.93
8.2.10.0080.00017.97
8.2.00.0040.00418.15
8.1.280.0150.00625.92
8.1.270.0080.00024.01
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.00
8.1.230.0080.00317.50
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0000.00917.47
8.1.180.0050.00318.10
8.1.170.0000.00818.63
8.1.160.0030.00518.88
8.1.150.0070.00020.29
8.1.140.0080.00019.40
8.1.130.0030.00318.95
8.1.120.0030.00317.48
8.1.110.0030.00517.47
8.1.100.0070.00017.52
8.1.90.0050.00217.57
8.1.80.0000.00717.54
8.1.70.0030.00617.52
8.1.60.0030.00617.78
8.1.50.0000.00817.64
8.1.40.0000.00817.64
8.1.30.0050.00317.84
8.1.20.0030.00617.73
8.1.10.0040.00417.65
8.1.00.0030.00517.51
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0050.00218.30
8.0.270.0070.00017.28
8.0.260.0060.00317.12
8.0.250.0000.00717.10
8.0.240.0040.00416.97
8.0.230.0040.00417.10
8.0.220.0070.00016.98
8.0.210.0030.00317.06
8.0.200.0060.00316.98
8.0.190.0040.00417.08
8.0.180.0050.00317.11
8.0.170.0040.00417.01
8.0.160.0040.00417.09
8.0.150.0040.00416.89
8.0.140.0000.00817.03
8.0.130.0000.00613.49
8.0.120.0040.00416.89
8.0.110.0040.00416.93
8.0.100.0050.00316.84
8.0.90.0000.00716.88
8.0.80.0070.01017.07
8.0.70.0040.00316.88
8.0.60.0050.00217.04
8.0.50.0040.00417.02
8.0.30.0080.01117.12
8.0.20.0100.00917.44
8.0.10.0040.00417.15
8.0.00.0070.01016.87
7.4.330.0000.00615.55
7.4.320.0060.00016.79
7.4.300.0030.00316.68
7.4.290.0050.00516.59
7.4.280.0040.00416.68
7.4.270.0040.00416.70
7.4.260.0050.00216.76
7.4.250.0040.00416.75
7.4.240.0050.00316.74
7.4.230.0000.00716.81
7.4.220.0100.01316.83
7.4.210.0070.00716.87
7.4.200.0040.00416.80
7.4.160.0130.00416.64
7.4.150.0110.00717.40
7.4.140.0100.00717.86
7.4.130.0070.01216.66
7.4.120.0080.01116.53
7.4.110.0030.01316.46
7.4.100.0100.00716.52
7.4.90.0060.01116.66
7.4.80.0090.01319.39
7.4.70.0000.01616.71
7.4.60.0120.00316.49
7.4.50.0130.00316.58
7.4.40.0140.00716.57
7.4.30.0130.00316.71
7.4.00.0060.01215.20
7.3.330.0000.00613.37
7.3.320.0030.00213.31
7.3.310.0000.00716.45
7.3.300.0040.00316.33
7.3.290.0030.00316.50
7.3.280.0100.00716.46
7.3.270.0030.01417.40
7.3.260.0110.01316.66
7.3.250.0100.01016.50
7.3.240.0090.00816.56
7.3.230.0070.01116.66
7.3.210.0110.00716.59
7.3.200.0030.01516.59
7.3.190.0060.00916.73
7.3.180.0100.00716.63
7.3.170.0120.00416.51
7.3.160.0100.00616.59
7.3.120.0070.01115.20
7.3.110.0040.01414.72
7.3.100.0060.00914.86
7.3.90.0000.00914.70
7.3.80.0040.01514.80
7.3.70.0060.00615.10
7.3.60.0060.00914.86
7.3.50.0030.01315.00
7.3.40.0090.00914.81
7.3.30.0080.00414.94
7.3.20.0060.00916.76
7.3.10.0070.00416.72
7.3.00.0120.00316.66
7.2.330.0170.00616.86
7.2.320.0090.00916.82
7.2.310.0110.00716.79
7.2.300.0090.01016.69
7.2.290.0070.01016.59
7.2.250.0030.01615.03
7.2.240.0070.01415.19
7.2.230.0110.00415.02
7.2.220.0030.01014.99
7.2.210.0130.00014.93
7.2.200.0130.00014.88
7.2.190.0030.01315.00
7.2.180.0030.01015.01
7.2.170.0060.00915.17
7.2.60.0090.00617.14
7.2.00.0120.00819.29
7.1.330.0040.01115.94
7.1.320.0070.00715.86
7.1.310.0070.00715.84
7.1.300.0000.01615.91
7.1.290.0090.00615.97
7.1.280.0090.00915.75
7.1.270.0080.00415.98
7.1.260.0140.00016.09
7.1.200.0070.00715.93
7.1.100.0230.00518.00
7.1.70.0080.00017.29
7.1.60.0030.00717.46
7.1.50.0110.00817.16
7.1.20.0170.06740.27
7.1.10.0030.06722.09
7.1.00.0030.06022.43
7.0.200.0060.01216.70
7.0.160.0070.05721.68
7.0.150.0030.06021.73
7.0.140.0070.05721.82
7.0.130.0170.04721.98
7.0.120.0100.05321.87
7.0.110.0100.06021.95
7.0.100.0130.05021.91
7.0.90.0070.06021.76
7.0.80.0070.05721.90
7.0.70.0100.05321.92
7.0.60.0070.06021.63
7.0.50.0100.05721.87
7.0.40.0130.06021.85
7.0.30.0030.06021.99
7.0.20.0070.07721.89
7.0.10.0030.05721.87
7.0.00.0100.07721.92

preferences:
63.62 ms | 401 KiB | 5 Q