3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decoded = html_entity_decode('&#65534;'); $result = preg_match('/./su', $decoded, $matches); var_dump($result); var_dump($matches); var_dump(PCRE_VERSION); if (!preg_match('/./su', $decoded)) { throw new \InvalidArgumentException("Received invalid UTF-8 for string column"); }
Output for 8.3.0 - 8.3.6
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.42 2022-12-12"
Output for 8.2.0 - 8.2.18
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.40 2022-04-14"
Output for 8.1.1 - 8.1.28
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.39 2021-10-29"
Output for 8.1.0
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.37 2021-05-26"
Output for 7.4.12 - 7.4.33, 8.0.0 - 8.0.30
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.35 2020-05-09"
Output for 7.4.6 - 7.4.11
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.34 2019-11-21"
Output for 7.4.0 - 7.4.5
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.33 2019-04-16"
Output for 7.3.0 - 7.3.33
int(1) array(1) { [0]=> string(3) "￾" } string(16) "10.32 2018-09-10"
Output for 7.2.0 - 7.2.33
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.41 2017-07-05"
Output for 5.5.32 - 5.5.38, 5.6.18 - 5.6.40, 7.0.3 - 7.0.33, 7.1.0 - 7.1.28
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.38 2015-11-23"
Output for 5.4.43 - 5.4.45, 5.5.27 - 5.5.31, 5.6.11 - 5.6.17, 7.0.0 - 7.0.2
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.37 2015-04-28"
Output for 5.4.41 - 5.4.42, 5.5.25 - 5.5.26, 5.6.9 - 5.6.10
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.36 2014-09-26"
Output for 5.5.10 - 5.5.24, 5.6.0 - 5.6.8
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.34 2013-12-15"
Output for 5.4.14 - 5.4.40, 5.5.0 - 5.5.9
bool(false) array(0) { } string(15) "8.32 2012-11-30" Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Received invalid UTF-8 for string column' in /in/ARKNe:13 Stack trace: #0 {main} thrown in /in/ARKNe on line 13
Process exited with code 255.
Output for 5.4.9 - 5.4.13
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.31 2012-07-06"
Output for 5.4.0 - 5.4.8
int(1) array(1) { [0]=> string(3) "￾" } string(15) "8.12 2011-01-15"
Output for 5.3.24 - 5.3.29
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.32 2012-11-30"
Output for 5.3.19 - 5.3.23
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.31 2012-07-06"
Output for 5.3.7 - 5.3.18
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.12 2011-01-15"
Output for 5.3.6
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.11 2010-12-10"
Output for 5.3.4 - 5.3.5
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.10 2010-06-25"
Output for 5.3.3
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.02 2010-03-19"
Output for 5.3.2
int(1) array(1) { [0]=> string(1) "&" } string(15) "8.00 2009-10-19"
Output for 5.3.0 - 5.3.1
int(1) array(1) { [0]=> string(1) "&" } string(14) "7.9 2009-04-11"
Output for 5.2.14 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } string(15) "8.02 2010-03-19"
Output for 5.2.10 - 5.2.13
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } string(14) "7.9 2009-04-11"
Output for 5.2.7 - 5.2.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } string(14) "7.8 2008-09-05"
Output for 5.2.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } string(14) "7.6 2008-01-28"
Output for 5.2.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } string(14) "7.3 2007-08-28"
Output for 5.2.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } string(14) "7.2 2007-06-19"
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/ARKNe on line 13 int(1) array(1) { [0]=> string(1) "&" } Notice: Use of undefined constant PCRE_VERSION - assumed 'PCRE_VERSION' in /in/ARKNe on line 9 string(12) "PCRE_VERSION"
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/ARKNe on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_NEW in /in/ARKNe on line 13
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ARKNe on line 13
Process exited with code 255.

preferences:
298.26 ms | 401 KiB | 431 Q