3v4l.org

run code in 300+ PHP versions simultaneously
<?php //var_dump(false); /*preg_match('@^(?:http://)?([^/]+)@i','http://www.php.net/index.html',$matches); ${"a"} = $matches[1]; &$a = 12; echo &$a; var_export(${"a"});*/ /*echo ${"a"};*/ /*trait Foo { private $name = '123'; } class Bar { //use Foo; private static $name = '321'; public static function getName(){return static::$name;} } */ /*echo sprintf(' "%04d"', 1);*/ $num = array('11' , '12', '13'); foreach ($num as $val) { $val++; } print_r($num); /* class Foo extends Bar{private static $name='123';} $bar = new Foo(); $bar::getName();*/ /*echo false; class Faz {var $t;} $i = new Faz(); echo $i->t;/* 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
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/FFtDY
function name:  (null)
number of ops:  10
compiled vars:  !0 = $num, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ASSIGN                                                   !0, <array>
   27     1      > FE_RESET_R                                       $3      !0, ->5
          2    > > FE_FETCH_R                                               $3, !1, ->5
   28     3    >   PRE_INC                                                  !1
   27     4      > JMP                                                      ->2
          5    >   FE_FREE                                                  $3
   31     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   66     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1394 KiB | 15 Q