3v4l.org

run code in 300+ PHP versions simultaneously
<?php function escape($data='') { $a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿ'; $b = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyyby'; $data = utf8_decode($data); $data = utf8_encode(strtr($data, utf8_decode($a), $b)); $data = strtolower($data); $arrPre[] = " a "; $arrPre[] = " ante "; $arrPre[] = " bajo "; $arrPre[] = " con "; $arrPre[] = " de "; $arrPre[] = " desde "; $arrPre[] = " durante "; $arrPre[] = " en "; $arrPre[] = " entre "; $arrPre[] = " excepto "; $arrPre[] = " hacia "; $arrPre[] = " hasta "; $arrPre[] = " mediante "; $arrPre[] = " para "; $arrPre[] = " por "; $arrPre[] = " salvo "; $arrPre[] = " según "; $arrPre[] = " sin "; $arrPre[] = " sobre "; $arrPre[] = " tras "; $data = str_replace($arrPre," ",$data); $data = str_replace(array('\\','!','¡','/','\'','"','“','â€?','‘','’','&','º','<','>','+','¿','?',':','.',',','%'), '', $data ); $data = str_replace(" " , "-", $data ); $data = preg_replace("/[^A-Z\d\_\.\:\,\-]/i","",$data); return $data; } echo escape('médicos ');

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.40.0150.00018.91
8.3.30.0110.00419.09
8.3.20.0140.00020.16
8.3.10.0040.00423.48
8.3.00.0040.00420.89
8.2.170.0150.00622.96
8.2.160.0140.00020.57
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.75
8.2.110.0040.00722.25
8.2.100.0110.00019.08
8.2.90.0090.00018.13
8.2.80.0030.00617.97
8.2.70.0000.00917.93
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0040.00420.66
8.2.30.0040.00418.42
8.2.20.0050.00318.01
8.2.10.0080.00018.06
8.2.00.0060.00317.86
8.1.270.0040.00422.16
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0030.00622.07
8.1.230.0110.00019.10
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0070.00018.89
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0070.00022.00
8.1.150.0040.00418.70
8.1.140.0030.00517.57
8.1.130.0040.00417.48
8.1.120.0040.00417.48
8.1.110.0030.00617.55
8.1.100.0040.00417.46
8.1.90.0000.00717.58
8.1.80.0040.00417.54
8.1.70.0040.00417.46
8.1.60.0030.00617.80
8.1.50.0000.00817.60
8.1.40.0000.00817.75
8.1.30.0060.00317.86
8.1.20.0000.00817.81
8.1.10.0000.00817.70
8.1.00.0040.00417.66
8.0.300.0000.00719.73
8.0.290.0000.00716.75
8.0.280.0070.00018.49
8.0.270.0090.00017.33
8.0.260.0000.00717.04
8.0.250.0000.00817.02
8.0.240.0030.00717.14
8.0.230.0030.00317.05
8.0.220.0040.00417.00
8.0.210.0000.00716.89
8.0.200.0090.00017.06
8.0.190.0000.00716.94
8.0.180.0000.00716.94
8.0.170.0000.00716.89
8.0.160.0080.00017.13
8.0.150.0100.00016.96
8.0.140.0000.00716.99
8.0.130.0000.00913.50
8.0.120.0030.00516.93
8.0.110.0040.00416.92
8.0.100.0000.00817.00
8.0.90.0000.00716.89
8.0.80.0120.00616.88
8.0.70.0040.00416.96
8.0.60.0040.00416.88
8.0.50.0040.00417.04
8.0.30.0080.01017.24
8.0.20.0130.00717.40
8.0.10.0040.00417.03
8.0.00.0100.00916.70
7.4.330.0000.00515.00
7.4.320.0030.00316.79
7.4.300.0000.00716.77
7.4.290.0000.00816.86
7.4.280.0040.00416.88
7.4.270.0040.00316.75
7.4.260.0030.00516.77
7.4.250.0030.00516.69
7.4.240.0000.00716.82
7.4.230.0050.00216.74
7.4.220.0100.00716.80
7.4.210.0140.00916.87
7.4.200.0000.00716.77
7.4.160.0070.01016.76
7.4.150.0070.01117.40
7.4.140.0050.01317.86
7.4.130.0090.00916.74
7.4.120.0080.00916.60
7.4.110.0060.01616.83
7.4.100.0040.01416.57
7.4.90.0130.00416.78
7.4.80.0060.01219.39
7.4.70.0060.01016.69
7.4.60.0090.00916.66
7.4.50.0040.00016.58
7.4.40.0000.01616.77
7.4.30.0160.00316.75
7.4.10.0110.00714.85
7.4.00.0040.01214.89
7.3.330.0050.00013.23
7.3.320.0000.00813.35
7.3.310.0030.00316.41
7.3.300.0030.00316.42
7.3.290.0070.01116.40
7.3.280.0080.01016.38
7.3.270.0030.01417.40
7.3.260.0120.00516.69
7.3.250.0090.01316.76
7.3.240.0160.00616.73
7.3.230.0070.01016.83
7.3.210.0150.00616.49
7.3.200.0120.00419.39
7.3.190.0140.00716.44
7.3.180.0090.00616.79
7.3.170.0190.01716.48
7.3.160.0030.01216.47
7.3.130.0030.01315.26
7.3.120.0060.01015.16
7.3.110.0060.01214.76
7.3.100.0120.00015.15
7.3.90.0040.01215.21
7.3.80.0120.00614.93
7.3.70.0000.01014.75
7.3.60.0070.00715.04
7.3.50.0040.01415.07
7.3.40.0060.00915.09
7.3.30.0070.00714.82
7.3.20.0000.01516.88
7.3.10.0100.00716.50
7.3.00.0060.00916.61
7.2.330.0100.01016.92
7.2.320.0140.00317.02
7.2.310.0040.01316.58
7.2.300.0100.00716.90
7.2.290.0070.01016.86
7.2.260.0110.00815.25
7.2.250.0030.01615.45
7.2.240.0040.01115.43
7.2.230.0000.00915.07
7.2.220.0030.01215.17
7.2.210.0080.00815.03
7.2.200.0100.00715.45
7.2.190.0090.00615.13
7.2.180.0070.00714.95
7.2.170.0030.01315.11
7.2.160.0030.01014.98
7.2.150.0060.01017.13
7.2.140.0060.01117.26
7.2.130.0100.00917.04
7.2.120.0120.00616.90
7.2.110.0110.00617.00
7.2.100.0080.00617.07
7.2.90.0060.01217.00
7.2.80.0060.01117.07
7.2.70.0060.01116.99
7.2.60.0070.00716.95
7.2.50.0070.01017.01
7.2.40.0060.01116.88
7.2.30.0100.00817.09
7.2.20.0070.00916.85
7.2.10.0100.00816.95
7.2.00.0090.00517.68
7.1.330.0040.01216.11
7.1.320.0060.00315.71
7.1.310.0030.00616.15
7.1.300.0110.00415.89
7.1.290.0030.00615.71
7.1.280.0030.01015.85
7.1.270.0070.00715.81
7.1.260.0070.00315.83
7.1.250.0110.00315.89
7.1.240.0030.01316.03
7.1.230.0130.00315.82
7.1.220.0070.00415.62
7.1.210.0060.00615.79
7.1.200.0110.00515.82
7.1.190.0070.00715.67
7.1.180.0060.00615.92
7.1.170.0140.00016.02
7.1.160.0060.00315.79
7.1.150.0130.00315.93
7.1.140.0000.01416.07
7.1.130.0060.00915.71
7.1.120.0040.01115.68
7.1.110.0040.00415.80
7.1.100.0020.01317.28
7.1.90.0030.01016.01
7.1.80.0030.00615.89
7.1.70.0020.00916.62
7.1.60.0120.00717.76
7.1.50.0090.01316.37
7.1.40.0150.00315.95
7.1.30.0040.00815.97
7.1.20.0070.00715.90
7.1.10.0040.01215.91
7.1.00.0080.03819.21
7.0.330.0000.00915.41
7.0.320.0000.01015.52
7.0.310.0040.01115.41
7.0.300.0030.00515.62
7.0.290.0140.00015.51
7.0.280.0050.00315.71
7.0.270.0080.00815.66
7.0.260.0030.00515.44
7.0.250.0030.01015.57
7.0.240.0090.00615.44
7.0.230.0040.00815.52
7.0.220.0030.01015.67
7.0.210.0090.00415.59
7.0.200.0030.00916.35
7.0.190.0070.00715.67
7.0.180.0080.00615.64
7.0.170.0100.00315.57
7.0.160.0100.00315.68
7.0.150.0060.00915.35
7.0.140.0080.03818.83
7.0.130.0000.01115.74
7.0.120.0090.00315.54
7.0.110.0040.00415.71
7.0.100.0060.00315.54
7.0.90.0000.01115.51
7.0.80.0060.04417.81
7.0.70.0110.03517.50
7.0.60.0090.04417.88
7.0.50.0050.04718.07
7.0.40.0000.05316.88
7.0.30.0050.04016.82
7.0.20.0020.05316.73
7.0.10.0080.04316.88
7.0.00.0120.02416.90
5.6.400.0060.00614.40
5.6.390.0040.00414.25
5.6.380.0100.00314.45
5.6.370.0080.00814.18
5.6.360.0040.00814.82
5.6.350.0140.00314.56
5.6.340.0000.01014.56
5.6.330.0070.01314.79
5.6.320.0000.01414.40
5.6.310.0030.01214.92
5.6.300.0090.00614.21
5.6.290.0060.00914.57
5.6.280.0090.03518.00
5.6.270.0030.01014.64
5.6.260.0090.00614.55
5.6.250.0090.00614.89
5.6.240.0090.00614.66
5.6.230.0130.04017.63
5.6.220.0100.04317.67
5.6.210.0050.04317.49
5.6.200.0110.02317.87
5.6.190.0040.04417.76
5.6.180.0090.04717.61
5.6.170.0110.02317.77
5.6.160.0070.03917.87
5.6.150.0070.04817.86
5.6.140.0100.04117.79
5.6.130.0130.03517.72
5.6.120.0100.04317.69
5.6.110.0070.03017.78
5.6.100.0130.04717.80
5.6.90.0100.02517.74
5.6.80.0080.04417.42
5.6.70.0050.03117.43
5.6.60.0030.02717.36
5.6.50.0070.04217.56
5.6.40.0160.03717.38
5.6.30.0100.03817.24
5.6.20.0070.04017.38
5.6.10.0110.03817.48
5.6.00.0020.05017.41
5.5.380.0000.01114.39
5.5.370.0060.04617.56
5.5.360.0050.04217.53
5.5.350.0130.03817.35
5.5.340.0080.04317.56
5.5.330.0080.04517.74
5.5.320.0060.04617.64
5.5.310.0130.04017.58
5.5.300.0030.05117.55
5.5.290.0080.04417.58
5.5.280.0080.04217.68
5.5.270.0080.03317.63
5.5.260.0050.04617.58
5.5.250.0050.04917.60
5.5.240.0090.02517.34
5.5.230.0050.02717.33
5.5.220.0090.04117.34
5.5.210.0050.04717.43
5.5.200.0050.04117.26
5.5.190.0110.03917.25
5.5.180.0100.04017.26
5.5.170.0030.01014.40
5.5.160.0030.03717.26
5.5.150.0080.04017.35
5.5.140.0040.03217.38
5.5.130.0080.02417.15
5.5.120.0080.04417.30
5.5.110.0080.04117.28
5.5.100.0030.02617.34
5.5.90.0070.03317.26
5.5.80.0000.04417.15
5.5.70.0090.02317.07
5.5.60.0080.04017.17
5.5.50.0070.04117.24
5.5.40.0100.04017.24
5.5.30.0090.03917.14
5.5.20.0030.03117.24
5.5.10.0070.04517.10
5.5.00.0060.02717.17
5.4.450.0120.02815.34
5.4.440.0100.04015.38
5.4.430.0070.04015.38
5.4.420.0060.04315.19
5.4.410.0070.03015.19
5.4.400.0070.04015.24
5.4.390.0050.02515.14
5.4.380.0030.02314.88
5.4.370.0050.03215.07
5.4.360.0020.03215.09
5.4.350.0100.03815.26
5.4.340.0000.04815.04
5.4.330.0090.00310.88
5.4.320.0050.04215.09
5.4.310.0070.03215.07
5.4.300.0050.02614.82
5.4.290.0100.03815.22
5.4.280.0030.03115.00
5.4.270.0110.02515.22
5.4.260.0060.04015.07
5.4.250.0070.03715.30
5.4.240.0050.04015.17
5.4.230.0110.03815.23
5.4.220.0090.04015.12
5.4.210.0080.03614.97
5.4.200.0050.04015.04
5.4.190.0070.04115.14
5.4.180.0020.03914.83
5.4.170.0050.03515.05
5.4.160.0070.03915.20
5.4.150.0030.04515.05
5.4.140.0060.04113.90
5.4.130.0090.02913.77
5.4.120.0060.03913.75
5.4.110.0110.03313.76
5.4.100.0000.04513.73
5.4.90.0050.03513.83
5.4.80.0060.02913.62
5.4.70.0110.02913.63
5.4.60.0070.03913.82
5.4.50.0070.04213.91
5.4.40.0050.03513.83
5.4.30.0070.03913.92
5.4.20.0040.04113.95
5.4.10.0050.04013.82
5.4.00.0100.03013.55
5.3.290.0020.04312.79
5.3.280.0060.04312.63
5.3.270.0080.03712.72
5.3.260.0110.03112.69
5.3.250.0060.03612.67
5.3.240.0050.04012.62
5.3.230.0050.04012.65
5.3.220.0100.03712.62
5.3.210.0050.03012.70
5.3.200.0080.03812.69
5.3.190.0010.02512.68
5.3.180.0130.02612.66
5.3.170.0030.03312.69
5.3.160.0050.04212.70
5.3.150.0020.04412.69
5.3.140.0050.03512.79
5.3.130.0050.04412.65
5.3.120.0050.03912.72
5.3.110.0060.03812.68
5.3.100.0070.03512.39
5.3.90.0050.02812.37
5.3.80.0020.04312.38
5.3.70.0030.03712.41
5.3.60.0040.04012.36
5.3.50.0060.02112.40
5.3.40.0050.02812.35
5.3.30.0050.02512.33
5.3.20.0050.03912.20
5.3.10.0090.03412.12
5.3.00.0030.04312.11
5.2.170.0100.06011.88
5.2.160.0100.06011.88
5.2.150.0100.06011.88
5.2.140.0100.06011.88
5.2.130.0070.06011.88
5.2.120.0070.04711.88
5.2.110.0030.06011.88
5.2.100.0070.04711.88
5.2.90.0000.06711.88
5.2.80.0030.05311.88
5.2.70.0100.05311.88
5.2.60.0030.06011.88
5.2.50.0030.04011.88
5.2.40.0070.05311.88
5.2.30.0100.04011.88
5.2.20.0070.06011.88
5.2.10.0170.05711.88
5.2.00.0030.06711.88
5.1.60.0070.04711.88
5.1.50.0100.05011.88
5.1.40.0100.05311.88
5.1.30.0100.04311.88
5.1.20.0000.05011.88
5.1.10.0070.05311.88
5.1.00.0030.05711.88
5.0.50.0100.04311.88
5.0.40.0070.03711.88
5.0.30.0100.06011.88
5.0.20.0070.04011.88
5.0.10.0030.04311.88
5.0.00.0030.06311.88
4.4.90.0030.03311.88
4.4.80.0070.01311.88
4.4.70.0070.02711.88
4.4.60.0000.03711.88
4.4.50.0000.03711.88
4.4.40.0000.06011.88
4.4.30.0070.03011.88
4.4.20.0000.03311.88
4.4.10.0030.02011.88
4.4.00.0000.05311.88
4.3.110.0030.03311.88
4.3.100.0070.02311.88
4.3.90.0070.03011.88
4.3.80.0000.04311.88
4.3.70.0070.03011.88
4.3.60.0030.03311.88
4.3.50.0070.02711.88
4.3.40.0000.05311.88
4.3.30.0030.03711.88
4.3.20.0030.03711.88
4.3.10.0000.03711.88
4.3.00.0000.02711.88

preferences:
45.1 ms | 400 KiB | 5 Q