3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function($v, $k, $i) { return false === substr($v, 'Exception'); }; var_dump(new CallbackFilterIterator(new ArrayIterator(get_declared_classes())),$f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TVYlc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTVYlc%3A3%240'
          1        ASSIGN                                                   !0, ~1
    6     2        INIT_FCALL                                               'var_dump'
          3        NEW                                              $3      'CallbackFilterIterator'
          4        NEW                                              $4      'ArrayIterator'
          5        INIT_FCALL                                               'get_declared_classes'
          6        DO_ICALL                                         $5      
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $4
         10        DO_FCALL                                      0          
         11        SEND_VAR                                                 $3
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTVYlc%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TVYlc
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $v, !1 = $k, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        INIT_FCALL                                               'substr'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'Exception'
          6        DO_ICALL                                         $3      
          7        TYPE_CHECK                                    4  ~4      $3
          8      > RETURN                                                   ~4
    5     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTVYlc%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.26 ms | 1395 KiB | 19 Q