3v4l.org

run code in 300+ PHP versions simultaneously
<?php $format = [new Datetime('2025-01-30'), 'format']; echo call_user_func($format, 'd/m/Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fi9Ma
function name:  (null)
number of ops:  11
compiled vars:  !0 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'Datetime'
          1        SEND_VAL_EX                                              '2025-01-30'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~3      $1
          4        ADD_ARRAY_ELEMENT                                ~3      'format'
          5        ASSIGN                                                   !0, ~3
    3     6        INIT_USER_CALL                                1          'call_user_func', !0
          7        SEND_USER                                                'd%2Fm%2FY'
          8        DO_FCALL                                      0  $5      
          9        ECHO                                                     $5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.9 ms | 942 KiB | 13 Q