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; ?>

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.0000.01518.30
8.3.50.0080.01222.04
8.3.40.0140.00018.71
8.3.30.0150.00718.97
8.3.20.0070.00020.21
8.3.10.0040.00423.66
8.3.00.0040.00419.13
8.2.180.0100.00616.63
8.2.170.0130.00622.96
8.2.160.0080.00520.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00022.23
8.2.110.0040.00720.94
8.2.100.0040.00817.63
8.2.90.0050.00219.13
8.2.80.0040.00417.97
8.2.70.0060.00317.48
8.2.60.0100.00017.91
8.2.50.0040.00418.07
8.2.40.0000.00819.69
8.2.30.0000.00817.92
8.2.20.0000.00817.55
8.2.10.0050.00317.94
8.2.00.0030.00617.47
8.1.280.0080.01225.92
8.1.270.0000.00823.87
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0030.00917.42
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0000.00917.11
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0040.00418.56
8.1.160.0070.00021.91
8.1.150.0030.00618.75
8.1.140.0050.00217.30
8.1.130.0030.00317.80
8.1.120.0000.00717.31
8.1.110.0030.00617.26
8.1.100.0080.00017.21
8.1.90.0040.00317.20
8.1.80.0030.00517.34
8.1.70.0000.00717.17
8.1.60.0080.00417.50
8.1.50.0040.00417.38
8.1.40.0000.00817.27
8.1.30.0030.00517.55
8.1.20.0040.00417.41
8.1.10.0000.00717.41
8.1.00.0000.00817.27
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0000.00717.24
8.0.260.0030.00317.18
8.0.250.0040.00416.71
8.0.240.0030.00316.80
8.0.230.0040.00416.82
8.0.220.0070.00016.77
8.0.210.0030.00316.68
8.0.200.0000.00716.85
8.0.190.0040.00416.75
8.0.180.0000.00816.75
8.0.170.0030.00516.79
8.0.160.0070.00016.81
8.0.150.0050.00216.71
8.0.140.0000.00716.68
8.0.130.0030.00313.52
8.0.120.0080.00016.73
8.0.110.0000.00816.72
8.0.100.0000.00716.63
8.0.90.0040.00416.60
8.0.80.0030.01416.70
8.0.70.0000.00716.65
8.0.60.0000.00816.64
8.0.50.0000.00716.74
8.0.30.0150.00717.01
8.0.20.0100.01117.40
8.0.10.0000.00716.94
8.0.00.0060.01416.65
7.4.330.0050.00015.07
7.4.320.0070.00016.30
7.4.300.0000.00616.35
7.4.290.0040.00416.34
7.4.280.0080.00016.30
7.4.270.0000.00716.47
7.4.260.0030.00316.30
7.4.250.0000.00716.27
7.4.240.0020.00516.46
7.4.230.0070.00016.18
7.4.220.0090.00916.39
7.4.210.0060.00916.48
7.4.200.0080.00016.25
7.4.160.0100.00616.54
7.4.150.0030.02117.40
7.4.140.0120.00717.86
7.4.130.0070.01116.45
7.4.120.0030.01316.26
7.4.110.0140.00316.42
7.4.100.0120.00616.48
7.4.90.0100.00716.23
7.4.80.0030.01319.39
7.4.70.0100.00916.35
7.4.60.0030.01316.38
7.4.50.0050.00316.49
7.4.40.0130.00716.17
7.4.30.0180.00316.38
7.4.00.0070.01014.66
7.3.330.0020.00513.42
7.3.320.0000.00513.44
7.3.310.0000.00716.26
7.3.300.0030.00316.02
7.3.290.0150.00416.15
7.3.280.0080.01016.09
7.3.270.0130.00617.40
7.3.260.0030.01416.30
7.3.250.0060.01116.28
7.3.240.0090.00916.29
7.3.230.0060.01016.39
7.3.210.0070.01416.28
7.3.200.0130.00619.39
7.3.190.0070.01016.34
7.3.180.0110.00616.38
7.3.170.0200.00016.27
7.3.160.0090.00616.39
7.2.330.0150.00316.45
7.2.320.0110.00616.44
7.2.310.0090.00916.50
7.2.300.0100.00616.55
7.2.290.0110.00616.32
7.1.200.0030.00915.91
7.1.70.0040.00417.24
7.1.60.0100.01419.32
7.1.50.0040.01816.89
7.1.00.0030.07722.24
7.0.200.0000.00716.96
7.0.140.0030.07321.99
7.0.70.4030.04320.03
7.0.60.0300.06019.96
7.0.50.0130.08017.84
7.0.40.0100.08020.13
7.0.30.0230.08320.33
7.0.20.0170.08320.17
7.0.10.0400.06320.40
7.0.00.0170.06720.07
5.6.280.0130.06321.08
5.6.210.0070.09020.71
5.6.200.0070.03718.15
5.6.190.0030.07320.43
5.6.180.0270.05720.39
5.6.170.0300.07320.71
5.6.160.0100.06320.38
5.6.150.0030.08318.09
5.6.140.0100.05318.18
5.6.130.0070.03718.18
5.6.120.0130.07321.05
5.6.110.0100.06320.98
5.6.100.0070.07021.04
5.6.90.0100.08721.03
5.6.80.0100.07720.51
5.6.70.0200.06320.53
5.5.350.0000.07020.35
5.5.340.0030.09017.97
5.5.330.0130.06720.21
5.5.320.0100.08020.44
5.5.310.0230.04020.21
5.5.300.0030.06017.98
5.5.290.0100.05718.00
5.5.280.0100.05320.66
5.5.270.0100.05020.88
5.5.260.0000.08020.84
5.5.250.0030.07720.70
5.5.240.0200.05320.08
5.4.450.0430.03319.43
5.4.440.0330.04319.11
5.4.430.0270.05019.56
5.4.420.0830.00019.15
5.4.410.0630.00019.20
5.4.400.0830.00019.17
5.4.390.0870.00019.16
5.4.380.0670.00019.16
5.4.370.0630.00019.06
5.4.360.0630.00019.08
5.4.350.0670.00019.05
5.4.340.0050.03511.98
5.4.320.0050.03612.45
5.4.310.0110.04512.45
5.4.300.0080.03912.45
5.4.290.0070.04112.45
5.4.280.0080.03712.35
5.4.270.0060.03812.34
5.4.260.0040.03712.34
5.4.250.0080.03412.34
5.4.240.0060.03712.35
5.4.230.0060.03612.34
5.4.220.0040.03612.34
5.4.210.0050.03512.34
5.4.200.0080.03412.34
5.4.190.0040.03712.33
5.4.180.0040.03612.34
5.4.170.0080.03412.34
5.4.160.0040.03612.34
5.4.150.0050.03712.34
5.4.140.0080.03912.02
5.4.130.0080.04912.01
5.4.120.0050.03511.96
5.4.110.0060.03411.96
5.4.100.0070.03211.96
5.4.90.0040.03811.96
5.4.80.0050.03611.96
5.4.70.0080.03211.96
5.4.60.0070.03911.96
5.4.50.0110.04311.96
5.4.40.0060.04411.95
5.4.30.0040.03611.95
5.4.20.0060.03511.95
5.4.10.0040.03511.95
5.4.00.0060.03611.43
5.3.290.0110.03812.80
5.3.280.0080.04512.71
5.3.270.0060.04012.72
5.3.260.0050.04012.72
5.3.250.0060.03612.72
5.3.240.0040.03912.72
5.3.230.0090.03512.71
5.3.220.0070.03512.68
5.3.210.0040.04012.68
5.3.200.0090.04312.68
5.3.190.0060.03612.68
5.3.180.0080.03312.67
5.3.170.0050.03612.67
5.3.160.0070.03412.67
5.3.150.0050.04312.67
5.3.140.0050.03712.66
5.3.130.0050.04012.66
5.3.120.0090.03712.66
5.3.110.0050.04012.66
5.3.100.0030.04112.12
5.3.90.0080.04212.08
5.3.80.0070.03412.07
5.3.70.0080.03312.08
5.3.60.0090.03612.06
5.3.50.0060.03712.00
5.3.40.0060.03912.00
5.3.30.0060.03911.94
5.3.20.0050.03611.72
5.3.10.0040.03711.69
5.3.00.0060.03511.67
5.2.170.0050.0309.17
5.2.160.0020.0319.17
5.2.150.0050.0429.17
5.2.140.0050.0339.17
5.2.130.0020.0319.13
5.2.120.0020.0309.13
5.2.110.0010.0329.14
5.2.100.0060.0299.14
5.2.90.0060.0349.14
5.2.80.0040.0329.13
5.2.70.0050.0369.13
5.2.60.0050.0329.09
5.2.50.0020.0329.06
5.2.40.0060.0359.04
5.2.30.0080.0289.00
5.2.20.0010.0329.00
5.2.10.0070.0388.92
5.2.00.0050.0358.77
5.1.60.0050.0258.06
5.1.50.0050.0278.06
5.1.40.0050.0288.04
5.1.30.0050.0288.39
5.1.20.0060.0248.41
5.1.10.0050.0288.14
5.1.00.0050.0248.13
5.0.50.0030.0216.61
5.0.40.0040.0246.48
5.0.30.0050.0376.29
5.0.20.0040.0206.26
5.0.10.0030.0206.24
5.0.00.0020.0406.23
4.4.90.0040.0144.78
4.4.80.0030.0154.75
4.4.70.0010.0174.75
4.4.60.0010.0174.76
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0174.76
4.4.20.0040.0154.85
4.4.10.0040.0144.85
4.4.00.0020.0294.76
4.3.110.0050.0194.67
4.3.100.0030.0164.67
4.3.90.0020.0154.64
4.3.80.0040.0304.59
4.3.70.0030.0204.63
4.3.60.0030.0144.63
4.3.50.0010.0184.62
4.3.40.0030.0234.54
4.3.30.0010.0223.27
4.3.20.0040.0203.25
4.3.10.0030.0143.22
4.3.00.0070.01310.13

preferences:
36.75 ms | 401 KiB | 5 Q