3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Model { private $id; public function setId($id) { $this->id = $id; } } $time = microtime(true); for ($i = 0; $i < 500000; $i++) { $model = new Model; $method = 'setId'; call_user_func_array(array($model, $method), array('test')); } $time = microtime(true) - $time; echo 'call user func took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\n";
Output for 7.1.0
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.094 seconds and returned 0 entries
Output for 7.0.14
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.138 seconds and returned 0 entries
Output for 7.0.12
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.151 seconds and returned 0 entries
Output for 7.0.5 - 7.0.6
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.133 seconds and returned 0 entries
Output for 7.0.4
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.114 seconds and returned 0 entries
Output for 7.0.1, 7.0.3
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.132 seconds and returned 0 entries
Output for 7.0.2
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.111 seconds and returned 0 entries
Output for 7.0.0
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.120 seconds and returned 0 entries
Output for 5.6.28
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.084 seconds and returned 0 entries
Output for 5.6.21
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.338 seconds and returned 0 entries
Output for 5.6.20
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.305 seconds and returned 0 entries
Output for 5.6.19
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.323 seconds and returned 0 entries
Output for 5.5.28, 5.6.18
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.308 seconds and returned 0 entries
Output for 5.6.17
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.304 seconds and returned 0 entries
Output for 5.6.16
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.296 seconds and returned 0 entries
Output for 5.4.26, 5.6.15
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.307 seconds and returned 0 entries
Output for 5.4.13, 5.4.38, 5.6.14
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.306 seconds and returned 0 entries
Output for 5.4.16, 5.4.24, 5.5.25, 5.5.32, 5.6.13
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.310 seconds and returned 0 entries
Output for 5.6.12
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.384 seconds and returned 0 entries
Output for 5.6.11
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.290 seconds and returned 0 entries
Output for 5.5.29, 5.6.10
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.314 seconds and returned 0 entries
Output for 5.4.12, 5.4.30, 5.5.26, 5.6.9
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.293 seconds and returned 0 entries
Output for 5.4.15, 5.4.36, 5.6.8
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.318 seconds and returned 0 entries
Output for 5.6.7
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.244 seconds and returned 0 entries
Output for 5.5.35
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.340 seconds and returned 0 entries
Output for 5.4.21, 5.5.34
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.299 seconds and returned 0 entries
Output for 5.5.33
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.302 seconds and returned 0 entries
Output for 5.5.31
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.341 seconds and returned 0 entries
Output for 5.4.1, 5.5.30
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.320 seconds and returned 0 entries
Output for 5.5.27
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.325 seconds and returned 0 entries
Output for 5.5.24
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.327 seconds and returned 0 entries
Output for 5.4.45
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.291 seconds and returned 0 entries
Output for 5.4.23, 5.4.44
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.294 seconds and returned 0 entries
Output for 5.4.43
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.345 seconds and returned 0 entries
Output for 5.4.2, 5.4.34, 5.4.42
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.303 seconds and returned 0 entries
Output for 5.4.41
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.316 seconds and returned 0 entries
Output for 5.4.40
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.385 seconds and returned 0 entries
Output for 5.4.39
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.285 seconds and returned 0 entries
Output for 5.4.37
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.286 seconds and returned 0 entries
Output for 5.4.35
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.312 seconds and returned 0 entries
Output for 5.4.32
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.292 seconds and returned 0 entries
Output for 5.4.7, 5.4.11, 5.4.31
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.297 seconds and returned 0 entries
Output for 5.4.29
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.317 seconds and returned 0 entries
Output for 5.4.28
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.311 seconds and returned 0 entries
Output for 5.4.27
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.339 seconds and returned 0 entries
Output for 5.4.25
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.315 seconds and returned 0 entries
Output for 5.4.0, 5.4.3, 5.4.22
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.319 seconds and returned 0 entries
Output for 5.4.20
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.284 seconds and returned 0 entries
Output for 5.4.9, 5.4.19
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.330 seconds and returned 0 entries
Output for 5.4.18
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.348 seconds and returned 0 entries
Output for 5.4.17
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.301 seconds and returned 0 entries
Output for 5.4.14
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.332 seconds and returned 0 entries
Output for 5.4.10
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.313 seconds and returned 0 entries
Output for 5.4.8
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.328 seconds and returned 0 entries
Output for 5.4.6
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.324 seconds and returned 0 entries
Output for 5.4.5
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.321 seconds and returned 0 entries
Output for 5.4.4
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.365 seconds and returned 0 entries
Output for 5.3.29
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.378 seconds and returned 0 entries
Output for 5.3.5, 5.3.28
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.391 seconds and returned 0 entries
Output for 5.3.23, 5.3.27
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.393 seconds and returned 0 entries
Output for 5.3.17, 5.3.26
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.380 seconds and returned 0 entries
Output for 5.3.25
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.373 seconds and returned 0 entries
Output for 5.3.24
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.545 seconds and returned 0 entries
Output for 5.1.1, 5.3.22
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.410 seconds and returned 0 entries
Output for 5.3.21
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.383 seconds and returned 0 entries
Output for 5.3.20
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.374 seconds and returned 0 entries
Output for 5.1.0, 5.3.10, 5.3.19
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.411 seconds and returned 0 entries
Output for 5.3.18
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.434 seconds and returned 0 entries
Output for 5.3.16
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.409 seconds and returned 0 entries
Output for 5.3.15
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.405 seconds and returned 0 entries
Output for 5.3.14
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.402 seconds and returned 0 entries
Output for 5.3.13
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.464 seconds and returned 0 entries
Output for 5.3.12
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.370 seconds and returned 0 entries
Output for 5.3.11
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.417 seconds and returned 0 entries
Output for 5.3.9
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.397 seconds and returned 0 entries
Output for 5.3.8
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.401 seconds and returned 0 entries
Output for 5.3.7
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.450 seconds and returned 0 entries
Output for 5.3.6
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.412 seconds and returned 0 entries
Output for 5.3.4
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.448 seconds and returned 0 entries
Output for 5.3.3
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.381 seconds and returned 0 entries
Output for 5.3.2
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.398 seconds and returned 0 entries
Output for 5.3.1
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.446 seconds and returned 0 entries
Output for 5.3.0
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.407 seconds and returned 0 entries
Output for 5.2.17
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.562 seconds and returned 0 entries
Output for 5.2.16
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.480 seconds and returned 0 entries
Output for 5.2.15
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.456 seconds and returned 0 entries
Output for 5.2.14
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.468 seconds and returned 0 entries
Output for 5.2.13
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.478 seconds and returned 0 entries
Output for 5.2.12
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.576 seconds and returned 0 entries
Output for 5.2.11
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.607 seconds and returned 0 entries
Output for 5.2.10
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.503 seconds and returned 0 entries
Output for 5.2.9
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.485 seconds and returned 0 entries
Output for 5.2.8
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.481 seconds and returned 0 entries
Output for 5.2.7
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.645 seconds and returned 0 entries
Output for 5.2.6
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.476 seconds and returned 0 entries
Output for 5.2.5
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.609 seconds and returned 0 entries
Output for 5.2.4
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.449 seconds and returned 0 entries
Output for 5.2.3
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.438 seconds and returned 0 entries
Output for 5.2.2
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.518 seconds and returned 0 entries
Output for 5.2.1
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.443 seconds and returned 0 entries
Output for 5.2.0
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.633 seconds and returned 0 entries
Output for 5.1.6
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.422 seconds and returned 0 entries
Output for 5.1.5
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.445 seconds and returned 0 entries
Output for 5.1.3 - 5.1.4
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.425 seconds and returned 0 entries
Output for 5.1.2
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.418 seconds and returned 0 entries
Output for 5.0.5
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.575 seconds and returned 0 entries
Output for 5.0.4
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.570 seconds and returned 0 entries
Output for 5.0.3
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.579 seconds and returned 0 entries
Output for 5.0.2
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.595 seconds and returned 0 entries
Output for 5.0.1
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.568 seconds and returned 0 entries
Output for 5.0.0
Notice: Undefined variable: data_diff1 in /in/d9ip0 on line 22 call user func took 0.609 seconds and returned 0 entries
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/d9ip0 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/d9ip0 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/d9ip0 on line 4
Process exited with code 255.