3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function($v, $k, $i) { return false === substr($v, 'Exception'); }; var_dump(iterator_to_array(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/5rEPs
function name:  (null)
number of ops:  18
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F5rEPs%3A3%240'
          1        ASSIGN                                                   !0, ~1
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'iterator_to_array'
          4        NEW                                              $3      'CallbackFilterIterator'
          5        NEW                                              $4      'ArrayIterator'
          6        INIT_FCALL                                               'get_declared_classes'
          7        DO_ICALL                                         $5      
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $4
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F5rEPs%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5rEPs
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%2F5rEPs%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.62 ms | 1396 KiB | 21 Q