3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /*trait Foo { private $name = '123'; } class Bar { use Foo; private $name = '321'; public function getName(){echo $this->name;} } $bar = new Bar(); $bar->getName();*/ /*echo false; class Faz {} class Baz extends Faz {} interface Foo {public function du(Faz $param);} class A implements Foo { public function du(Baz $param){ echo false; } }*//* $i = 5; echo $i++; echo $i;*/ namespace Bar; function strlen($string){return 5;} namespace Foo; use Bar; echo strlen('Baz'); vardump(array_values(true));
based on QZDMv
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/7IKuF
function name:  (null)
number of ops:  12
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  33     0  E >   NOP                                                      
  38     1        INIT_NS_FCALL_BY_NAME                                    
         2        SEND_VAL_EX                                              'Baz'
         3        DO_FCALL                                      0  $0      
         4        ECHO                                                     $0
  40     5        INIT_NS_FCALL_BY_NAME                                    
         6        INIT_NS_FCALL_BY_NAME                                    
         7        SEND_VAL_EX                                              <true>
         8        DO_FCALL                                      0  $1      
         9        SEND_VAR_NO_REF                               4          $1
        10        DO_FCALL                                      0          
        11      > RETURN                                                   1

Function bar%5Cstrlen:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/7IKuF
function name:  Bar\strlen
number of ops:  3
compiled vars:  !0 = $string
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  33     0  E >   RECV                                             !0      
         1      > RETURN                                                   5
         2*     > RETURN                                                   null

End of function bar%5Cstrlen

Generated using Vulcan Logic Dumper, using php 7.3.0