3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('@^(?:http://)?([^/]+)@i','http://www.php.net/index.html',$matches); ${"a"} = $matches[1]; var_export(${"a"}, true); /*echo ${"a"};*/ /*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');*/ //var_dump(array_values(ksort(array('re'=>'asd', '3'=>'asda')))); //echo true;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JJsMq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $matches, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%40%5E%28%3F%3Ahttp%3A%2F%2F%29%3F%28%5B%5E%2F%5D%2B%29%40i'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.php.net%2Findex.html'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        FETCH_DIM_R                                      ~3      !0, 1
          6        ASSIGN                                                   !1, ~3
    4     7        INIT_FCALL                                               'var_export'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                                 
   49    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.88 ms | 1394 KiB | 17 Q