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))); $title = html_entity_decode($title); $title = strtolower($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); $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); $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.0100.01018.31
8.3.50.0070.01321.95
8.3.40.0170.00318.63
8.3.30.0040.01118.79
8.3.20.0060.00820.21
8.3.10.0040.00423.48
8.3.00.0040.00419.29
8.2.180.0110.00416.38
8.2.170.0040.01122.96
8.2.160.0000.01518.64
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00422.04
8.2.110.0030.00620.52
8.2.100.0090.00318.09
8.2.90.0050.00319.05
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0110.00017.93
8.2.50.0050.00318.07
8.2.40.0000.00819.69
8.2.30.0080.00317.92
8.2.20.0070.00017.59
8.2.10.0040.00418.03
8.2.00.0030.00617.45
8.1.280.0120.00925.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00323.83
8.1.230.0080.00318.92
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0030.00618.46
8.1.160.0040.00421.85
8.1.150.0000.00918.66
8.1.140.0030.00617.30
8.1.130.0000.00717.66
8.1.120.0030.00317.34
8.1.110.0030.00617.23
8.1.100.0000.00717.31
8.1.90.0000.00717.20
8.1.80.0030.00417.33
8.1.70.0040.00417.29
8.1.60.0030.00617.37
8.1.50.0040.00417.22
8.1.40.0000.00917.37
8.1.30.0030.00617.54
8.1.20.0060.00317.41
8.1.10.0080.00017.41
8.1.00.0030.00717.25
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0070.00018.36
8.0.270.0080.00017.24
8.0.260.0000.00617.23
8.0.250.0040.00416.71
8.0.240.0000.00616.68
8.0.230.0070.00016.80
8.0.220.0000.00716.74
8.0.210.0030.00316.75
8.0.200.0060.00016.66
8.0.190.0040.00416.78
8.0.180.0050.00316.79
8.0.170.0090.00016.78
8.0.160.0000.00716.72
8.0.150.0030.00316.60
8.0.140.0040.00416.73
8.0.130.0000.00613.55
8.0.120.0040.00416.75
8.0.110.0050.00316.64
8.0.100.0020.00516.79
8.0.90.0040.00416.79
8.0.80.0060.00916.67
8.0.70.0070.00016.79
8.0.60.0050.00216.69
8.0.50.0000.00716.78
8.0.30.0110.00816.93
8.0.20.0100.00817.40
8.0.10.0070.00016.78
8.0.00.0160.00416.51
7.4.330.0000.00615.18
7.4.320.0000.00716.44
7.4.300.0040.00416.46
7.4.290.0030.00616.38
7.4.280.0040.00416.36
7.4.270.0000.00616.45
7.4.260.0000.00816.24
7.4.250.0070.00016.33
7.4.240.0020.00516.38
7.4.230.0050.00316.17
7.4.220.0070.02016.32
7.4.210.0070.00716.55
7.4.200.0030.00316.48
7.4.160.0060.01216.30
7.4.150.0060.01117.40
7.4.140.0080.01017.86
7.4.130.0090.00816.44
7.4.120.0090.01116.42
7.4.110.0070.01116.54
7.4.100.0160.00716.58
7.4.90.0090.00916.36
7.4.80.0080.00819.39
7.4.70.0060.01016.30
7.4.60.0070.00716.38
7.4.50.0080.00016.32
7.4.40.0100.00616.54
7.4.30.0080.01016.25
7.4.00.0070.01114.81
7.3.330.0040.00413.32
7.3.320.0020.00313.33
7.3.310.0000.00716.06
7.3.300.0000.00716.12
7.3.290.0110.00316.08
7.3.280.0070.01116.12
7.3.270.0000.01617.40
7.3.260.0080.01516.37
7.3.250.0100.00716.15
7.3.240.0090.01216.41
7.3.230.0140.00716.39
7.3.210.0180.00316.36
7.3.200.0210.00019.39
7.3.190.0100.00716.20
7.3.180.0110.00416.38
7.3.170.0060.00916.27
7.3.160.0100.00616.34
7.2.330.0100.00716.63
7.2.320.0030.01316.41
7.2.310.0030.01716.41
7.2.300.0070.01016.32
7.2.290.0110.00816.59
7.1.70.0000.00817.31
7.1.60.0090.01619.32
7.1.50.0100.01017.25
7.1.00.0070.07022.43
7.0.200.0110.00814.73
7.0.140.0030.07322.01
7.0.60.0130.08320.07
7.0.50.0070.07717.87
7.0.40.0070.06720.06
7.0.30.0270.03720.32
7.0.20.0270.08320.32
7.0.10.0130.08020.14
7.0.00.0130.07320.35
5.6.280.0070.07021.04
5.6.210.0170.06720.46
5.6.200.0070.06018.18
5.6.190.0070.05720.48
5.6.180.0070.08020.45
5.6.170.0300.05720.32
5.6.160.0070.04020.45
5.6.150.0000.04318.11
5.6.140.0200.05318.21
5.6.130.0030.04318.11
5.6.120.0070.08020.98
5.6.110.0070.07020.96
5.6.100.0130.08021.07
5.6.90.0130.07320.89
5.6.80.0030.08320.35
5.6.70.3900.03720.39
5.5.350.0130.03720.28
5.5.340.0030.08317.98
5.5.330.0030.07320.07
5.5.320.0500.06720.30
5.5.310.0330.06020.41
5.5.300.0070.03717.91
5.5.290.0000.04318.00
5.5.280.0070.07720.87
5.5.270.0100.08320.76
5.5.260.0030.04020.84
5.5.250.0070.06020.69
5.5.240.0200.05720.12
5.4.450.0430.04019.42
5.4.440.0630.04019.41
5.4.430.0870.03719.56
5.4.420.0630.00019.48
5.4.410.0600.00019.35
5.4.400.0600.00019.33
5.4.390.0600.00019.13
5.4.380.0630.00018.92
5.4.370.0630.00018.99
5.4.360.0700.00019.16
5.4.350.0670.00018.95
5.4.340.0050.03511.97
5.4.320.0070.03512.45
5.4.310.0060.04312.45
5.4.300.0050.03612.45
5.4.290.0060.03612.45
5.4.280.0070.03312.34
5.4.270.0070.04112.34
5.4.260.0040.03812.34
5.4.250.0090.04012.34
5.4.240.0080.03312.35
5.4.230.0050.03812.34
5.4.220.0070.03412.34
5.4.210.0060.04112.34
5.4.200.0060.03612.34
5.4.190.0040.03912.33
5.4.180.0070.03712.33
5.4.170.0060.03812.34
5.4.160.0090.04112.34
5.4.150.0050.03612.34
5.4.140.0080.03612.02
5.4.130.0070.03612.01
5.4.120.0050.03511.96
5.4.110.0070.03311.96
5.4.100.0050.03511.96
5.4.90.0070.03611.96
5.4.80.0050.03711.96
5.4.70.0040.03511.96
5.4.60.0060.03311.96
5.4.50.0060.03811.96
5.4.40.0040.03511.95
5.4.30.0080.04011.95
5.4.20.0070.03311.95
5.4.10.0050.03411.95
5.4.00.0040.03711.43
5.3.290.0080.03612.80
5.3.280.0070.03612.71
5.3.270.0100.03812.72
5.3.260.0030.04112.72
5.3.250.0040.03812.72
5.3.240.0040.03812.72
5.3.230.0050.03712.71
5.3.220.0100.03212.68
5.3.210.0100.03412.68
5.3.200.0070.03412.68
5.3.190.0070.03612.68
5.3.180.0080.03412.67
5.3.170.0040.03912.67
5.3.160.0070.03512.67
5.3.150.0040.03912.68
5.3.140.0060.03512.66
5.3.130.0080.04412.66
5.3.120.0070.03712.66
5.3.110.0040.04112.66
5.3.100.0090.03312.12
5.3.90.0030.04012.08
5.3.80.0030.03912.07
5.3.70.0080.04312.07
5.3.60.0040.03912.06
5.3.50.0060.03512.00
5.3.40.0070.03512.00
5.3.30.0060.03411.94
5.3.20.0020.03911.71
5.3.10.0050.03611.69
5.3.00.0100.03211.68
5.2.170.0040.0319.18
5.2.160.0060.0279.18
5.2.150.0050.0299.17
5.2.140.0040.0309.17
5.2.130.0030.0309.13
5.2.120.0040.0299.13
5.2.110.0080.0259.14
5.2.100.0050.0279.13
5.2.90.0050.0329.14
5.2.80.0040.0299.13
5.2.70.0040.0309.13
5.2.60.0050.0299.09
5.2.50.0060.0339.06
5.2.40.0060.0299.04
5.2.30.0040.0299.01
5.2.20.0060.0349.00
5.2.10.0040.0288.92
5.2.00.0060.0298.78
5.1.60.0050.0328.05
5.1.50.0070.0278.05
5.1.40.0090.0258.04
5.1.30.0060.0298.39
5.1.20.0040.0258.41
5.1.10.0050.0258.13
5.1.00.0070.0308.14
5.0.50.0040.0256.61
5.0.40.0080.0156.48
5.0.30.0020.0376.28
5.0.20.0050.0186.26
5.0.10.0030.0286.24
5.0.00.0050.0316.23
4.4.90.0020.0164.77
4.4.80.0040.0204.75
4.4.70.0050.0144.76
4.4.60.0020.0174.76
4.4.50.0030.0184.77
4.4.40.0040.0244.71
4.4.30.0030.0154.75
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0144.66
4.3.90.0040.0134.63
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0020.0144.63
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0020.0163.27
4.3.20.0010.0163.25
4.3.10.0020.0153.21
4.3.00.0030.01710.11

preferences:
45.9 ms | 400 KiB | 5 Q