3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = range(0,10); $arr2 = array('key1'=>'value1','key2'=>'value2','key3'=>'value3'); $test1 = array_filter($arr1,function($val) { return $val % 2 == 0; }); echo implode('',$arr1)."\t"; echo implode('',$arr2)."\t"; print_r( $test1."\t" );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cu4Mk
function name:  (null)
number of ops:  29
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $test1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        ASSIGN                                                   !1, <array>
    6     6        INIT_FCALL                                               'array_filter'
          7        SEND_VAR                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FCu4Mk%3A6%240'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    8    12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        CONCAT                                           ~10     $9, '%09'
         17        ECHO                                                     ~10
    9    18        INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $11     
         22        CONCAT                                           ~12     $11, '%09'
         23        ECHO                                                     ~12
   10    24        INIT_FCALL                                               'print_r'
         25        CONCAT                                           ~13     !2, '%09'
         26        SEND_VAL                                                 ~13
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FCu4Mk%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cu4Mk
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        MOD                                              ~1      !0, 2
          2        IS_EQUAL                                         ~2      ~1, 0
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FCu4Mk%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.22 ms | 1388 KiB | 21 Q