3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Logger { private $date = 'c'; } $logFormat = function() { return date($this->date); }; echo $logFormat->call((new Logger));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6sfFd
function name:  (null)
number of ops:  9
compiled vars:  !0 = $logFormat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F6sfFd%3A5%240'
          1        ASSIGN                                                   !0, ~1
    9     2        INIT_METHOD_CALL                                         !0, 'call'
          3        NEW                                              $3      'Logger'
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $3
          6        DO_FCALL                                      0  $5      
          7        ECHO                                                     $5
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F6sfFd%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6sfFd
function name:  {closure}
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'date'
          1        FETCH_THIS                                       $0      
          2        FETCH_OBJ_R                                      ~1      $0, 'date'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5      > RETURN                                                   $2
    7     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F6sfFd%3A5%240

Class Logger: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.41 ms | 1395 KiB | 15 Q