3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = preg_split('/-+/', '-1--52--18-', -1, PREG_SPLIT_NO_EMPTY); foreach($values as $int => $value) { ${"var" . ($int + 1)} = $value; } echo $var1 . ' ' . $var2 . ' ' . $var3;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/iQKEC
function name:  (null)
number of ops:  22
compiled vars:  !0 = $values, !1 = $value, !2 = $int, !3 = $var1, !4 = $var2, !5 = $var3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_split'
          1        SEND_VAL                                                 '%2F-%2B%2F'
          2        SEND_VAL                                                 '-1--52--18-'
          3        SEND_VAL                                                 -1
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    3     7      > FE_RESET_R                                       $8      !0, ->15
          8    > > FE_FETCH_R                                       ~9      $8, !1, ->15
          9    >   ASSIGN                                                   !2, ~9
    4    10        ADD                                              ~11     !2, 1
         11        CONCAT                                           ~12     'var', ~11
         12        FETCH_W                      local               $13     ~12
         13        ASSIGN                                                   $13, !1
    3    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $8
    6    16        CONCAT                                           ~15     !3, '+'
         17        CONCAT                                           ~16     ~15, !4
         18        CONCAT                                           ~17     ~16, '+'
         19        CONCAT                                           ~18     ~17, !5
         20        ECHO                                                     ~18
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.02 ms | 1005 KiB | 14 Q