3v4l.org

run code in 300+ PHP versions simultaneously
<?php $create = 'Datetime::createFromFormat'; $invoke = [new stdClass, '__invoke']; var_dump(is_callable($create), is_callable($invoke));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K5PMD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $create, !1 = $invoke
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Datetime%3A%3AcreateFromFormat'
    4     1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~5      $3
          4        ADD_ARRAY_ELEMENT                                ~5      '__invoke'
          5        ASSIGN                                                   !1, ~5
    6     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'is_callable'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        INIT_FCALL                                               'is_callable'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.48 ms | 954 KiB | 15 Q