3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nums = " 95626372 95626380 95626422 95626435 95626460 "; $nums = explode("\n", trim($nums)); for ($i = 1; $i < count($nums); $i++) { echo $nums[$i-1] - $nums[$i]; echo "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 11
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 11
Branch analysis from position: 21
Branch analysis from position: 11
filename:       /in/2vneU
function name:  (null)
number of ops:  22
compiled vars:  !0 = $nums, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0A95626372%0A95626380%0A95626422%0A95626435%0A95626460%0A'
   11     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        INIT_FCALL                                               'trim'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
   12     9        ASSIGN                                                   !1, 1
         10      > JMP                                                      ->18
   13    11    >   SUB                                              ~7      !1, 1
         12        FETCH_DIM_R                                      ~8      !0, ~7
         13        FETCH_DIM_R                                      ~9      !0, !1
         14        SUB                                              ~10     ~8, ~9
         15        ECHO                                                     ~10
   14    16        ECHO                                                     '%0A'
   12    17        PRE_INC                                                  !1
         18    >   COUNT                                            ~12     !0
         19        IS_SMALLER                                               !1, ~12
         20      > JMPNZ                                                    ~13, ->11
   15    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.62 ms | 1395 KiB | 17 Q