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); 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); $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.0090.00618.18
8.3.50.0100.01022.04
8.3.40.0120.00918.60
8.3.30.0100.00318.96
8.3.20.0040.00420.16
8.3.10.0040.00423.64
8.3.00.0060.00319.13
8.2.180.0070.00716.63
8.2.170.0090.00922.96
8.2.160.0030.01020.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00722.28
8.2.110.0030.00620.27
8.2.100.0110.00017.84
8.2.90.0040.00419.02
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0090.00217.68
8.2.50.0030.00618.07
8.2.40.0080.00019.91
8.2.30.0030.00617.79
8.2.20.0050.00317.42
8.2.10.0040.00417.98
8.2.00.0040.00417.45
8.1.280.0090.00625.92
8.1.270.0080.00023.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.96
8.1.230.0110.00018.93
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0040.00418.37
8.1.160.0070.00021.98
8.1.150.0060.00318.66
8.1.140.0070.00017.34
8.1.130.0000.00817.62
8.1.120.0000.00817.25
8.1.110.0050.00317.21
8.1.100.0000.00717.37
8.1.90.0070.00017.34
8.1.80.0040.00417.29
8.1.70.0030.00317.28
8.1.60.0080.00317.39
8.1.50.0030.00617.34
8.1.40.0070.00017.27
8.1.30.0040.00417.39
8.1.20.0030.00517.40
8.1.10.0020.00517.27
8.1.00.0000.00817.22
8.0.300.0040.00418.77
8.0.290.0020.00516.63
8.0.280.0000.00718.47
8.0.270.0000.00717.11
8.0.260.0060.00017.14
8.0.250.0070.00016.84
8.0.240.0030.00316.70
8.0.230.0000.00716.79
8.0.220.0000.00716.71
8.0.210.0030.00316.70
8.0.200.0050.00216.69
8.0.190.0000.00816.78
8.0.180.0000.00816.66
8.0.170.0080.00016.81
8.0.160.0000.00716.74
8.0.150.0070.00016.68
8.0.140.0000.00716.69
8.0.130.0030.00313.52
8.0.120.0000.00816.75
8.0.110.0040.00416.81
8.0.100.0030.00316.71
8.0.90.0040.00316.86
8.0.80.0150.00016.74
8.0.70.0050.00316.70
8.0.60.0040.00416.61
8.0.50.0080.00016.57
8.0.30.0140.00616.92
8.0.20.0080.01017.40
8.0.10.0000.00716.82
8.0.00.0100.01016.72
7.4.330.0030.00315.17
7.4.320.0030.00316.43
7.4.300.0000.00716.46
7.4.290.0000.00816.34
7.4.280.0040.00416.45
7.4.270.0070.00016.37
7.4.260.0030.00316.41
7.4.250.0000.00716.23
7.4.240.0010.00616.42
7.4.230.0070.00016.36
7.4.220.0130.01216.33
7.4.210.0060.01216.44
7.4.200.0070.00016.52
7.4.160.0110.00716.46
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0120.00816.43
7.4.120.0090.00816.46
7.4.110.0110.00816.34
7.4.100.0100.00716.29
7.4.90.0070.01016.29
7.4.80.0150.00619.39
7.4.70.0070.01016.44
7.4.60.0060.01216.33
7.4.50.0030.00516.31
7.4.40.0030.01316.43
7.4.30.0060.01016.43
7.4.00.0060.01014.82
7.3.330.0030.00313.40
7.3.320.0000.00513.24
7.3.310.0070.00016.19
7.3.300.0060.00016.11
7.3.290.0060.01216.16
7.3.280.0100.00916.08
7.3.270.0120.00617.40
7.3.260.0070.01016.16
7.3.250.0100.00716.25
7.3.240.0120.00616.51
7.3.230.0090.00916.39
7.3.210.0120.00916.23
7.3.200.0150.00819.39
7.3.190.0140.00316.39
7.3.180.0120.00316.43
7.3.170.0040.01216.27
7.3.160.0070.00716.29
7.2.330.0100.00716.41
7.2.320.0100.00716.46
7.2.310.0070.01016.54
7.2.300.0100.01016.30
7.2.290.0070.01116.11
7.1.70.0040.00417.32
7.1.60.0110.01419.32
7.1.50.0070.01417.31
7.1.00.0070.07322.38
7.0.200.0000.01017.00
7.0.140.0000.07322.01
7.0.60.0070.06319.96
7.0.50.0030.08317.84
7.0.40.0070.05019.98
7.0.30.0130.04720.15
7.0.20.0200.05320.22
7.0.10.0100.04720.18
7.0.00.0000.09020.01
5.6.280.0100.06321.04
5.6.210.0170.07020.60
5.6.200.0100.08018.08
5.6.190.0030.04320.35
5.6.180.0300.04020.43
5.6.170.0270.08020.39
5.6.160.0130.06320.41
5.6.150.0170.07018.21
5.6.140.0070.08318.18
5.6.130.0100.03318.21
5.6.120.0070.08320.98
5.6.110.0000.08020.98
5.6.100.0070.08020.96
5.6.90.0130.06320.88
5.6.80.0100.03320.35
5.6.70.3930.02720.32
5.5.350.0070.03320.36
5.5.340.0100.07318.01
5.5.330.0130.07320.13
5.5.320.0430.07320.21
5.5.310.0130.04020.20
5.5.300.0170.07317.95
5.5.290.0100.03317.88
5.5.280.0130.07720.69
5.5.270.0030.09020.73
5.5.260.0070.07320.84
5.5.250.0030.04020.69
5.5.240.0170.06720.23
5.4.450.0270.04719.39
5.4.440.0230.05719.43
5.4.430.0270.04719.40
5.4.420.0670.00019.63
5.4.410.0630.00019.35
5.4.400.0630.00019.23
5.4.390.0700.00019.00
5.4.380.0670.00018.98
5.4.370.0630.00018.92
5.4.360.0630.00018.92
5.4.350.0670.00019.15
5.4.340.0040.04411.97
5.4.320.0070.03412.45
5.4.310.0030.03912.45
5.4.300.0040.03612.45
5.4.290.0060.04412.45
5.4.280.0040.03612.35
5.4.270.0050.03612.35
5.4.260.0060.03812.35
5.4.250.0040.03912.35
5.4.240.0080.04212.34
5.4.230.0070.03512.34
5.4.220.0030.03712.34
5.4.210.0070.03312.34
5.4.200.0080.04012.34
5.4.190.0070.03812.33
5.4.180.0060.03912.33
5.4.170.0030.03912.35
5.4.160.0070.03512.34
5.4.150.0040.04312.34
5.4.140.0070.03512.02
5.4.130.0050.04512.01
5.4.120.0060.03411.97
5.4.110.0030.03711.96
5.4.100.0050.03511.96
5.4.90.0070.03511.96
5.4.80.0050.03711.96
5.4.70.0040.03611.96
5.4.60.0050.03411.96
5.4.50.0060.03411.96
5.4.40.0060.03311.95
5.4.30.0050.04711.95
5.4.20.0030.04611.95
5.4.10.0060.03411.95
5.4.00.0040.03711.43
5.3.290.0040.04112.80
5.3.280.0100.03212.71
5.3.270.0070.03612.73
5.3.260.0090.03612.72
5.3.250.0080.04112.72
5.3.240.0080.03412.72
5.3.230.0030.04412.71
5.3.220.0090.03912.68
5.3.210.0100.04012.68
5.3.200.0030.04312.68
5.3.190.0090.04712.68
5.3.180.0050.03712.68
5.3.170.0080.03412.67
5.3.160.0060.03612.68
5.3.150.0060.03612.68
5.3.140.0040.03712.66
5.3.130.0060.03712.66
5.3.120.0090.03612.66
5.3.110.0080.03612.66
5.3.100.0080.03512.12
5.3.90.0050.04312.08
5.3.80.0060.03512.07
5.3.70.0120.02912.07
5.3.60.0050.03612.06
5.3.50.0040.03712.00
5.3.40.0100.03112.00
5.3.30.0100.03411.94
5.3.20.0080.03511.71
5.3.10.0050.03811.69
5.3.00.0060.04211.67
5.2.170.0030.0329.18
5.2.160.0080.0289.18
5.2.150.0080.0289.18
5.2.140.0060.0349.17
5.2.130.0030.0299.13
5.2.120.0020.0309.13
5.2.110.0050.0309.14
5.2.100.0080.0269.13
5.2.90.0010.0329.14
5.2.80.0060.0309.13
5.2.70.0050.0299.13
5.2.60.0020.0329.09
5.2.50.0040.0299.06
5.2.40.0040.0299.04
5.2.30.0020.0319.01
5.2.20.0040.0339.00
5.2.10.0060.0298.92
5.2.00.0020.0318.78
5.1.60.0030.0258.06
5.1.50.0060.0328.06
5.1.40.0050.0248.04
5.1.30.0060.0248.39
5.1.20.0020.0338.41
5.1.10.0020.0288.13
5.1.00.0040.0258.14
5.0.50.0060.0256.61
5.0.40.0040.0186.47
5.0.30.0050.0296.28
5.0.20.0030.0216.26
5.0.10.0040.0206.24
5.0.00.0060.0396.23
4.4.90.0030.0154.78
4.4.80.0020.0154.75
4.4.70.0020.0154.75
4.4.60.0050.0164.75
4.4.50.0040.0184.77
4.4.40.0040.0244.71
4.4.30.0050.0184.76
4.4.20.0020.0194.85
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0020.0154.66
4.3.90.0040.0144.63
4.3.80.0070.0214.58
4.3.70.0040.0194.63
4.3.60.0020.0194.63
4.3.50.0020.0164.63
4.3.40.0030.0254.53
4.3.30.0030.0153.27
4.3.20.0020.0173.26
4.3.10.0020.0203.22
4.3.00.0000.01710.13

preferences:
46.64 ms | 401 KiB | 5 Q