3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1395 KiB | 19 Q