3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yo = new DateTime(); $ret = function($a){return $a;}; $dude = $ret(clone $yo)->modify("+13 months"); var_dump($dude);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Esbv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $yo, !1 = $ret, !2 = $dude
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F4Esbv%3A5%240'
          4        ASSIGN                                                   !1, ~6
    7     5        INIT_DYNAMIC_CALL                                        !1
          6        CLONE                                            ~8      !0
          7        SEND_VAL_EX                                              ~8
          8        DO_FCALL                                      0  $9      
          9        INIT_METHOD_CALL                                         $9, 'modify'
         10        SEND_VAL_EX                                              '%2B13+months'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !2, $10
    9    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F4Esbv%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Esbv
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1395 KiB | 15 Q