3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Fuente: https://gist.github.com/gcoop/701814 function cleanse($string) { if (get_magic_quotes_gpc()) { $string = stripslashes($stringIn); } $search = array('&acirc;€“','&acirc;€œ','&acirc;€˜','&acirc;€™','&Acirc;&pound;','&Acirc;&not;','&acirc;„&cent;'); $replace = array('-','&ldquo;','&lsquo;','&rsquo;','&pound;','&not;','&#8482;'); $string = str_replace($search, $replace, $string); $string = str_replace('&acirc;€', '&rdquo;', $string); $search = array("&#39;", "\xc3\xa2\xc2\x80\xc2\x99", "\xc3\xa2\xc2\x80\xc2\x93", "\xc3\xa2\xc2\x80\xc2\x9d", "\xc3\xa2\x3f\x3f"); $resplace = array("'", "'", ' - ', '"', "'"); $string = str_replace($search, $replace, $string); $quotes = array( "\xC2\xAB" => '"', "\xC2\xBB" => '"', "\xE2\x80\x98" => "'", "\xE2\x80\x99" => "'", "\xE2\x80\x9A" => "'", "\xE2\x80\x9B" => "'", "\xE2\x80\x9C" => '"', "\xE2\x80\x9D" => '"', "\xE2\x80\x9E" => '"', "\xE2\x80\x9F" => '"', "\xE2\x80\xB9" => "'", "\xE2\x80\xBA" => "'", "\xe2\x80\x93" => "-", "\xc2\xb0" => "°", "\xc2\xba" => "°", "\xc3\xb1" => "&#241;", "\x96" => "&#241;", "\xe2\x81\x83" => '&bull;', "\xd5" => "\"" ); return strtr($string, $quotes); } echo "\xd5";

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.00016.63
8.3.50.0080.00916.40
8.3.40.0150.00318.90
8.3.30.0080.00818.58
8.3.20.0080.00018.60
8.3.10.0080.00020.34
8.3.00.0100.00017.50
8.2.180.0070.00718.29
8.2.170.0120.00322.96
8.2.160.0040.01120.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.83
8.2.110.0050.00521.02
8.2.100.0080.00417.78
8.2.90.0000.00919.23
8.2.80.0000.00817.91
8.2.70.0030.00517.50
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0050.00317.93
8.2.20.0060.00317.54
8.2.10.0030.00517.48
8.2.00.0070.00017.47
8.1.280.0110.00425.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00522.33
8.1.230.0030.00920.88
8.1.220.0090.00017.74
8.1.210.0040.00418.82
8.1.200.0060.00317.22
8.1.190.0050.00317.41
8.1.180.0000.00818.10
8.1.170.0050.00218.71
8.1.160.0050.00218.75
8.1.150.0080.00018.44
8.1.140.0000.00917.32
8.1.130.0070.00017.70
8.1.120.0050.00217.27
8.1.110.0040.00417.24
8.1.100.0000.00717.23
8.1.90.0070.00017.28
8.1.80.0040.00417.24
8.1.70.0030.00317.32
8.1.60.0000.00717.43
8.1.50.0080.00017.43
8.1.40.0000.00817.39
8.1.30.0000.00717.54
8.1.20.0030.00517.44
8.1.10.0000.00817.43
8.1.00.0050.00217.27
8.0.300.0000.00719.91
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0070.00017.11
8.0.260.0070.00018.31
8.0.250.0000.00716.77
8.0.240.0040.00416.80
8.0.230.0000.00716.88
8.0.220.0030.00316.73
8.0.210.0000.00716.80
8.0.200.0030.00316.90
8.0.190.0030.00516.79
8.0.180.0040.00416.70
8.0.170.0040.00416.78
8.0.160.0030.00316.88
8.0.150.0040.00416.70
8.0.140.0060.00316.75
8.0.130.0050.00013.26
8.0.120.0070.00016.71
8.0.110.0040.00416.66
8.0.100.0000.00716.60
8.0.90.0070.00016.66
8.0.80.0060.00916.66
8.0.70.0040.00416.77
8.0.60.0040.00416.79
8.0.50.0030.00616.72
8.0.30.0130.00616.77
8.0.20.0130.00517.08
8.0.10.0000.00716.86
8.0.00.0100.01216.67
7.4.330.0020.00212.73
7.4.320.0000.00616.39
7.4.300.0060.00016.51
7.4.290.0030.00316.39
7.4.280.0070.00016.40
7.4.270.0000.00716.29
7.4.260.0030.00313.16
7.4.250.0060.00316.46
7.4.240.0040.00416.39
7.4.230.0040.00416.48
7.4.220.0130.01016.30
7.4.210.0100.00516.48
7.4.200.0000.00716.41
7.4.190.0070.00016.21
7.4.160.0110.00416.51
7.4.150.0060.01216.35
7.4.140.0130.00516.51
7.4.130.0060.01316.43
7.4.120.0070.01116.56
7.4.110.0030.01316.18
7.4.100.0080.00916.47
7.4.90.0160.00316.41
7.4.80.0050.01116.16
7.4.70.0140.00416.24
7.4.60.0070.01016.20
7.4.50.0000.00516.40
7.4.40.0060.00916.40
7.4.30.0060.00916.50
7.4.00.0070.00914.72
7.3.330.0030.00313.13
7.3.320.0030.00313.13
7.3.310.0030.00316.21
7.3.300.0070.00016.13
7.3.290.0030.01016.11
7.3.280.0100.00816.17
7.3.270.0060.01016.50
7.3.260.0100.01016.39
7.3.250.0050.01216.31
7.3.240.0000.01616.45
7.3.230.0090.00816.18
7.3.210.0110.00616.14
7.3.200.0100.01019.39
7.3.190.0170.00616.46
7.3.180.0090.00616.36
7.3.170.0070.01016.41
7.3.160.0130.00616.26
7.3.120.0090.00714.65
7.3.110.0030.01314.53
7.3.100.0120.00314.64
7.3.90.0030.00814.72
7.3.80.0030.01014.78
7.3.70.0070.00714.79
7.3.60.0040.00714.72
7.3.50.0000.01014.66
7.3.40.0040.01214.71
7.3.30.0040.01214.75
7.3.20.0120.00316.53
7.3.10.0060.00516.45
7.3.00.0060.00916.48
7.2.330.0120.00616.64
7.2.320.0030.01316.57
7.2.310.0120.00616.64
7.2.300.0100.00716.35
7.2.290.0100.00716.40
7.2.250.0030.01314.91
7.2.240.0070.01115.09
7.2.230.0030.01314.98
7.2.220.0110.00314.77
7.2.210.0100.00314.86
7.2.200.0090.00314.74
7.2.190.0060.00914.85
7.2.180.0080.00614.67
7.2.170.0090.00614.64
7.2.160.0040.00814.67
7.2.150.0070.00716.83
7.2.140.0030.01516.57
7.2.130.0100.00216.64
7.2.120.0060.00716.61
7.2.110.0070.01016.57
7.2.100.0060.00716.63
7.2.90.0030.00816.56
7.2.80.0060.00716.66
7.2.70.0070.00716.74
7.2.60.0090.00716.61
7.2.50.0050.00716.75
7.2.40.0040.00816.70
7.2.30.0100.00616.58
7.2.20.0060.00716.59
7.2.10.0070.00916.69
7.2.00.0070.00517.26
7.1.330.0000.01715.64
7.1.320.0080.00515.67
7.1.310.0000.00815.64
7.1.300.0060.00615.70
7.1.290.0090.00615.48
7.1.280.0070.00315.76
7.1.270.0030.00715.27
7.1.260.0070.00715.46
7.1.250.0080.00615.57
7.1.240.0050.00715.66
7.1.230.0050.00915.45
7.1.220.0030.00915.59
7.1.210.0080.00415.56
7.1.200.0060.00615.48
7.1.190.0020.00815.52
7.1.180.0000.01415.59
7.1.170.0050.00815.68
7.1.160.0030.01015.64
7.1.150.0050.00615.50
7.1.140.0100.00515.41
7.1.130.0050.00915.64
7.1.120.0070.01015.49
7.1.110.0050.00915.63
7.1.100.0020.00816.32
7.1.90.0070.00615.58
7.1.80.0020.01015.43
7.1.70.0090.00515.93
7.1.60.0080.00816.81
7.1.50.0070.00815.82
7.1.40.0070.00715.54
7.1.30.0050.00815.67
7.1.20.0050.00715.52
7.1.10.0040.00915.74
7.1.00.0070.02717.82
7.0.330.0060.00815.14
7.0.320.0090.00615.10
7.0.310.0060.00615.06
7.0.300.0080.00315.26
7.0.290.0060.00815.16
7.0.280.0030.00815.16
7.0.270.0060.00715.11
7.0.260.0080.00615.16
7.0.250.0020.01015.00
7.0.240.0090.00515.14
7.0.230.0050.00715.26
7.0.220.0060.00615.18
7.0.210.0030.00715.14
7.0.200.0130.00814.99
7.0.190.0030.00715.16
7.0.180.0030.00815.05
7.0.170.0080.00315.26
7.0.160.0070.00815.21
7.0.150.0060.00415.17
7.0.140.0020.02917.54
7.0.130.0050.00715.20
7.0.120.0060.02617.29
7.0.110.0050.00815.10
7.0.100.0080.00315.19
7.0.90.0050.01215.20
7.0.80.0040.00915.28
7.0.70.0060.01115.21
7.0.60.0090.03116.82
7.0.50.0050.02216.11
7.0.40.0110.02415.57
7.0.30.0140.03315.54
7.0.20.0100.03015.49
7.0.10.0130.01815.57
7.0.00.0030.03715.56
5.6.400.0040.01113.86
5.6.390.0000.01114.24
5.6.380.0100.00514.14
5.6.370.0040.00714.18
5.6.360.0050.00514.33
5.6.350.0040.01014.15
5.6.340.0020.01014.25
5.6.330.0030.01014.12
5.6.320.0090.00414.06
5.6.310.0060.00613.83
5.6.300.0040.01114.23
5.6.290.0050.00813.93
5.6.280.0040.03016.33
5.6.270.0070.00514.31
5.6.260.0100.00314.15
5.6.250.0060.00814.06
5.6.240.0080.00213.94
5.6.230.0030.01114.03
5.6.220.0050.01213.98
5.6.210.0120.02916.26
5.6.200.0090.02115.58
5.6.190.0070.02216.16
5.6.180.0140.03316.16
5.6.170.0120.03416.26
5.6.160.0040.02816.33
5.6.150.0090.02115.46
5.6.140.0060.01815.55
5.6.130.0070.03215.49
5.6.120.0040.02316.34
5.6.110.0060.02016.32
5.6.100.0090.01816.27
5.6.90.0070.03116.36
5.6.80.0080.02816.12
5.6.70.0090.03016.22
5.6.60.0050.00714.23
5.6.50.0060.00714.27
5.6.40.0070.00613.91
5.6.30.0040.01113.92
5.6.20.0050.00913.94
5.6.10.0050.00813.85
5.6.00.0090.00513.87
5.5.380.0040.01012.49
5.5.370.0050.00712.28
5.5.360.0060.00712.27
5.5.350.0170.02715.19
5.5.340.0070.03214.08
5.5.330.0060.03314.94
5.5.320.0100.02015.19
5.5.310.0140.02414.91
5.5.300.0050.02914.27
5.5.290.0080.02614.13
5.5.280.0060.03015.23
5.5.270.0040.01915.37
5.5.260.0050.03115.13
5.5.250.0090.01815.23
5.5.240.0070.02114.90
5.5.230.0030.00812.37
5.5.220.0060.00312.13
5.5.210.0000.01212.30
5.5.200.0090.00512.39
5.5.190.0100.00612.18
5.5.180.0130.00412.48
5.5.170.0050.00812.34
5.5.160.0060.00712.34
5.5.150.0090.00612.45
5.5.140.0040.00712.40
5.5.130.0050.01012.22
5.5.120.0070.00612.43
5.5.110.0080.00612.18
5.5.100.0030.01112.27
5.5.90.0000.01112.12
5.5.80.0060.00712.27
5.5.70.0030.01012.31
5.5.60.0050.00412.31
5.5.50.0040.00812.47
5.5.40.0020.01112.16
5.5.30.0030.00612.36
5.5.20.0050.00712.35
5.5.10.0020.01212.45
5.5.00.0020.00712.37
5.4.450.0020.02313.69
5.4.440.0060.02413.88
5.4.430.0050.02513.70
5.4.420.0060.01613.69
5.4.410.0040.01913.74
5.4.400.0020.02513.41
5.4.390.0070.02213.52
5.4.380.0060.02913.60
5.4.370.0060.02913.60
5.4.360.0020.03213.62
5.4.350.0070.02113.38
5.4.340.0040.02013.55
5.4.330.0050.00310.69
5.4.320.0080.01713.64
5.4.310.0020.03413.39
5.4.300.0070.02913.58
5.4.290.0060.02313.36
5.4.280.0040.01813.59
5.4.270.0040.01713.45
5.4.260.0070.02313.66
5.4.250.0030.02213.42
5.4.240.0010.03113.42
5.4.230.0050.02013.41
5.4.220.0040.03313.48
5.4.210.0020.01913.59
5.4.200.0060.01513.28
5.4.190.0040.02513.39
5.4.180.0060.02513.62
5.4.170.0030.02313.63
5.4.160.0010.02513.43
5.4.150.0060.01813.34
5.4.140.0050.01512.50
5.4.130.0050.01612.52
5.4.120.0060.02612.65
5.4.110.0040.01812.59
5.4.100.0040.01912.56
5.4.90.0050.02712.63
5.4.80.0070.02812.63
5.4.70.0060.02912.72
5.4.60.0040.02612.46
5.4.50.0090.01712.63
5.4.40.0070.01512.69
5.4.30.0080.02812.70
5.4.20.0020.02712.57
5.4.10.0010.01712.66
5.4.00.0060.02712.50
5.3.290.0030.03011.90
5.3.280.0040.02411.83
5.3.270.0040.02011.79
5.3.260.0030.02911.87
5.3.250.0030.02311.84
5.3.240.0030.02411.79
5.3.230.0110.01711.82
5.3.220.0070.02711.77
5.3.210.0030.02911.79
5.3.200.0080.01911.78
5.3.190.0040.02811.79
5.3.180.0050.02111.77
5.3.170.0090.02511.81
5.3.160.0030.02011.86
5.3.150.0030.03011.78
5.3.140.0040.02511.82
5.3.130.0020.03111.79
5.3.120.0070.02811.82
5.3.110.0010.01911.84
5.3.100.0050.02611.60
5.3.90.0080.01511.65
5.3.80.0050.01511.60
5.3.70.0040.02211.61
5.3.60.0020.02411.68
5.3.50.0020.02311.58
5.3.40.0080.01111.58
5.3.30.0070.01311.56
5.3.20.0040.01711.54
5.3.10.0040.02111.45
5.3.00.0060.02711.48
5.2.170.0010.02010.78
5.2.160.0030.01510.70
5.2.150.0010.01810.74
5.2.140.0020.03710.74
5.2.130.0030.03710.67
5.2.120.0020.03210.66
5.2.110.0050.01710.76
5.2.100.0030.01810.77
5.2.90.0030.02110.67
5.2.80.0030.02810.68
5.2.70.0070.02210.63
5.2.60.0080.03010.65
5.2.50.0020.02410.65
5.2.40.0050.03410.59
5.2.30.0040.01710.65
5.2.20.0030.02010.63
5.2.10.0050.03310.57
5.2.00.0070.02910.50
5.1.60.0030.02610.13
5.1.50.0030.02810.14
5.1.40.0030.01610.08
5.1.30.0020.02310.25
5.1.20.0050.03010.33
5.1.10.0040.02410.18
5.1.00.0040.02110.24
5.0.50.0030.0259.39
5.0.40.0010.0139.36
5.0.30.0010.0319.26
5.0.20.0050.0209.22
5.0.10.0020.0119.18
5.0.00.0030.0169.25
4.4.90.0030.0209.13
4.4.80.0040.0089.13
4.4.70.0040.0159.13
4.4.60.0000.0149.13
4.4.50.0020.0219.13
4.4.40.0000.0329.13
4.4.30.0050.0159.13
4.4.20.0030.0189.13
4.4.10.0030.0129.13
4.4.00.0000.0189.13
4.3.110.0040.0109.13
4.3.100.0030.0189.13
4.3.90.0020.0149.13
4.3.80.0020.0149.13
4.3.70.0030.0079.13
4.3.60.0030.0079.13
4.3.50.0020.0089.13
4.3.40.0020.0149.13
4.3.30.0020.0109.13
4.3.20.0000.0109.13
4.3.10.0000.0119.13
4.3.00.0000.0109.13

preferences:
49.74 ms | 401 KiB | 5 Q