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); $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.70.0120.00316.58
8.3.60.0100.01018.43
8.3.50.0100.01021.95
8.3.40.0040.01118.72
8.3.30.0100.00319.02
8.3.20.0000.00720.24
8.3.10.0080.00023.70
8.3.00.0090.00019.13
8.2.180.0060.01016.38
8.2.170.0140.00422.96
8.2.160.0030.01220.39
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00722.08
8.2.110.0100.01021.98
8.2.100.0040.00717.78
8.2.90.0030.00518.98
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0100.00017.89
8.2.50.0050.00318.07
8.2.40.0000.00819.76
8.2.30.0000.00917.83
8.2.20.0000.00817.65
8.2.10.0020.00517.82
8.2.00.0040.00417.53
8.1.280.0140.00725.92
8.1.270.0030.00623.97
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0110.00023.96
8.1.230.0080.00320.89
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0050.00318.44
8.1.160.0050.00321.90
8.1.150.0000.01018.62
8.1.140.0040.00417.28
8.1.130.0000.00717.62
8.1.120.0000.00717.36
8.1.110.0030.00517.31
8.1.100.0000.00717.26
8.1.90.0000.00717.27
8.1.80.0040.00417.31
8.1.70.0030.00317.31
8.1.60.0030.00717.39
8.1.50.0000.00817.31
8.1.40.0000.00717.29
8.1.30.0040.00417.40
8.1.20.0000.00917.39
8.1.10.0040.00417.43
8.1.00.0040.00417.43
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.27
8.0.270.0000.00717.09
8.0.260.0000.00617.16
8.0.250.0070.00016.72
8.0.240.0000.00616.79
8.0.230.0000.00616.84
8.0.220.0030.00316.78
8.0.210.0030.00316.63
8.0.200.0030.00316.74
8.0.190.0080.00016.68
8.0.180.0000.00816.81
8.0.170.0040.00416.77
8.0.160.0030.00316.73
8.0.150.0030.00316.57
8.0.140.0000.00716.61
8.0.130.0000.00613.52
8.0.120.0030.00516.71
8.0.110.0080.00016.59
8.0.100.0000.00716.60
8.0.90.0070.00016.81
8.0.80.0090.00716.78
8.0.70.0030.00616.73
8.0.60.0040.00416.74
8.0.50.0040.00416.57
8.0.30.0120.00717.06
8.0.20.0140.00517.40
8.0.10.0050.00216.78
8.0.00.0050.01516.68
7.4.330.0060.00015.13
7.4.320.0000.00616.44
7.4.300.0040.00416.48
7.4.290.0000.00816.46
7.4.280.0030.00316.26
7.4.270.0040.00416.38
7.4.260.0020.00516.43
7.4.250.0040.00416.32
7.4.240.0030.00316.36
7.4.230.0040.00416.43
7.4.220.0150.00316.39
7.4.210.0030.00916.43
7.4.200.0030.00316.52
7.4.160.0060.00916.41
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0120.00616.39
7.4.120.0130.00716.33
7.4.110.0090.00816.39
7.4.100.0040.01316.33
7.4.90.0100.00716.40
7.4.80.0130.00319.39
7.4.70.0120.00816.47
7.4.60.0060.00916.42
7.4.50.0040.00416.38
7.4.40.0130.00316.32
7.4.30.0090.00816.23
7.4.00.0070.01014.99
7.3.330.0000.00813.34
7.3.320.0000.00613.34
7.3.310.0030.00316.05
7.3.300.0030.00315.96
7.3.290.0100.00316.23
7.3.280.0070.00916.13
7.3.270.0080.01517.40
7.3.260.0100.00716.41
7.3.250.0060.01116.26
7.3.240.0110.00616.27
7.3.230.0100.01016.41
7.3.210.0070.01316.37
7.3.200.0110.00919.39
7.3.190.0100.01316.43
7.3.180.0030.01316.18
7.3.170.0030.01216.32
7.3.160.0160.00016.20
7.3.10.0040.00916.73
7.3.00.0040.00916.59
7.2.330.0100.00716.16
7.2.320.0140.00316.66
7.2.310.0070.01016.36
7.2.300.0080.00816.47
7.2.290.0090.00916.55
7.2.130.0080.00716.90
7.2.120.0030.00916.93
7.2.110.0050.01017.00
7.2.100.0080.00616.99
7.2.90.0070.00517.00
7.2.80.0070.00716.96
7.2.70.0030.01017.06
7.2.60.0060.00917.03
7.2.50.0060.00616.82
7.2.40.0110.00517.02
7.2.30.0080.00617.04
7.2.20.0030.00916.86
7.2.10.0040.01217.00
7.2.00.0090.00416.95
7.1.250.0080.00515.85
7.1.70.0040.00417.19
7.1.60.0030.02019.32
7.1.50.0120.00917.22
7.1.00.0030.07722.45
7.0.200.0050.00317.00
7.0.140.0000.07721.96
7.0.110.0170.07019.93
7.0.100.0130.06719.97
7.0.90.0100.04720.08
7.0.80.0230.06319.98
7.0.70.0200.06720.05
7.0.60.0130.08019.95
7.0.50.0100.06019.93
7.0.40.0100.08319.71
7.0.30.0030.08319.75
7.0.20.0070.08319.70
7.0.10.0170.06319.58
7.0.00.0030.05019.86
5.6.280.0100.06721.04
5.6.260.0070.07720.70
5.6.250.0070.07720.73
5.6.240.0030.07320.70
5.6.230.0030.06720.57
5.6.220.0030.05020.68
5.6.210.0070.07020.59
5.6.200.0130.06720.63
5.6.190.0100.08720.62
5.6.180.0100.08320.62
5.6.170.0130.07020.62
5.6.160.0100.08020.47
5.6.150.0030.05020.71
5.6.140.0100.04320.56
5.6.130.0030.08320.65
5.6.120.0070.06720.63
5.6.110.0100.06720.54
5.6.100.0070.06720.68
5.6.90.0170.05720.45
5.6.80.0030.09020.07
5.6.70.0030.04719.99
5.6.60.0130.06720.05
5.6.50.0130.05020.05
5.6.40.0070.06320.03
5.6.30.0100.03020.02
5.6.20.0070.07719.98
5.6.10.0030.07720.05
5.6.00.0030.07020.00
5.5.380.0070.04317.41
5.5.370.0100.06717.59
5.5.360.0100.08317.62
5.5.350.0070.07717.20
5.5.340.0070.06317.89
5.5.330.0070.06317.89
5.5.320.0070.07717.86
5.5.310.0000.07018.00
5.5.300.0070.08318.03
5.5.290.0130.07717.86
5.5.280.0030.05018.02
5.5.270.0070.08717.84
5.5.260.0030.08718.00
5.5.250.0070.06017.66
5.5.240.0100.05717.23
5.5.230.0070.05317.24
5.5.220.0070.07017.10
5.5.210.0070.04717.40
5.5.200.0000.06717.24
5.5.190.0100.07317.20
5.5.180.0070.07017.12
5.5.160.0030.06717.46
5.5.150.0030.07317.21
5.5.140.0100.03317.11
5.5.130.0070.03717.44
5.5.120.0000.05717.45
5.5.110.0000.04717.46
5.5.100.0000.04017.30
5.5.90.0000.04017.09
5.5.80.0000.04017.38
5.5.70.0070.03317.27
5.5.60.0030.03717.33
5.5.50.0000.04017.27
5.5.40.0130.02717.41
5.5.30.0000.04317.12
5.5.20.0070.03317.33
5.5.10.0030.08017.25
5.5.00.0000.05017.10
5.4.450.0100.06319.40
5.4.440.0000.06319.32
5.4.430.0030.04719.25
5.4.420.0070.05719.35
5.4.410.0100.07319.22
5.4.400.0070.06719.00
5.4.390.0030.06719.13
5.4.380.0100.07319.16
5.4.370.0030.08018.93
5.4.360.0030.07319.11
5.4.350.0070.05019.04
5.4.340.0070.05719.02
5.4.320.0030.04718.93
5.4.310.0030.07718.95
5.4.300.0030.05019.26
5.4.290.0070.05019.16
5.4.280.0030.05318.94
5.4.270.0000.04718.92
5.4.260.0030.03718.94
5.4.250.0030.03718.99
5.4.240.0000.04019.11
5.4.230.0100.04319.16
5.4.220.0030.03719.25
5.4.210.0030.03718.99
5.4.200.0030.03319.15
5.4.190.0030.03718.94
5.4.180.0130.04319.15
5.4.170.0000.06719.15
5.4.160.0030.05318.92
5.4.150.0030.04018.93
5.4.140.0000.03716.20
5.4.130.0070.03316.23
5.4.120.0030.04716.45
5.4.110.0030.04016.53
5.4.100.0070.03316.45
5.4.90.0070.03316.53
5.4.80.0000.03716.54
5.4.70.0030.03716.41
5.4.60.0030.03316.26
5.4.50.0130.02716.47
5.4.40.0070.03316.15
5.4.30.0030.03716.34
5.4.20.0030.04016.46
5.4.10.0000.04016.48
5.4.00.0100.05715.86
5.3.290.0070.06714.73
5.3.280.0000.04014.44
5.3.270.0000.08014.55
5.3.260.0000.04314.54
5.3.250.0030.04014.52
5.3.240.0030.03714.54
5.3.230.0030.03314.46
5.3.220.0030.04714.50
5.3.210.0000.04014.66
5.3.200.0000.03714.52
5.3.190.0000.04014.42
5.3.180.0000.05014.49
5.3.170.0000.04314.44
5.3.160.0000.04314.43
5.3.150.0030.03714.57
5.3.140.0000.04714.49
5.3.130.0070.04314.48
5.3.120.0000.04314.62
5.3.110.0070.03014.42
5.3.100.0030.03314.05
5.3.90.0070.03314.04
5.3.80.0000.04014.02
5.3.70.0000.04013.89
5.3.60.0030.03713.78
5.3.50.0070.03313.76
5.3.40.0070.03313.84
5.3.30.0000.03713.75
5.3.20.0070.03013.76
5.3.10.0000.03013.67
5.3.00.0030.03013.57
5.2.170.0000.03011.98
5.2.160.0000.03011.98
5.2.150.0030.02711.98
5.2.140.0030.03011.98
5.2.130.0000.03311.98
5.2.120.0070.02311.98
5.2.110.0030.02711.98
5.2.100.0000.03011.98
5.2.90.0030.02711.98
5.2.80.0030.02311.98
5.2.70.0000.03011.98
5.2.60.0000.03011.98
5.2.50.0030.02311.98
5.2.40.0070.04711.98
5.2.30.0030.02711.98
5.2.20.0100.04711.98
5.2.10.0070.04711.98
5.2.00.0030.03711.98
5.1.60.0030.02311.98
5.1.50.0030.04011.98
5.1.40.0070.02711.98
5.1.30.0070.05311.98
5.1.20.0070.04711.98
5.1.10.0070.02011.98
5.1.00.0100.02011.98
5.0.50.0030.03311.98
5.0.40.0070.02311.98
5.0.30.0000.04311.98
5.0.20.0030.04011.98
5.0.10.0070.04011.98
5.0.00.0030.04311.98
4.4.90.0000.01311.98
4.4.80.0000.02011.98
4.4.70.0030.03711.98
4.4.60.0070.00711.98
4.4.50.0000.01711.98
4.4.40.0030.04711.98
4.4.30.0000.02711.98
4.4.20.0030.02311.98
4.4.10.0000.03311.98
4.4.00.0030.05011.98
4.3.110.0000.03311.98
4.3.100.0000.03311.98
4.3.90.0070.02011.98
4.3.80.0030.03011.98
4.3.70.0000.02011.98
4.3.60.0030.01311.98
4.3.50.0070.01011.98
4.3.40.0070.02311.98
4.3.30.0000.03711.98
4.3.20.0030.02711.98
4.3.10.0030.02711.98
4.3.00.0000.02011.98

preferences:
51.92 ms | 401 KiB | 5 Q