3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.8 ms | 1385 KiB | 17 Q