3v4l.org

run code in 300+ PHP versions simultaneously
<? $title = "ดูซีรี่ย์ฝรั่ง&nbsp;Arrow Season 3 Ep.1-1"; $title = trim(trim($title, chr(0xC2).chr(0xA0))); echo $title; $title = html_entity_decode($title); echo $title; $title = strtolower($title); $title = ucwords($title); echo $title; $pattern = array("~\s*(season)\s*(\d+[-]?[0-9]*).*\s*(?:ep[.]?|episode)\s*(\d+[-]?[0-9]*)(\s*)~", "~\s*(?:ep[.]?|episode)\s*(\d+[-]?[0-9]*)(\s*)~"); $title = preg_replace($pattern, array(" $1 $2 ep. $3"," ep. $1"), $title, -1); $title = ucwords($title); echo $title; $episodename = str_replace("’","'",$title); $pttr = '/[ก-๙]/ui'; $new_str = preg_replace($pttr, '', $episodename); $new_str = preg_replace('/\s+/', ' ', $new_str); $new_str = str_replace('..', '', $new_str); $new_str = trim($new_str); $title = ucwords($title); $episode = $new_str; echo $episode; ?>

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.31
8.3.50.0070.01018.16
8.3.40.0140.00018.45
8.3.30.0100.01019.01
8.3.20.0070.00020.07
8.3.10.0030.00523.68
8.3.00.0050.00319.26
8.2.180.0070.00716.32
8.2.170.0130.00622.96
8.2.160.0070.00720.32
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.07
8.2.110.0030.00620.41
8.2.100.0000.01018.09
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0030.00617.49
8.2.60.0060.00617.66
8.2.50.0050.00318.07
8.2.40.0090.00019.76
8.2.30.0030.00617.96
8.2.20.0040.00417.42
8.2.10.0050.00317.91
8.2.00.0040.00417.45
8.1.270.0090.00023.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0000.01119.07
8.1.220.0040.00417.74
8.1.210.0070.00018.77
8.1.200.0060.00317.10
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.35
8.1.160.0070.00021.96
8.1.150.0000.01018.73
8.1.140.0040.00417.36
8.1.130.0030.00317.71
8.1.120.0080.00017.36
8.1.110.0030.00617.34
8.1.100.0000.00717.35
8.1.90.0040.00317.38
8.1.80.0030.00517.33
8.1.70.0030.00317.23
8.1.60.0130.00017.45
8.1.50.0000.00817.40
8.1.40.0040.00417.33
8.1.30.0030.00517.55
8.1.20.0000.00717.52
8.1.10.0000.00717.30
8.1.00.0040.00417.25
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.35
8.0.270.0000.00717.22
8.0.260.0040.00417.16
8.0.250.0030.00316.82
8.0.240.0030.00316.79
8.0.230.0030.00316.77
8.0.220.0000.00716.68
8.0.210.0030.00316.75
8.0.200.0000.00716.71
8.0.190.0000.00816.84
8.0.180.0000.00716.74
8.0.170.0030.00616.75
8.0.160.0030.00516.78
8.0.150.0050.00216.73
8.0.140.0050.00216.60
8.0.130.0000.00613.55
8.0.120.0000.00816.78
8.0.110.0020.00516.66
8.0.100.0080.00016.86
8.0.90.0040.00416.81
8.0.80.0090.01316.81
8.0.70.0060.00316.75
8.0.60.0070.00016.63
8.0.50.0070.00016.79
8.0.30.0140.00416.78
8.0.20.0090.00917.40
8.0.10.0000.00716.71
8.0.00.0080.01216.82
7.4.330.0030.00315.00
7.4.320.0030.00316.36
7.4.300.0030.00316.36
7.4.290.0030.00416.36
7.4.280.0050.00316.25
7.4.270.0000.00716.39
7.4.260.0000.00716.25
7.4.250.0040.00416.42
7.4.240.0020.00616.34
7.4.230.0070.00016.49
7.4.220.0030.01516.48
7.4.210.0040.01116.51
7.4.200.0000.00716.57
7.4.160.0030.01316.34
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0090.01216.43
7.4.120.0100.01016.42
7.4.110.0110.00916.50
7.4.100.0060.01016.43
7.4.90.0030.01316.35
7.4.80.0120.00619.39
7.4.70.0150.00416.50
7.4.60.0070.01016.51
7.4.50.0000.00816.20
7.4.40.0060.01316.33
7.4.30.0100.01016.33
7.4.00.0090.00714.86
7.3.330.0060.00013.41
7.3.320.0030.00313.39
7.3.310.0070.00016.06
7.3.300.0030.00316.23
7.3.290.0070.01316.03
7.3.280.0090.00816.14
7.3.270.0120.00617.40
7.3.260.0090.00916.34
7.3.250.0100.00716.34
7.3.240.0100.01016.24
7.3.230.0060.01116.39
7.3.210.0090.01216.36
7.3.200.0040.01619.39
7.3.190.0140.00316.35
7.3.180.0060.01016.38
7.3.170.0120.00816.35
7.3.160.0090.00916.44
7.3.120.0090.00614.57
7.3.110.0070.01014.46
7.3.100.0100.00314.62
7.3.90.0000.01314.49
7.3.80.0100.00614.62
7.3.70.0070.01014.40
7.3.60.0070.00714.73
7.3.50.0070.01014.48
7.3.40.0070.00314.55
7.3.30.0000.01114.50
7.3.20.0070.00716.55
7.3.10.0030.00916.80
7.3.00.0080.00516.63
7.2.330.0030.01416.53
7.2.320.0070.01016.43
7.2.310.0090.00916.29
7.2.300.0100.00716.39
7.2.290.0030.01316.43
7.2.250.0030.01614.76
7.2.240.0060.01215.10
7.2.230.0100.00615.10
7.2.220.0090.00014.93
7.2.210.0030.00914.58
7.2.200.0070.01114.96
7.2.190.0030.00714.79
7.2.180.0060.00914.72
7.2.170.0000.01514.68
7.2.130.0030.01017.03
7.2.120.0000.01316.84
7.2.110.0040.01116.95
7.2.100.0040.01116.89
7.2.90.0090.00917.19
7.2.80.0060.00917.11
7.2.70.0130.00916.95
7.2.60.0130.00316.73
7.2.50.0060.00617.05
7.2.40.0060.00316.89
7.2.30.0100.00717.04
7.2.20.0030.01217.04
7.2.10.0050.00517.04
7.2.00.0060.00616.84
7.1.330.0090.00315.44
7.1.320.0090.00015.68
7.1.310.0000.01315.82
7.1.300.0070.01015.63
7.1.290.0040.00715.63
7.1.280.0060.00615.48
7.1.270.0070.00315.66
7.1.260.0060.00615.78
7.1.250.0000.01016.02
7.1.70.0000.00717.25
7.1.60.0000.02419.32
7.1.50.0070.01417.13
7.1.00.0070.07322.47
7.0.200.0070.00417.09
7.0.140.0030.07322.21
7.0.60.0170.05719.97
7.0.50.0070.08317.89
7.0.40.0100.07020.54
7.0.30.0170.04720.03
7.0.20.0230.09320.02
7.0.10.0100.08720.14
7.0.00.0070.05720.02
5.6.280.0030.07321.03
5.6.210.0000.05320.75
5.6.200.0130.05318.12
5.6.190.0070.07720.60
5.6.180.0000.04720.69
5.6.170.0330.07020.33
5.6.160.0130.07720.49
5.6.150.0130.07318.18
5.6.140.0070.05718.17
5.6.130.0000.04318.11
5.6.120.0130.04020.98
5.6.110.0000.06721.12
5.6.100.0100.06721.11
5.6.90.0130.08721.02
5.6.80.0200.07020.51
5.6.70.3230.03320.37
5.5.350.0100.03320.36
5.5.340.0100.07317.90
5.5.330.0030.08320.56
5.5.320.0370.06320.30
5.5.310.0200.04320.23
5.5.300.0100.06718.01
5.5.290.0030.04018.02
5.5.280.0070.08320.66
5.5.270.0070.05320.80
5.5.260.0100.07320.84
5.5.250.0030.04020.63
5.5.240.0200.07320.29
5.4.450.0530.03019.27
5.4.440.0370.03719.46
5.4.430.0330.04019.13
5.4.420.0670.00019.49
5.4.410.0630.00019.32
5.4.400.0630.00019.01
5.4.390.0630.00018.98
5.4.380.0670.00019.16
5.4.370.0630.00019.13
5.4.360.0600.00018.92
5.4.350.0670.00019.18
5.4.340.0080.03211.98
5.4.320.0080.03412.45
5.4.310.0070.03812.45
5.4.300.0060.03712.45
5.4.290.0050.04012.45
5.4.280.0060.03712.34
5.4.270.0040.04512.35
5.4.260.0050.03712.35
5.4.250.0050.03912.35
5.4.240.0040.03812.34
5.4.230.0110.04112.34
5.4.220.0090.04612.34
5.4.210.0120.04012.34
5.4.200.0070.03712.34
5.4.190.0080.03612.34
5.4.180.0110.04112.33
5.4.170.0060.03512.34
5.4.160.0050.03512.34
5.4.150.0030.03712.34
5.4.140.0060.03712.02
5.4.130.0080.03312.01
5.4.120.0060.03411.96
5.4.110.0030.03711.97
5.4.100.0070.03211.96
5.4.90.0050.03911.96
5.4.80.0100.03911.97
5.4.70.0040.03511.96
5.4.60.0060.03311.96
5.4.50.0040.03611.96
5.4.40.0050.03611.95
5.4.30.0040.03711.95
5.4.20.0060.03411.95
5.4.10.0070.03311.95
5.4.00.0070.03411.43
5.3.290.0030.04212.80
5.3.280.0050.03812.71
5.3.270.0080.04212.72
5.3.260.0050.04112.72
5.3.250.0050.03912.71
5.3.240.0060.04112.72
5.3.230.0030.04012.70
5.3.220.0050.03712.68
5.3.210.0050.04012.68
5.3.200.0090.03212.68
5.3.190.0070.03612.68
5.3.180.0070.03512.67
5.3.170.0050.03612.67
5.3.160.0080.04412.68
5.3.150.0090.04212.67
5.3.140.0080.03712.66
5.3.130.0060.03912.66
5.3.120.0040.04112.66
5.3.110.0080.03912.66
5.3.100.0050.03912.12
5.3.90.0050.03612.08
5.3.80.0080.03812.07
5.3.70.0070.03812.07
5.3.60.0070.03412.07
5.3.50.0060.03512.00
5.3.40.0050.03612.00
5.3.30.0120.03111.94
5.3.20.0020.03711.71
5.3.10.0060.03411.69
5.3.00.0060.03911.67
5.2.170.0060.0339.17
5.2.160.0030.0299.17
5.2.150.0030.0399.17
5.2.140.0060.0299.17
5.2.130.0070.0349.13
5.2.120.0020.0349.13
5.2.110.0050.0319.14
5.2.100.0070.0279.14
5.2.90.0020.0379.14
5.2.80.0090.0359.13
5.2.70.0080.0299.13
5.2.60.0070.0289.09
5.2.50.0030.0319.06
5.2.40.0080.0299.04
5.2.30.0040.0309.00
5.2.20.0080.0338.99
5.2.10.0040.0328.92
5.2.00.0040.0318.77
5.1.60.0010.0278.06
5.1.50.0050.0278.06
5.1.40.0040.0288.04
5.1.30.0080.0338.39
5.1.20.0060.0298.41
5.1.10.0060.0268.14
5.1.00.0030.0268.14
5.0.50.0010.0236.61
5.0.40.0050.0246.48
5.0.30.0070.0296.28
5.0.20.0060.0226.26
5.0.10.0050.0216.24
5.0.00.0030.0386.23
4.4.90.0030.0174.78
4.4.80.0020.0154.75
4.4.70.0030.0154.75
4.4.60.0010.0234.75
4.4.50.0060.0114.77
4.4.40.0040.0304.71
4.4.30.0030.0204.76
4.4.20.0040.0184.84
4.4.10.0020.0204.85
4.4.00.0040.0274.76
4.3.110.0050.0174.67
4.3.100.0020.0224.67
4.3.90.0040.0154.63
4.3.80.0060.0304.58
4.3.70.0020.0154.63
4.3.60.0020.0144.63
4.3.50.0020.0154.63
4.3.40.0040.0224.54
4.3.30.0040.0133.27
4.3.20.0020.0253.25
4.3.10.0020.0213.22
4.3.00.0000.01310.13

preferences:
54.76 ms | 400 KiB | 5 Q