3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { protected $tag = 'test'; protected $tags_test; public function save($tags) { $_tag = "tags_{$this->tag}"; $this->{"tags_{$this->tag}"} = $tags; var_dump($this->$_tag); } } $test = new test(); $test->save(2322323); $t = true; $t &= false; $t &= true; $t &= false; var_dump($t); echo mime_content_type('test.php'); //var_dump(pathinfo('FilLe.DoC'));
based on hZiEX
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.13, 7.2.0 - 7.2.1, 7.3.0alpha1 - 7.3.0beta1
int(2322323) int(0) Warning: mime_content_type(test.php): failed to open stream: No such file or directory in /in/bR9ZA on line 27
Output for 7.1.20, 7.2.6
int(2322323) int(0) Warning: mime_content_type(): open_basedir restriction in effect. File(test.php) is not within the allowed path(s): (/tmp:/in) in /in/bR9ZA on line 27 Warning: mime_content_type(test.php): failed to open stream: Operation not permitted in /in/bR9ZA on line 27
Output for hhvm-3.22.0
int(2322323) int(0) Warning: No such file or directory in /in/bR9ZA on line -1
Output for hhvm-3.18.5 - 3.21.3
int(2322323) int(0) Warning: No such file or directory in /in/bR9ZA on line 27