3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(array_map( function($str) { return date('Y-m-d', strtotime($str)); }, [ 'last day of this month', 'Last day of this month', 'lAst Day of This Month', ] ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SlYWn
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'array_map'
    4     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FSlYWn%3A4%240'
    6     3        SEND_VAL                                                 ~0
    7     4        SEND_VAL                                                 <array>
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
   11     8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FSlYWn%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SlYWn
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
    6     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FSlYWn%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.91 ms | 1395 KiB | 21 Q