3v4l.org

run code in 300+ PHP versions simultaneously
<?php // version started by 1.0.1.1 // version is set by 1.1.1.1 // | | | | // | | | -- build number 'build' // | | ---- patch level 'patch' // | ------ minor release 'minor' // -------- major release 'major' $version = []; $version[] = ['major' => 'history1']; $version[] = ['minor' => 'history2']; $version[] = ['patch' => 'history3']; $version[] = ['build' => 'history4']; $major = 1; $minor = 0; $patch = 1; $build = 1; foreach ($version as $versionInfo) { echo $versionInfo; } var_dump($version);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/5k71Z
function name:  (null)
number of ops:  22
compiled vars:  !0 = $version, !1 = $major, !2 = $minor, !3 = $patch, !4 = $build, !5 = $versionInfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
   12     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  <array>
   13     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  <array>
   14     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  <array>
   15     9        ASSIGN                                                   !1, 1
   16    10        ASSIGN                                                   !2, 0
   17    11        ASSIGN                                                   !3, 1
   18    12        ASSIGN                                                   !4, 1
   20    13      > FE_RESET_R                                       $15     !0, ->17
         14    > > FE_FETCH_R                                               $15, !5, ->17
   21    15    >   ECHO                                                     !5
   20    16      > JMP                                                      ->14
         17    >   FE_FREE                                                  $15
   24    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.3 ms | 1395 KiB | 15 Q