3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Embrace; use DateTime; function testPass(DateTime $date) { return $date->format('Y-m-d'); } $now = new DateTime(); testPass($now->format('W'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mZEXV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_NS_FCALL_BY_NAME                                    'Embrace%5CtestPass'
          4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'W'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function embrace%5Ctestpass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mZEXV
function name:  Embrace\testPass
number of ops:  6
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_METHOD_CALL                                         !0, 'format'
          2        SEND_VAL_EX                                              'Y-m-d'
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
    7     5*     > RETURN                                                   null

End of function embrace%5Ctestpass

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.05 ms | 1397 KiB | 14 Q