3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "-1048576 4095 0 -32"; $content = str_replace(array("\r\n", "\r",), "\n", $content); $array = explode("\n", $content); foreach ($array as $int) { echo decbin($int), "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/SkCEN
function name:  (null)
number of ops:  22
compiled vars:  !0 = $content, !1 = $array, !2 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '-1048576%0A4095%0A0%0A-32'
    6     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 '%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    7     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%0A'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    8    12      > FE_RESET_R                                       $8      !1, ->20
         13    > > FE_FETCH_R                                               $8, !2, ->20
    9    14    >   INIT_FCALL                                               'decbin'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $9      
         17        ECHO                                                     $9
         18        ECHO                                                     '%0A'
    8    19      > JMP                                                      ->13
         20    >   FE_FREE                                                  $8
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.95 ms | 1400 KiB | 19 Q