3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = time(); $dates = date("Y/m/d H:i:s",$date); // your code goes here //array_push (配列, 追加要素1, 追加要素2,...); $ar = array("PHP", "CGI"); array_push($ar, "Perl", "JAVA", $dates); //print_r($ar); foreach ($ar as $result){ echo $result; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/8OXJQ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $date, !1 = $dates, !2 = $ar, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    4     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y%2Fm%2Fd+H%3Ai%3As'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    8     8        ASSIGN                                                   !2, <array>
    9     9        INIT_FCALL                                               'array_push'
         10        SEND_REF                                                 !2
         11        SEND_VAL                                                 'Perl'
         12        SEND_VAL                                                 'JAVA'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
   12    15      > FE_RESET_R                                       $10     !2, ->19
         16    > > FE_FETCH_R                                               $10, !3, ->19
   13    17    >   ECHO                                                     !3
   12    18      > JMP                                                      ->16
         19    >   FE_FREE                                                  $10
   16    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.93 ms | 1395 KiB | 19 Q