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); $new_str = ucwords($new_str); $episode = $new_str; echo $episode; echo htmlentities($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.0150.00018.30
8.3.50.0190.00521.92
8.3.40.0040.01818.73
8.3.30.0070.00719.02
8.3.20.0060.00820.23
8.3.10.0040.00423.65
8.3.00.0040.00419.26
8.2.180.0120.00316.38
8.2.170.0150.00422.96
8.2.160.0110.00420.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0000.00822.12
8.2.110.0030.00722.00
8.2.100.0040.00818.03
8.2.90.0040.00419.16
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0050.00319.75
8.2.30.0030.00617.90
8.2.20.0000.00817.60
8.2.10.0020.00517.79
8.2.00.0090.00019.34
8.1.280.0100.00725.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.62
8.1.230.0080.00317.70
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00817.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0050.00318.50
8.1.160.0000.00721.98
8.1.150.0040.00818.73
8.1.140.0040.00417.36
8.1.130.0000.00717.75
8.1.120.0030.00317.22
8.1.110.0050.00317.34
8.1.100.0000.00717.30
8.1.90.0070.00017.34
8.1.80.0000.00717.22
8.1.70.0040.00417.20
8.1.60.0000.01217.50
8.1.50.0030.00517.35
8.1.40.0000.00817.41
8.1.30.0000.00717.39
8.1.20.0050.00217.45
8.1.10.0040.00417.48
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.35
8.0.270.0000.00717.11
8.0.260.0060.00017.08
8.0.250.0000.00716.80
8.0.240.0000.00616.80
8.0.230.0070.00016.84
8.0.220.0000.00816.64
8.0.210.0000.00816.77
8.0.200.0030.00316.71
8.0.190.0000.00716.79
8.0.180.0050.00316.77
8.0.170.0040.00416.75
8.0.160.0000.00816.85
8.0.150.0030.00316.60
8.0.140.0040.00416.74
8.0.130.0030.00313.56
8.0.120.0040.00416.71
8.0.110.0000.00816.72
8.0.100.0030.00316.56
8.0.90.0070.00016.61
8.0.80.0080.00716.74
8.0.70.0050.00216.63
8.0.60.0070.00016.64
8.0.50.0040.00416.63
8.0.30.0120.00717.00
8.0.20.0080.01017.40
8.0.10.0000.00816.88
8.0.00.0150.00316.71
7.4.330.0030.00315.18
7.4.320.0030.00316.41
7.4.300.0030.00316.45
7.4.290.0030.00316.27
7.4.280.0000.00816.40
7.4.270.0030.00316.35
7.4.260.0000.00716.43
7.4.250.0000.00716.46
7.4.240.0050.00216.33
7.4.230.0040.00416.20
7.4.220.0140.00316.53
7.4.210.0060.00916.53
7.4.200.0000.00716.16
7.4.160.0050.01816.39
7.4.150.0070.01017.40
7.4.140.0140.00317.86
7.4.130.0130.00416.48
7.4.120.0080.01116.34
7.4.110.0100.00716.41
7.4.100.0060.01016.57
7.4.90.0030.01316.35
7.4.80.0120.00619.39
7.4.70.0170.00316.39
7.4.60.0030.01316.33
7.4.50.0080.00016.13
7.4.40.0100.00616.45
7.4.30.0190.00316.38
7.4.00.0100.00714.70
7.3.330.0040.00413.34
7.3.320.0050.00013.41
7.3.310.0050.00315.97
7.3.300.0060.00016.11
7.3.290.0070.00716.08
7.3.280.0040.01216.15
7.3.270.0150.00817.40
7.3.260.0090.01516.15
7.3.250.0110.00616.34
7.3.240.0070.01316.44
7.3.230.0110.01116.39
7.3.210.0120.00916.38
7.3.200.0160.00319.39
7.3.190.0120.00916.29
7.3.180.0090.00616.36
7.3.170.0070.01316.30
7.3.160.0040.01116.35
7.3.10.0040.00716.75
7.3.00.0080.00816.71
7.2.330.0120.00616.55
7.2.320.0090.00916.55
7.2.310.0120.00616.46
7.2.300.0100.00616.43
7.2.290.0140.00416.55
7.2.130.0110.00416.70
7.2.120.0080.00816.92
7.2.110.0060.00616.87
7.2.100.0080.00816.68
7.2.90.0000.01217.17
7.2.80.0060.00616.66
7.2.70.0110.00416.94
7.2.60.0070.00516.90
7.2.50.0100.00317.07
7.2.40.0070.01016.84
7.2.30.0090.00317.00
7.2.20.0070.00717.11
7.2.10.0110.00017.04
7.2.00.0030.01217.09
7.1.250.0000.01016.00
7.1.200.0040.00716.03
7.1.70.0060.00317.32
7.1.60.0060.01919.32
7.1.50.0080.00817.37
7.1.00.0000.08022.44
7.0.200.0030.00617.07
7.0.140.0000.07722.18
7.0.60.0030.07319.86
7.0.50.0070.08017.85
7.0.40.0130.03320.32
7.0.30.0500.04320.13
7.0.20.0270.07320.06
7.0.10.0200.04020.18
7.0.00.0230.03720.01
5.6.280.0100.06720.87
5.6.210.0200.06720.70
5.6.200.0000.08718.18
5.6.190.0130.08020.49
5.6.180.0270.07720.41
5.6.170.0230.05720.37
5.6.160.0030.07320.49
5.6.150.0070.04018.08
5.6.140.0070.08318.27
5.6.130.0130.06318.07
5.6.120.0070.05321.02
5.6.110.0100.07720.96
5.6.100.0030.04321.13
5.6.90.0130.07321.01
5.6.80.0030.04720.52
5.6.70.3800.03720.38
5.5.350.0100.08320.45
5.5.340.0030.04018.02
5.5.330.0000.04720.40
5.5.320.0430.07320.29
5.5.310.0200.04020.27
5.5.300.0000.04318.01
5.5.290.0030.04017.91
5.5.280.0030.07020.81
5.5.270.0030.04320.94
5.5.260.0130.06320.88
5.5.250.0030.04720.71
5.5.240.0070.07020.08
5.4.450.0670.04319.57
5.4.440.0630.04319.48
5.4.430.0270.04719.13
5.4.420.0670.00019.68
5.4.410.0670.00019.20
5.4.400.0630.00019.20
5.4.390.0700.00019.09
5.4.380.0670.00019.16
5.4.370.0630.00019.07
5.4.360.0630.00018.92
5.4.350.0670.00019.16
5.4.340.0050.03611.98
5.4.320.0060.03612.45
5.4.310.0110.03212.45
5.4.300.0040.03812.45
5.4.290.0060.04312.45
5.4.280.0070.03512.34
5.4.270.0060.03812.34
5.4.260.0070.03612.34
5.4.250.0050.03912.35
5.4.240.0030.03812.35
5.4.230.0040.03912.34
5.4.220.0040.03812.34
5.4.210.0070.03412.34
5.4.200.0030.04212.34
5.4.190.0100.04612.33
5.4.180.0060.03712.34
5.4.170.0050.03912.34
5.4.160.0040.04112.34
5.4.150.0050.03812.34
5.4.140.0030.04112.02
5.4.130.0060.03612.01
5.4.120.0060.04011.97
5.4.110.0070.03911.96
5.4.100.0040.04111.96
5.4.90.0090.03911.96
5.4.80.0030.04011.96
5.4.70.0050.03511.96
5.4.60.0040.03611.96
5.4.50.0050.03911.96
5.4.40.0030.03611.95
5.4.30.0080.03511.95
5.4.20.0070.03611.95
5.4.10.0050.03611.95
5.4.00.0070.03711.44
5.3.290.0050.04412.80
5.3.280.0060.03812.71
5.3.270.0090.03512.72
5.3.260.0050.04612.72
5.3.250.0050.04212.72
5.3.240.0080.03712.72
5.3.230.0080.03812.71
5.3.220.0070.03812.68
5.3.210.0030.04512.68
5.3.200.0050.03712.68
5.3.190.0080.03512.68
5.3.180.0030.04012.68
5.3.170.0100.03312.67
5.3.160.0070.03612.68
5.3.150.0070.04312.67
5.3.140.0050.03712.66
5.3.130.0070.04512.66
5.3.120.0050.03912.66
5.3.110.0060.04212.66
5.3.100.0030.03912.12
5.3.90.0030.03912.08
5.3.80.0110.04612.07
5.3.70.0090.03612.08
5.3.60.0070.04012.07
5.3.50.0060.03712.00
5.3.40.0050.03812.00
5.3.30.0070.03511.94
5.3.20.0090.03311.72
5.3.10.0050.03511.69
5.3.00.0050.03811.67
5.2.170.0040.0339.18
5.2.160.0040.0359.18
5.2.150.0060.0419.17
5.2.140.0040.0329.17
5.2.130.0070.0299.13
5.2.120.0030.0309.13
5.2.110.0020.0329.14
5.2.100.0040.0349.14
5.2.90.0050.0309.14
5.2.80.0050.0319.13
5.2.70.0060.0379.13
5.2.60.0070.0369.09
5.2.50.0040.0329.06
5.2.40.0050.0299.04
5.2.30.0030.0329.01
5.2.20.0060.0328.99
5.2.10.0040.0378.92
5.2.00.0070.0288.77
5.1.60.0040.0268.06
5.1.50.0060.0258.05
5.1.40.0080.0258.04
5.1.30.0030.0308.39
5.1.20.0050.0298.41
5.1.10.0030.0288.14
5.1.00.0060.0288.13
5.0.50.0050.0226.61
5.0.40.0060.0166.48
5.0.30.0040.0366.29
5.0.20.0040.0336.26
5.0.10.0050.0186.23
5.0.00.0050.0346.23
4.4.90.0060.0154.78
4.4.80.0050.0164.76
4.4.70.0050.0164.75
4.4.60.0040.0224.76
4.4.50.0030.0204.77
4.4.40.0020.0254.71
4.4.30.0020.0224.75
4.4.20.0050.0154.84
4.4.10.0030.0234.85
4.4.00.0030.0294.76
4.3.110.0040.0254.67
4.3.100.0010.0174.66
4.3.90.0040.0154.63
4.3.80.0030.0284.58
4.3.70.0040.0184.63
4.3.60.0050.0144.62
4.3.50.0020.0164.63
4.3.40.0010.0274.54
4.3.30.0020.0163.28
4.3.20.0040.0173.25
4.3.10.0020.0173.22
4.3.00.0000.01710.13

preferences:
40.92 ms | 401 KiB | 5 Q