3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(token_get_all(<<<PHP function extractURL($url) { if (preg_match('#http://www.google.com/?$#i', $url, $match)) { return $match[1]; } return null; } PHP ));
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: url in /in/3m4Pe on line 3 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 321 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } [2] => 1 ) )
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: url in /in/3m4Pe on line 10 Notice: Undefined variable: url in /in/3m4Pe on line 10 Notice: Undefined variable: match in /in/3m4Pe on line 10 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 311 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } [2] => 1 ) )
Output for 5.6.0 - 5.6.28
Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 314 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } [2] => 1 ) )
Output for 5.5.0 - 5.5.38
Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 312 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } [2] => 1 ) )
Output for 5.2.3 - 5.4.45
Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 311 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } [2] => 1 ) )
Output for 5.2.2
Notice: Undefined variable: url in /in/3m4Pe on line 4 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 311 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } [2] => 1 ) )
Output for 5.1.0 - 5.2.1
Notice: Undefined variable: url in /in/3m4Pe on line 4 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 311 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } ) )
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: url in /in/3m4Pe on line 4 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 310 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } ) )
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: url in /in/3m4Pe on line 4 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 310 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } ) )
Output for 4.4.2 - 4.4.9
Notice: Undefined variable: url in /in/3m4Pe on line 4 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 309 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } ) )
Output for 4.3.0 - 4.4.1
Notice: Undefined variable: url in /in/3m4Pe on line 4 Notice: Undefined variable: url in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 5 Notice: Undefined variable: match in /in/3m4Pe on line 6 Array ( [0] => Array ( [0] => 308 [1] => function extractURL() { if (preg_match('#http://www.google.com/?$#i', , )) { return ; } return null; } ) )