3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s_one = '1'; $i_two = '2'; $a_three = array(3 => '3'); //$add = function(...$data){ // // foreach($data as $key => $value) { // yield $key => $value; // } //} //$string = function($message) { // echo 'dupa' . $message; //} $message = 'hello'; // No "use" $example = function () { var_dump($message); }; echo $example('dupsko'); //$string($s_one); //$string('dupa'); //var_dump($add($s_one, $i_two, $a_three));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hd9Co
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s_one, !1 = $i_two, !2 = $a_three, !3 = $message, !4 = $example
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1'
    4     1        ASSIGN                                                   !1, '2'
    5     2        ASSIGN                                                   !2, <array>
   18     3        ASSIGN                                                   !3, 'hello'
   21     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fhd9Co%3A21%240'
          5        ASSIGN                                                   !4, ~9
   24     6        INIT_DYNAMIC_CALL                                        !4
          7        SEND_VAL_EX                                              'dupsko'
          8        DO_FCALL                                      0  $11     
          9        ECHO                                                     $11
   28    10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fhd9Co%3A21%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hd9Co
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAR                                                 !0
          2        DO_ICALL                                                 
   23     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fhd9Co%3A21%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.13 ms | 1395 KiB | 15 Q